Bad Servos??
Half-Lucas
Posts: 13
I was coding a simple program, which makes the servos start, run for 3 seconds, then stop.
However, the servos didn't stop. Apparently the program is looping itself forever...
This is the program:
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "program running"
counter VAR Word
FREQOUT 4, 20, 3000
FOR counter = 1 TO 122
PULSOUT 12, 850
PULSOUT 13, 650
PAUSE 20
NEXT
PAUSE 2000
END
why does the program loop itself, if there is an END and if the Loop is restricted???
However, the servos didn't stop. Apparently the program is looping itself forever...
This is the program:
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "program running"
counter VAR Word
FREQOUT 4, 20, 3000
FOR counter = 1 TO 122
PULSOUT 12, 850
PULSOUT 13, 650
PAUSE 20
NEXT
PAUSE 2000
END
why does the program loop itself, if there is an END and if the Loop is restricted???
Comments
So I'd look at the batteries you're using.