Thursday, April 02, 2009

servo




Wow, hooking up a servo to the Make board looks dead simple:



Instructions for what to do.

To set the first servo to one quarter its position, send the message

/servo/0/position 256


Leave the argument value off to read the position of the servo:

/servo/0/position


To set the speed of the first servo to just under full speed, send a message like

/servo/0/speed 975


The active property corresponds to the active state of the servo. If the servo is set to be active, no other tasks will be able to write to the same I/O lines. If you're not seeing appropriate responses to your messages to a servo, check the whether it's locked by sending a message like


/servo/3/active