28139 Parallax Inc, 28139 Datasheet - Page 78
28139
Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
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
- Current page: 78 of 212
- Download datasheet (3Mb)
A Simple Boe-Bot Main Routine
In the previous activity, you replaced the main routine in IrRemoteButtons.bs2 with a
code block that contained a
SELECT…CASE
evaluate it on a
the
for each different
SELECT…CASE
each
maneuvers.
4BitRemoteBoeBot.bs2 from Chapter 1, Activity #5. The difference is, this time, it will
be really easy to write, and even easier to adjust and expand.
All you have to do with the next example program is open IrRemoteButtons.bs2, save it
under a new name, and modify the main routine. The IR remote code reading is taken
care of in a subroutine, so you can focus on programming the Boe-Bot, and all you need
to know is the value of the
subroutine.
Example Program – 7BitRemoteBoeBot.bs2
This example gives you all the number key features of 4BitRemoteBoeBot.bs2 from
Chapter 1, Activity #5, plus the CH+/- and VOL+/- key features from Chapter 1, Activity
#4.
remoteCode
√
√
√
√
CASE
Open IrRemoteButtons.bs2 and save it as 7BitRemoteBoeBot.bs2.
Add an initialization section just before the Main Routine:
' -----[ Initialization ]----------------------------------------------
DEBUG "Press and hold a key (1-9 or CH/VOL)..."
FREQOUT 4, 2000, 3000
Replace the
statement can contain code blocks that deliver pulses for different Boe-Bot
works is that you use it to
is also really good for Boe-Bot navigation. Instead of
CASE
This
variable on a case by case basis, executing different
CASE
DO…LOOP
by
(value stored in
can
CASE
remoteCode
SELECT…CASE
be
in the main routine with this one:
basis.
showcased
SELECT remoteCode
remoteCode
variable after you call the
SELECT
statement. The best way to remember how
by
a (constant, variable or expression) and
).
repeating
' Start/reset indicator.
made it possible to evaluate
the
Get_Ir_Remote_Code
DEBUG
DEBUG
functionality
commands,
commands
of
Related parts for 28139
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: