28125 Parallax Inc, 28125 Datasheet - Page 255
28125
Manufacturer Part Number
28125
Description
TEXT ROBOTICS
Manufacturer
Parallax Inc
Datasheet
1.28125.pdf
(360 pages)
Specifications of 28125
Title
Robotics with the Boe-Bot
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Not applicable / Not applicable
- Current page: 255 of 360
- Download datasheet (5Mb)
' {$PBASIC 2.5}
irDetectLeft
DO
LOOP
Your Turn
FREQOUT 8, 1, 38500
irDetectLeft = IN9
DEBUG HOME, "irDetectLeft = ", BIN1 irDetectLeft
PAUSE 100
√
√
√
√
√
√
Leave the Boe-Bot connected to the serial cable, because you will be using the
Debug Terminal to test your IR pair.
Place an object, such as your hand or a sheet of paper, about an inch from the left
IR pair, in the manner shown in Figure 7-1 on page 236.
Verify that when you place an object in front of the IR pair the Debug Terminal
displays a 0, and when you remove the object from in front of the IR pair, it
displays a 1.
If the Debug Terminal displays the expected values for object not detected (1)
and object detected (0), move on to the Your Turn section following the example
program.
If the Debug Terminal does not display the expected values, try the steps in the
Trouble-Shooting box.
Save TestLeftIrPair.bs2 as TestRightIrPair.bs2.
Trouble-Shooting
If the Debug Terminal does not display the expected values, check for circuit and program
entry errors.
If you are always getting 0, even when an object is not placed in front of the Boe-Bot, there
may be a nearby object that is reflecting the infrared. The surface of the table in front of the
Boe-Bot is a common culprit. Move the Boe-Bot so that the IR LED and detector cannot
possibly be reflecting off any nearby object.
If the reading is 1 most of the time when there is no object in front of the Boe-Bot, but
flickers to 0 occasionally, it may mean you have interference from a nearby fluorescent light.
Turn off any nearby fluorescent lights and repeat your tests.
VAR
Bit
Related parts for 28125
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: