Robotics with the Boe-Bot text v2.2

Page 102 · Robotics with the Boe-Bot
Left
Back
Right
Front
Figure 3-13
Your Boe-Bot
robot’s Front, Back,
Left, and Right
Testing the Right Wheel
The next example program will test the servo connected to the right wheel, shown in
Figure 3-14. The program will make this wheel turn clockwise for three seconds, then
stop for one second, then turn counterclockwise for three seconds.
Figure 3-14
Testing the Right
Wheel
Example Program: RightServoTest.bs2
Set the Boe-Bot on its nose so that the drive wheels are suspended above ground.
Reload the batteries into the battery pack.
If you have a Board of Education Rev C, set the 3-position switch to position-2.
If you have a BASIC Stamp HomeWork Board, connect the 9 V battery to the
battery clip.
Enter, save, and run RightServoTest.bs2.
Verify that the right wheel turns clockwise for three seconds, stops for one
second, then turns counterclockwise for three seconds.
Counterclockwise 3 seconds
Stop 1 second
Clockwise 3 seconds