Cheap Handheld 3-axis Camera Gimbal

by TechMartian in Circuits > Arduino

3364 Views, 18 Favorites, 0 Comments

Cheap Handheld 3-axis Camera Gimbal

IMG_2416.jpg
IMG_2414.jpg
IMG_2412.jpg

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

IMG_20170827_212212.jpg
IMG_20170827_212315.jpg
IMG_20170827_212425.jpg
IMG_20170827_212440.jpg
IMG_20170827_212712.jpg

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

Screen Shot 2017-08-27 at 10.01.53 PM.png
#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

IMG_2410.jpg
IMG_2422.jpg

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!

IMG_2417.jpg

Enjoy you're 3 axis camera gimbal without breaking the bank!

Now you can take awesome shots with this nice gimbal!