28139 Parallax Inc, 28139 Datasheet - Page 119

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
Step 4 - Integrate Roaming with Speed Control into the IR Template
By combining IrRoamingWithSpeedControl.bs2 with IrRemoteKeypad.bs2, you can use
the IR remote to adjust the Boe-Bot's speed while it roams.
Check the RAM Map to see how much RAM you are using. The color coding
should show that REG 0 and 1 are word storage variables. It should also show
that REG 2 has a byte and two bit variables, as shown on the left in Figure 3-3.
Comment the
Replace all instances of
Be careful here, the result of your first substitution should be:
Replace all 4 instances of
Again, the result of your first of four substitutions should be:
PULSOUT 12, 750 + speed
Comment out the two
program (by inserting an apostrophe to the left of each of the two commands).
Save, run, and test the modified program. Trouble-shoot as needed.
Open the Memory Map again, and verify that only a byte and two bit variables
are allocated to
PULSOUT 13, 750 - speed
pulseLeft
REG 0,
PULSOUT
pulseLeft =
as shown on the right in Figure 3-3.
pulseRight =
and
pulseRight
commands that come after the
with
with
variable declarations.
PULSOUT 13
PULSOUT 12
Figure 3-3
The RAM Map portion of the
Memory Map
IrRoamingWithSpeedControl.bs2
(left)
Modified Your Turn version
(right)
, .
, .
ENDIF
in the

Related parts for 28139