You got your Arduino and you got your Servo...
Here's a cool little program I wrote that will allow you to exercize that servo to your hearts' content. You may find some of the supporting code useful as well!
There's really no other Parts List, so we'll just jump right into the Set Up and then on to the Code.
In this example, I connected the Signal (Yellow) wire of the Servo to Pin 9 of the Arduino.
I picked +5VDC and Ground off the ICSP Connector: Pin 2: 5V and Pin 6: GND.
For my test purposes, I kept this Duemilinove connected to the USB Port of my computer. You can use a Wall-Wart or Battery Pack (for portability) to power your device as well.
Step 1: THE OPERATOR DISPLAY
The photo attached to this step depicts the Operator Display that the program will put up on the Monitor Screen in the Arduino Development System or in HyperTerminal. All you need to do is match the Terminal Speed to the Code; in this example it is 115200 BAUD.
Once the screen comes up, enter any key to begin. Note that in the Development System, you must click into the Output Field, type your output, and click on SEND. In HyperTerminal, you simply type away - in most cases the program responds to single key entries.
's' Reduces the Speed and 'S' Increases the Speed at which Sweeps Occur.
'i' and 'I' Control the Move Increment - How many uSecs the Servo is moved at each step.
'd' and 'D' Control the Delay between each Sweep.
'n' and 'N' Set the Minimum Sweep Position.
'm' and 'M' Set the Maximum Sweep Position.
<Space> Pauses Movement.
'?' Displays the Current Values of Min, Max, Speed, Increment, and Delay.
'C' Sets whether to Pause as the Servo passes the Center Position.
'l', 'L', 'r', and 'R' Activate Manual Mode. Automatic Sweeping is Suspended.
'l' and 'r' move the Servo Left and Right 1 uSec on each key-press.
'L' and 'R' move the Servo Left and Right 10 uSecs on each key-press.
'X' Resets all Variables to their Default Values.
'Z' Stores the Current Values to be Recalled upon the next Initialization of theProgram.
'P' Allows a Position to be Entered Manually. Automatic Sweeping is Suspended.