Center Servo

Type:

Language:

Target :

Device:

Arduino Program

C++

Arduino 1.0.1

Arduino Mega 2560

Source Code:

Center_Servo.ino

version 1.0

11-11-2012

Software License:

Description :

This is a super simple Arduino program that centers a single servo. Use it to center each of the servos before you start building ROFI. This will make servo calibration much easier once the robot is finished. Note that you won't need an external power supply for this program, the USB connection will supply enough power for the board and the servo. Make sure to unplug the USB cable before you change servos, so you don't accidentally short the servo connection pins together.

Wiring :

Connect the servo to center as follows:

  • black wire : GND pin

  • red wire : Vin pin

  • orange wire : digital pin 8

Installation :

  1. Setup the Arduino development environment on your computer.

  2. Download the source file for this program.

  3. Open the Arduino development environment application on your computer.

  4. Open the source for this program ( from the main menu : File/Open...).

  5. Wire up the servo to center.

  6. Plug the Arduino Mega board into your computer with a USB cable