28139 Parallax Inc, 28139 Datasheet - Page 29
![KIT REMOTE IR FOR BOE-BOT W/TEXT](/photos/8/99/89978/mfg_28139_sml.jpg)
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: 29 of 212
- Download datasheet (3Mb)
ACTIVITY #3: CAPTURING THE IR MESSAGES
In this activity, you will write programs to measure and capture each pulse in the PWM
message sent by the infrared remote. There are a total of twelve data pulses in a given
message, and each can be captured and stored. By programming the BASIC Stamp to
capture and store these pulses, you will have the key programming ingredient for sending
messages to your Boe-Bot with the handheld remote.
Introduction to Array Variables
Twelve pulse measurements have to be stored separately because they are each a unique
part of the message. Even so, they are related to each other. They are all pulse
measurement values, and they are all going to be examined to determine which key on
the remote is being pressed.
The best way to store a group of related values is with a special kind of variable called an
array variable. An array variable is a group of variables that all have the same name.
Declaring an array variable is similar to declaring most other variables. The only
difference is that a number is added in parentheses next to the
how many variables to create that will share the same name. Here is the syntax for an
array variable declaration:
Here is an example of an array that can store five bytes:
Figure 1-11 shows the five
characters(0)
characters(4)
element has a number called an index (the number inside parentheses) that differentiates
it from the other elements. In other words, each array element variable has the same
name, but a different index number.
√
Compare this IR message time to the one you calculated by adding up all the IR
message's components.
name
characters VAR Byte(5)
,
. Each of these variables, called array elements, can store a byte. Each
VAR
packet
characters(1)
Size(n)
_
time
=
messages
characters
,
1
/
second
characters(2)
Chapter 1: Infrared Remote Communication · Page 19
variables created by this declaration:
,
characters(3)
Size
argument that tells
,
and
Related parts for 28139
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![30008](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
![70009](/photos/26/92/269208/70009-l_tmb.jpg)
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
![27404](/photos/26/91/269197/27404-l_tmb.jpg)
Part Number:
Description:
COMPETITION RING FOR SUMOBOT
Manufacturer:
Parallax Inc
Datasheet:
![70016](/photos/8/99/89966/mfg_70016_tmb.jpg)
Part Number:
Description:
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer:
Parallax Inc
Datasheet:
![28135](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
![28023](/photos/9/30/93020/mfg_28023_tmb.jpg)
Part Number:
Description:
CONTROLLER 16SERVO MOTOR CONTROL
Manufacturer:
Parallax Inc
Datasheet:
![30010](/photos/9/30/93025/mfg_30010_tmb.jpg)
Part Number:
Description:
BASIC STAMP LOGIC ANALYZER
Manufacturer:
Parallax Inc
Datasheet:
![SX18AC/SO](/images/manufacturer_photos/0/5/515/parallax_inc_tmb.jpg)
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: