28125 Parallax Inc, 28125 Datasheet - Page 233

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
Your Turn – Adjusting the Performance and Changing the Behavior
You can adjust the program’s performance by adjusting the scale factor term in this
constant declaration:
'
LeftThreshold
RightThreshold CON
If you change the scale factor from
flashlight, which may (or may not) lead to improved flashlight control.
By modifying the
Bot’s behavior so that it tries to get the light out of its eyes.
ACTIVITY #6: ROAMING TOWARD THE LIGHT
The example program in this activity can be used to guide the Boe-Bot through exiting a
fairly dark room toward a doorway that’s letting in brighter light. It also allows for much
better control over the Boe-Bot’s roaming by casting shadows over the photoresistors
with your hand.
Readjusting the Photoresistors
This activity works best if the photoresistors’ light collecting surfaces are pointing
upwards and outwards.
Try different scale factors, such as
any differences in the way the Boe-Bot responded to the flashlight beam.
Modify the
flashlight beam with both photoresistor circuits and turns away if it detects the
flashlight beam with only one of its photoresistor circuits.
PAUSE 20
RETURN
IF…THEN
CON
IF…THEN
statement in the example program, you can change the Boe-
LeftBright + LeftAmbient / 2
RightBright + RightAmbient / 2 * 5 / 8
statement so that the Boe-Bot backs up when it detects the
Average
5
/
8
to
1
/
2
, it will make the Boe-Bot less sensitive to the
1
/
4
,
1
/
2
,
1
/
3
,
2
/
3
, and
3
/
4
and make notes about
* 5 / 8
Scale factor

Related parts for 28125