Hey,
I'm new to arduinos and have come across a weird problem with a simple micro servo. I'm using the arduino uno. With servo wires Vcc plugged into +5v on arduino, ground on arduino and signal to digital 9. I'm running the following code. When I run the program the arduino immediately moves clockwise and never stops, it keeps pushing and spastically jittering against its limit angle.
The step motor handles angles <= 160degrees
Spastic Servo Syndrome often happens when the servo is powered from the Arduino which cannot provide enough current. Give it its own power with ground common-ed to Arduino. That might solve the problem....