Servos
I am trying to test some servos with the code in some of the manuals.· They are the continuouse rotation servos running off a supper carrier board and a BS2.
CODE:
·' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
counter VAR Word
FOR counter = 1 TO 122 ' Clockwise just under 3 seconds.
PULSOUT 15, 850
PAUSE 20
NEXT
FOR counter = 1 TO·40 ' Stop one second.
PULSOUT 15, 750
PAUSE 20
NEXT
FOR counter = 1 TO 122 ' Counterclockwise three seconds.
PULSOUT 15, 650
PAUSE 20
NEXT
END
The problem is that the servo never stops it just does a stutter after 3 secs and continous to rotate in the same direction.· It never goes counterclockwise.· Is this a code issue or a power issue?· I hooked it up to the carrier board·+5 and it still does not do what i want.· does it need the 6v max to function properly?·
CODE:
·' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
counter VAR Word
FOR counter = 1 TO 122 ' Clockwise just under 3 seconds.
PULSOUT 15, 850
PAUSE 20
NEXT
FOR counter = 1 TO·40 ' Stop one second.
PULSOUT 15, 750
PAUSE 20
NEXT
FOR counter = 1 TO 122 ' Counterclockwise three seconds.
PULSOUT 15, 650
PAUSE 20
NEXT
END
The problem is that the servo never stops it just does a stutter after 3 secs and continous to rotate in the same direction.· It never goes counterclockwise.· Is this a code issue or a power issue?· I hooked it up to the carrier board·+5 and it still does not do what i want.· does it need the 6v max to function properly?·
Comments