Introduction: Arduino Camera Stabilizer DIY

I made a Camera stabilizer using arduino for a school project.

You will need :

1x Arduino Uno

3x Servo motor

1x Gyroscope MP6050

2x Button

1x Potentiometer

1x Breadboard

( 1x External power supply )

Step 1: Step 1 : Building the Circuit

Connect the wires as following

( Notice Which servo is connected to which pin and which button is connected to which pin, since this will determine its function later on )


MP6050 :

SCL to Analog Pin A5

SDA to Analog Pin A4

INT to Digital Pin 2


Servo 1 : Digital Pin 9

Servo 2 : Digital Pin 10

Servo 3 : Digital Pin 11


Button 1 : Digital Pin 7

Button 2 : Digital Pin 8

Potentiometer : Analog Pin A0

Step 2: Step 2 : Code

before you use this code, make sure you have the right library's for the MP6050

(https://github.com/jrowberg/i2cdevlib/tree/master/...

this code will set it up so that 2 servo's will counter the rotations, and the 3rd servo will be controlled by the potentiometer. also it will add 2 buttons. button 1 which, when held, will stop the stabilizing process and make all the servo's return to their center position, and button 2, which will set a new orientation point. ( only use button 2 when button 1 is also pressed since else you set the current orientation location as a new orientation location. )


Step 3: Step 3 : Building

I have a template for a 3d model of the frame, with cut in holes for the servo motors and the servo heads to connect which you can download and 3d print. or you could use these configurations to make it out of another material, like wood ( make sure you don't use too heavy material, since the servo's will not be able to hold it up )

Arduino Case :

2x an 11 by 8 cm piece

2x an 8 by 4 cm piece

1x an 11 by 4 cm piece

Handheld base :

4x an 15 by 3 cm piece

1x an 3 by 3 cm piece

Arm 1 :

1x an 15 by 4 cm piece

1x an 12 by 4 cm piece

Arm 2 :

1x an 12 by 4 cm piece

1x an 11 by 4 cm piece

2 motor holders :

4x an 2.8 by 2.3 cm piece

2x an 2.8 by 1.3 cm piece

Step 4: Step 4 : Enjoy :D

You can now enjoy your self made camera stabilizer. If it locks up or starts glitching a quick reset on the arduino should be enough to get it running again.

I hope this was usefull in anyway and that you will enjoy the project you are working on! :D