Servo Programming help
stevertr
Posts: 14
Hey all,
Hope everyone is having an awesome day.
Can one of you experts help me with something please?
I received our servos today
http://www.servocity.com/html/hs-225mg_mighty_mini.html
I need to create a command string which will rotate the servo 180 counter-clockwise as rapidly as possible, then wait a given time, lets say 2 minutes, and rotate it 180 clockwise.
This shows what pulse it needs to move to each position but I'm not sure I understand it.
http://www.servocity.com/assets/images/Servo_Angle_Schematic_180_3.8.jpg
Regards
Steve
Hope everyone is having an awesome day.
Can one of you experts help me with something please?
I received our servos today
http://www.servocity.com/html/hs-225mg_mighty_mini.html
I need to create a command string which will rotate the servo 180 counter-clockwise as rapidly as possible, then wait a given time, lets say 2 minutes, and rotate it 180 clockwise.
This shows what pulse it needs to move to each position but I'm not sure I understand it.
http://www.servocity.com/assets/images/Servo_Angle_Schematic_180_3.8.jpg
Regards
Steve
Comments
Parallax has a tutorial called "Robotics with the BoeBot" which contains lots of information on servos and examples of their use with a Stamp as controller. You can download it from Parallax's download page. Go to their main webpage and click on the Downloads button.
You'd use the PULSOUT statement to generate the pulse and the PAUSE statement to produce the 20ms delay between pulses and the 2 minute pause (about 1 minute per maximum PAUSE).