I have been working on the Funduino UNO robotic , but my two rotation servos are spinning in different direction. One is spinning forwardly and the other one backwardly. Can someone help me please,
Thanks in advance.
Jump to content
Posted 12 November 2014 - 02:20 PM
Since the servos are facing opposite directions, if you send the same value to them they will spin in different directions. In other words, since you have one servo pointing to the left and the other pointing to the right, if you send the value "180" to both of them, one will spin "forward" and the other "backward" (with respect to the robot).
So what you have to do is send opposite values to the servos. With a servo, the value "90" is neutral, so if you want to make the robot drive straight at full speed then you can set one servo's value as "180" and the other as "0". If you want to make it move slowly, you could set one servo's value as "135" (90 + 45) and the other as "45" (90 -45).
The Funduino UNO Robotics Kit Guide explains in more detail and provides example code as well.
Let me know if you need more help!
0 members, 0 guests, 0 anonymous users