Cheap Handheld 3-axis Camera Gimbal
by TechMartian in Circuits > Arduino
3415 Views, 18 Favorites, 0 Comments
Cheap Handheld 3-axis Camera Gimbal
This is a cheap ( under $30) handheld camera gimbal that can pivot in three axes with three degrees of freedom- pitch, yaw, and roll.
Most camera gimbals are extremely expensive but if you just need a small gimbal for your action camera this is the perfect solution for you!
BoM
- 3 Servo Motors
- 3 Potentiometers
- Jumper Wires
- Arduino
Tools
- Hot Glue Gun
Circuitry
Follow the table below for the most straightforward guide on how to wire it.
I/O | Pin # | ESP32 Pin # |
---|---|---|
Pot1 | 1 | 3.3V |
A0 | ||
3 | GND | |
Pot2 | 1 | 3.3V |
A1 | ||
GND | ||
Pot3 | 1 | 3.3V |
A2 | ||
GND | ||
Servo1 | Brown | GND |
Red | 5V | |
White | ||
Servo2 | Brown | GND |
Red | 5V | |
White | ||
Servo3 | Brown | GND |
Red | 5V | |
White |
Code
#include <Servo.h>
Servo servo1; Servo servo2; Servo servo3;
int pot1; int pot2; int pot3
void setup() { servo1.attach(5) servo2.attach(6); servo3.attach(9); }
void loop() { pot1 = analogRead(A0); pot2 = analogRead(A1); pot3 = analogRead(A2);
pot1 = map(pot1, 0, 1024, 0, 180); pot2 = map(pot2, 0, 1024, 0, 180); pot3 = map(pot3, 0, 1024, 0, 180);
servo1.write (pot1); servo2.write (pot2); servo3.write (pot3);
delay(50);
}
Glue Servo
Glue the servo horn onto the body of the other servo so that they are facing two different axes to make a two axis servo gimbal.
Then, glue the last servo onto the two axis servo gimbal to another perpendicular axes (aka cross product of the two axes). Glue this servo onto the mount of an action camera box.
Enjoy!
Enjoy you're 3 axis camera gimbal without breaking the bank!
Now you can take awesome shots with this nice gimbal!