|
[DPRG] bot won't stop (sometimes)
Subject: [DPRG] bot won't stop (sometimes)
From: Doug Evans
devans at compubotics.com
Date: Thu Nov 16 19:54:35 CST 2006
your pause is too long, if you are trying to operate RC servos. Shorten the
pause to about 20 ms. and place the code in a continuous loop
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "PRGM RUNNING"
counter VAR Word
loop:
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
goto loop
END
-de
-----Original Message-----
From: dprglist-bounces at dprg.org [mailto:dprglist-bounces at dprg.org]On
Behalf Of Sheila Doyle
Sent: Thursday, November 16, 2006 7:03 PM
To: dprglist
Subject: [DPRG] bot won't stop (sometimes)
I am trying to write in BasicStamp and have this to make the motors run a
short time.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "PRGM RUNNING"
counter VAR Word
FOR counter = 1 TO 10
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 200
NEXT
END
Both motors make 10 short bursts.
But if I shorten the pause to 20, they keep on running.
Clues? Hints?
Sheila Doyle
srdoyle at earthlink.net
Why Wait? Move to EarthLink.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.dprg.org/pipermail/dprglist/attachments/20061116/8f3da3b3/attachment.html
More information about the DPRG mailing list
|