Download Print this page

Parallax Boe-Bot Whisker Kit Instructions page 4

Advertisement

right:
gosub back
for counter = 0 to 50
pulsout servo_left,850
pulsout servo_right,850
next
goto drive_servos
'-----------------------------------------------------------------------------------
Whiskers Tips
Boe-Bot backs up too far/not far enough.
Boe-Bot turns too far/not far enough.
Boe-Bot drives up side of wall because whiskers
didn't catch hold of an object.
Dead-center object isn't detected by whiskers.
Robot gets stuck in corners.
Switches don't appear to work properly.
Problem
Whisker Kit Instructions (June 2000) • Page
' turn right if left switch closes
Adjust the
for. . . next
listing. They may be increased or decreased to
increase or decrease how far the Boe-Bot rotates
when it turns as well as how far it backs up.
Increase the resistance of a whisker against the
surface of an object by bending whiskers in a different
angle. Alternatively, try dipping the whiskers in a
coating material such as rubber cement.
Bend whiskers inward.
Try the random command to decide whether to turn
left or right after hitting an object.
Check your wiring and connections. Use the Debug
terminal to display the state of the bumper switches
as seen by the BASIC Stamp 2. This can be done by
replacing the contents of the
with the following segment of code:
check_whiskers:
debug home
debug bin ? in5
debug bin ? in10
goto check_whiskers
Note: When a bumper is pressed the Debug terminal
should display a 0 instead of a 1.
Parallax, Inc
http://www.parallaxinc.com
http://www.stampsinclass.com
Possible Solution
arguments in the program
check_whiskers
4
routine

Advertisement

loading

This manual is also suitable for:

28134