Gyro Stabilizer W/ Arduino and Servo

Google+ Pinterest LinkedIn Tumblr +

1. It took me a very long time to persuade me that I would like 10ok Pull-Up Resistors on SCL and SDA pins off MPU-6050 module. But they’re important for the MPU to perform correctly. Before I added these resistors, my MPU would trigger lock-up w/in a minute of power-up. Also take note of the #2 and #three under for full answer.

(Updated on 1/17/16)

2. Jeff Rowberg @ factors out ADO pin should be linked to GND ( post).

three. ArsenioDev additionally factors out that baud charge for MPU needs to be saved at most 115200.

four. Thank you for the ideas! The suggestions above fully solved my lock-ups!

5. I am now working on a DIY Uno w/ ATmega32P-PU w/ clock and two caps and it is working equally nice! ATmega by itself solely takes about 3ma proper now, other than the MPU and Servo powers.

For wire connections, use the diagram or footage as a reference. (Also defined within the code)

MPU -> Arduino

VCC -> 5V (this powers the rail and therefore the entire system together with the servos)


SCL -> A5

SDA -> A4

INT -> D2 (I’ve it however not utilized in present software program. I am polling, not interrupting on this arrange)

IMPORTANT: In addition to the wires above, two 10ok resistors:

SCL -> 10Ok resistor (BROWN-BLK-ORANGE-Whatever) -> 5V Rail

SDA -> 10Ok resistor -> 5V Rail

ADO -> GND (Per Jeff Rowberg @ – See Above)

SERVO 1 -> Arduino

This is the primary servo taped (I do know it’s very a hack job) on the breadboard, and that is oriented in order that it will rotate across the lengthy (or longitudinal or roll) axis. My servos had Brown-Orange-Yellow wires.


ORANGE -> 5V Rail


SERVO 2 -> Arduino

This is the second servo that’s mounted to the servo 1 which controls the pitch axis. Again, it is wrapped even worse than the primary one so it is barely seen within the image.


ORANGE -> 5V Rail


Read more


Leave a Reply

%d bloggers like this: