Jump to content


Photo

How to make servo to spin in the same direction?


  • Please log in to reply
1 reply to this topic

#1 Force

Force

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 12 November 2014 - 12:31 AM

Hello there,

 

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.

 
  • 0

#2 Nathan House

Nathan House

    Administrator

  • Administrators
  • 122 posts
  • LocationLynchburg, VA

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). 

 

Make sense?

 

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users