I'm sorry for posting yet another question on the forums about this (I searched and it seems like it has pretty much been beaten to death), but I haven't been able to find the answer based on the other threads I have read....that or I am too stupid to read between the lines!
I've modified a TowerPro SG-5010 to rotate continuously (with the pot still in place as opposed to the resistor route). The rotation works fine when I send a signal to the motor, but it both remains at a steady speed (which is slower than what it is capable of) and, more importantly, rotating in the same direction no matter what I write to it.
During modification I wrote "0" to the motor and rotated the internal potentiometer until the motor stopped moving. Now that part is ok....when I write "0" to it now, nothing happens. Writing any other number causes the motor to rotate slowly counter clockwise, regardless of the number.
Does anyone have any ideas on what might be causing this? I would love to be able to rotate at full speed in either direction if possible.
The code I am using is below (hopefully it's just a code thing!). Any suggestions would be greatly appreciated.
int position = 90;
int counter = 0;
myservo.attach(9); // attaches the servo on pin 9 to the servo object
position = 0;
position = 170;
Serial.print("changing position to ");