28125 Parallax Inc, 28125 Datasheet - Page 248

TEXT ROBOTICS

28125

Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet

Specifications of 28125

Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
P2. The "AvoidBlackSpots.bs2" program solution, above, works quite well to keep
' Both detect black paper, back up and make a noise
' Left detects black paper, turn away to right, make a noise
' Right detects black paper, turn away to left, make a noise
' Neither detects black paper, go forward one pulse.
RETURN
Hints: Make sure to test and understand what the Boe-Bot sees when it is
focused on a black sheet of paper and what it sees when it is focused on a white
background. Use example programs from the last three activities in this chapter.
The RC decay time circuit and programs will be much more helpful for making
the program work than the photoresistor divider techniques. Also, make sure this
obstacle course is in a uniformly lit area. Bright sunlight from windows, and
shadows cast by onlookers can make the demonstration fail.
the Boe-Bot confined in a black-bordered space. A video clip of a Boe-Bot
doing just this can be viewed at www.parallax.com. Under the Robotics menu,
look for Robo Video Gallery.
IF (timeLeft > LeftAvg) AND (timeRight > RightAvg) THEN
ELSEIF (timeLeft > LeftAvg) THEN
ELSEIF (timeRight > RightAvg) THEN
ELSE
ENDIF
PULSOUT 13,850
PULSOUT 12,650
PAUSE 20
PULSOUT 13, 650
PULSOUT 12, 850
FREQOUT 4, 20, 4400
PULSOUT 13, 850
PULSOUT 12, 850
FREQOUT 4, 20, 2200
PULSOUT 13, 650
PULSOUT 12, 650
FREQOUT 4, 20, 3300
' Beep instead of pause

Related parts for 28125