The pulse repetition rate is sending a control signal to comparator hardware in the Servo. The specification is fairly loose -- 20 mSec to 50 mSec is acceptable -- and from what Jon says, 10 mSec will work.
If you get too long, the Servo won't hold its position as strongly. I don't know what happens if you get too short, you'll probably confuse the comparator -- resulting in vibration? inconsistent positioning? I don't know.
So set your refresh for 20 mSec, and then whatever other code runs has to complete in 30 mSec so the refresh doesn't get too long. This is perfect for the BS2, since it can do a lot in 20 to 50 mSec, and you don't HAVE to refresh the servo right on the dot.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
If you get too long, the Servo won't hold its position as strongly. I don't know what happens if you get too short, you'll probably confuse the comparator -- resulting in vibration? inconsistent positioning? I don't know.
So set your refresh for 20 mSec, and then whatever other code runs has to complete in 30 mSec so the refresh doesn't get too long. This is perfect for the BS2, since it can do a lot in 20 to 50 mSec, and you don't HAVE to refresh the servo right on the dot.
Thanks guys.