Step 2: Centering Servos
Actually, before you do that, you need to set up the Arduino with your computer! Go do this quick little tutorial here: http://arduino.cc/en/Guide/HomePage, and then come back (I'll be waiting).
Finished? Good! You should now be able to get your Arduino blinking an LED. Now, you're going to get it to center your servo motors. Download the attached Arduino file (.ino) and open it with the Arduino IDE. Next hook up your servo motors like in the picture. The black wire should be connected to ground on your Arduino (labeled "GND"), the red one to 5 volts (labeled "5V"), and the white one to pin 11 (labeled "~11"). Make the connections from the Arduino pins to the servo with some male-to-male jumpers.
Now, upload the program to your Arduino board. Once it runs, one of two things will happen:
1) Your motor won't spin: You're done! Now go back and repeat for the other motor.
2) Your motor will spin. Adjust the potentiometer (see picture 2) with a phillips head screwdriver to stop it from spinning. Slowly turn the screwdriver in either direction until you find the setting that makes it stop. Remember to be gentle and turn slowly... otherwise you'll probably overshoot and have to turn the screwdriver the other way.
Center_Servo.ino127 bytes
Remove these ads by
Signing Up




























Not Nice








![Artoo [R2] (ATtiny2313 Wall Avoiding Robot)](http://www.instructables.com/files/deriv/FQ5/VD0W/HH2VMVRB/FQ5VD0WHH2VMVRB.SQUARE.jpg)





Visit Our Store »
Go Pro Today »



