28139 Parallax Inc, 28139 Datasheet - Page 41

KIT REMOTE IR FOR BOE-BOT W/TEXT

28139

Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
Datasheets

Specifications of 28139

Accessory Type
IR Remote
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Go back to Table 1-1 and take a look at the measurements stored in the
1 through 4 keys.
measurements to 500, there are only four possible combinations:
This is definitely enough information to write an
that guided the Boe-Bot through whisker and IR navigation:
Example Program – 2BitRemoteBoeBot.bs2
You can press and hold the 1 , 2 , 3 , or 4 keys to select from one of four directions:
forward, backward, rotate right, rotate left. These directions also work with the CH+ , CH- ,
VOL+ , and VOL- keys, which works nicely because those buttons point in the forward,
backward, right, and left directions on most remotes.
(1) Both
(2)
(3)
(4) Both
Add
Remove all the
Remove all the
into
Remove the
Use the pulse information in Table 1-1 to make
the
combinations of values that
time(1)
time(1)
IF (time(1) < 500) AND
ELSEIF (time(1) < 500) AND (time(0) > 500) THEN
ELSEIF (time(1) > 500) AND (time(0) < 500) THEN
ELSEIF (time(1) > 500) AND (time(0) > 500) THEN
ENDIF
PULSOUT Duration
time(0)
PULSOUT 13, 850
PULSOUT 12, 650
PULSOUT 13, 650
PULSOUT 12, 850
PULSOUT 13, 850
PULSOUT 12, 850
PULSOUT 13, 650
PULSOUT 12, 650
FREQOUT 4, 2000, 3000
time(1)
time(1)
is less than 500, but
is greater than 500, but
FOR…NEXT
Focus on
and
and
and
DEBUG
PULSIN
time(1)
time(0)
time(0)
commands.
loop that displays the pulse durations.
commands except the ones that store time measurements
time(1)
arguments for a maneuver based on four possible
.
time(0)
are less than 500.
are greater than 500.
(time(0) < 500) THEN
time(0)
before the first
time(0)
and
Chapter 1: Infrared Remote Communication · Page 31
and
is greater than 500.
time(0)
time(1)
IF…THEN
is less than 500.
DO
IF…THEN
.
.
might store.
statement similar to the ones
If you compare the pulse
statements that choose
time
array for the

Related parts for 28139