Boe-Bot troubles (turning on the beginning of the program)
I programmed my Boe-Bot to make a tone and then drive forward for 10s. However, before the piezo speaker turns on, the entire robot turns left slightly. (Right servo turns a bit. When it starts to drive forward it drives slightly RIGHT (but that's not the problem).
Do you happen to know what causes this problem and how could I fix it? If you know anything please REPLY!
Thanks for help!
roksraka
Post Edited By Moderator (Chris Savage (Parallax)) : 8/20/2008 8:02:09 PM GMT
Do you happen to know what causes this problem and how could I fix it? If you know anything please REPLY!
Thanks for help!
roksraka
Post Edited By Moderator (Chris Savage (Parallax)) : 8/20/2008 8:02:09 PM GMT
Comments
' Make the Boe-Bot roll forward for three seconds.
' {$STAMP BS2}
' {$PBASIC 2.5}
counter VAR Word
FREQOUT 4, 2000, 3000
FOR counter = 1 TO 407
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
NEXT
END
This will make sure that both P12 and P13 are low and not floating while the speaker is sounding. Without this, the servo may be getting some noise through its input. Also, be aware that servos often twitch a little when first powered up. This may also be what you're seeing.
-Phil
-Phil