EasyManua.ls Logo

Parallax Boe-Bot - Page 117

Parallax Boe-Bot
360 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 3: Assemble and Test Your Boe-Bot · Page 103
If the right wheel/servo does not behave as predicted, see the Servo Trouble
Shooting section. It comes right after RightServoTest.bs2.
If the right wheel/servo does behave properly, then move on to the Your Turn
section, where you will test the left wheel.
' Robotics with the Boe-Bot - RightServoTest.bs2
' Right servo turns clockwise three seconds, stops 1 second, then
' counterclockwise three seconds.
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program Running!"
counter VAR Word
FOR counter = 1 TO 122 ' Clockwise just under 3 seconds.
PULSOUT 12, 650
PAUSE 20
NEXT
FOR counter = 1 TO 40 ' Stop one second.
PULSOUT 12, 750
PAUSE 20
NEXT
FOR counter = 1 TO 122 ' Counterclockwise three seconds.
PULSOUT 12, 850
PAUSE 20
NEXT
END

Table of Contents

Other manuals for Parallax Boe-Bot