Shop OBEX P1 Docs P2 Docs Learn Events
HS-322HD Servo — Parallax Forums

HS-322HD Servo

Earl FosterEarl Foster Posts: 185
edited 2004-11-27 23:12 in Learn with BlocklyProp
I was·testing a HS-322HD servo (determining the max cw and max ccw).· I noticed that when the program was finished the servo would continue to recieve a pulse and turn cw.· It was like a an eye-twitch and I can not stop it.·Any ideas on how to stop this would be great.· I included my source code for reference.

FOR counter = 1 TO 60·· 'counterclockwise max for .5 sec
· PULSOUT 14, 300
· PAUSE 10·············· 'min pause time
NEXT
FOR counter = 1 TO 60··· 'Stop for .5 sec at center
· PULSOUT 14, 750
· PAUSE 10
NEXT
FOR counter = 1 TO 60····· 'clockwise max for .5 sec
· PULSOUT 14, 1200
· PAUSE 10················ 'min pause time
NEXT
FOR counter = 1 TO 60··· 'Stop for .5 sec at center
· PULSOUT 14, 750
· PAUSE 10
NEXT
Thanks
ebf306

Comments

Sign In or Register to comment.