28139 Parallax Inc, 28139 Datasheet - Page 49

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
LOOP
Your Turn – Fixing the 9 Key
If you refer back to Table 1-1 on page 29, you'll notice that the 9 key has
than 500 while the rest of the
Bot pivoted forward and to the left is because the lower three
same as the 1 key. To fix the problem, you'll have to increase the size of the
by one word and also add another
the
ENDIF
IF…THEN
Use Save As from the File menu to save a copy of 3BitRemoteBoeBot.bs2 as
4BitRemoteBoeBot.bs2.
Change your
named
Add a
time(3)
Expand the
checks to see if the fourth data pulse is greater than 500. If it is, then the Boe-
Bot should pivot backwards and to the right. You can accomplish this by
replacing this line of code:
IF (time(2) < 500) AND (time(1) < 500) AND (time(0) < 500) THEN
with these four lines:
IF (time(3) > 500) THEN
ELSEIF (time(2) < 500) AND (time(1) < 500) AND (time(0) < 500) THEN
Run and test the program, and trouble-shoot as needed.
PULSOUT 13, 650
PULSOUT 12, 750
statement to catch the 9 key before it misinterprets it as a 1 key.
time
PULSIN
.
IF...THEN
instead of three.
time
command that measures the fourth data pulse and stores it in
array variable declaration so that it sets aside four words
time
statement by adding a condition to the beginning that
array elements are less than 500. The reason the Boe-
PULSIN
Chapter 1: Infrared Remote Communication · Page 39
measurement. Lastly, you'll have to modify
' Repeat main loop.
time
measurements are the
time(3)
time
greater
array

Related parts for 28139