Im making a photovore and Im trying to make my servos spin both directions. They do spin both ways, but I cant make the code tell them to do that… Its supposed to be a value under 0-89 is backwards, 90 is stop and 91-180 is forewards. But when I try it, 1 and above is forewards and 0 is stop. How do I make it go backwards? DId I modify it wrong?
( I glued the potentiometer, not soldered resistors. And these http://www.robotshop.ca/hitec-hs422-servo-motor.html are the servos I used)
And this is the simple code I wrote:
Servo leftservo; // create servo object to control a servo