Before anyone goes up in arms, I have read this thread: http://forum.arduino.cc/index.php?PHPSESSID=j3f4jgjuofibqaduectu7kpas5&topic=19294.msg141195#msg141195
I have a similar problem, except, my servo is a gws s125 continous rotation servo without any modification. It is a sail winch servo.
Here is my code:
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
int pos = 850; // variable to store the servo position
myservo.attach(24); // attaches the servo on pin 9 to the servo object
So when I run this code, It turns in one direction (more than 360 degrees) for 3000 micros and doesnt stop anywhere. Then turns in the other direction for 5 seconds and stops only when it has to execute the writeMicroseconds(850) command.
If i change the delay to 30000, it will continue turning for 30 seconds until I detach.
This is the link to the product if anyone would like to see the specs.
I am also running it on an external power supply of 6V (close to 5.8 after using the batteries). Yes, the grounds are connected.
Also if it helps, 850 is close to 0deg and 2150 is close to 360 degrees (know this from past experience).
I am lost, I have been banging my head on this all day and it doesnt make sense. I scaled from a complex code structure to the simple one I posted and it still doesnt work.
Thanks for the help people.