Shop OBEX P1 Docs P2 Docs Learn Events
servoPal and ramping — Parallax Forums

servoPal and ramping

deadwhaledeadwhale Posts: 30
edited 2008-07-03 04:11 in Robotics
I've recently added the servoPal to my boebot. I'm still learning the programming and was wondering if there is a way to ramp the servos
with servoPal. I'll admit I've been confused even figuring out how to use it but have finally gotten the thing to move. Now I want to know if it
can ramp up the servos. If so, any hints would be appreciated.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Prune Free.

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-07-03 04:11
    The ServoPAL does not ramp the servos automatically. This is because it would have been impossible to know the correct ramp rate for every servo ahead of time. But it's easy enough to do the ramping in your PBASIC code. Just send the servoPAL an appropriately-spaced sequence of pulse widths, ranging from the current width(s) to the new width(s). Once the desired pulse width is attained, the ServoPAL will maintain it indefinitely until you change it.

    -Phil

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    'Still some PropSTICK Kit bare PCBs left!
Sign In or Register to comment.