Shop OBEX P1 Docs P2 Docs Learn Events
how to control the speed of a servo — Parallax Forums

how to control the speed of a servo

high voltagehigh voltage Posts: 3
edited 2005-02-11 13:40 in General Discussion
·hi everyone i am trying to find out how to control the speed of with a r/c servo as it·travels left to right.using a pot. i was thinking using a rctime circuit to give the var but no sure on how to right the program.

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-02-11 13:40
    On an un-modified servo, you can't control the travel speed, per se...That is to say, if you pulse the servo at it's minimum pulse rate, then switch to it's highest pulse rate, the servo will travel from one position to the other as fast as it can.· The only way to make it go slower is to slowly increment/decrement the pulse duration to move the servo in smaller increments.

    If you use RCTIME to read a POT, and then use that value to calculate your position, then slowly turning the POT will slowly move the servo.· But if you turned it quickly from one position to the other, it would move as fast as it could.· You would need to write code to move in smaller increments.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --==<{Chris}>==--
Sign In or Register to comment.