28139 Parallax Inc, 28139 Datasheet - Page 70
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: 70 of 212
- Download datasheet (3Mb)
ACTIVITY #2: DESIGNING A REUSABLE REMOTE PROGRAM
Up to this point, you have completed a program that performs IR remote message capture
and decoding for SONY TV signals. Before doing more Boe-Bot applications, it's better
to rewrite the program so that all the work is done in subroutines. Along with the
subroutines, the program should also have
declarations for the variables that are used by the subroutines.
Building an Application for Reading the IR Remote
This next program is a more reusable version of PulsesToByteValueYourTurn.bs2. Here
are the changes that were made to it:
•
•
•
•
Constants – keypad values with meaningful names
Variables – variables that have to be used with the subroutines
Main routine – call the subroutine and display the data
Subroutine – capture message pulses from the infrared remote and decode
Table 2-1 was used to build a list of
The
section.
A very simple main routine that displays the IR remote code in the Debug
Terminal was inserted here along with a comment to add your own code.
This one should contain everything inside the main the
PulsesToByteValueYourTurn.bs2.
VAR
declarations from PulsesToByteValue.bs2 were given their own
Key
Table 2-1: Remote Key Codes
POWER
ENTER
VOL+
VOL-
CH+
CH-
0-9
CON
Decimal
Value
directives for non-numbered keys and
CON
directives.
DO
...
LOOP
from
VAR
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: