70016 Parallax Inc, 70016 Datasheet - Page 178

TEXT INFRARED REMOTE FOR BOE-BOT

70016

Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet

Specifications of 70016

Accessory Type
Manual
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
Boe-Bot®
For Use With
29122 - KIT PARTS IR REMOTE FOR BOE-BOT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
70016SE
Manufacturer:
ST
0
LOOP
How IrRemoteCodeCapture.bs2 Works
Each time through the outermost
also an inner
lasted longer than 2 ms. This indicates that the rest between messages just ended, and the
start pulse is beginning. The first
IF…THEN
leave clear) the corresponding bit in the
has already started while the
data pulse is measured with an
set (or leave clear) the next bit in
the rest of the useful part of the IR message and set/clear the rest of the bits in
remoteCode
The BS2sx and BS2p handle remote codes a little differently. The programs usually
search for the actual start pulse with a
resting state between messages. They also use
pulses since the
before the starting edge of the next data pulse. To see a code example that does this, see
the
Get_Ir_Remote_Code
BASIC Stamp 2 Series Application Example IrRemoteButtonDisplay.bs2
You can use this application example with BASIC Stamp 2, 2e, 2sx, 2p, or 2pe modules
to test your remote and display which key you pressed.
RCTIME 9, 0, irPulse
IF irPulse > 300 THEN remoteCode.BIT5 = 1
RCTIME 9, 0, irPulse
IF irPulse > 300 THEN remoteCode.BIT6 = 1
' Map digit keys to actual values.
IF (remoteCode < 10) THEN remoteCode = remoteCode + 1
IF (remoteCode = 10) THEN remoteCode = 0
DEBUG CLS, ? remoteCode
#CASE
statement that follows uses the value of the
.
statement for the BS2sx, BS2p inside the next example program's
DO…LOOP
IF…THEN
with an
subroutine.
statements that sets bits in the
IF…THEN
RCTIME
RCTIME
DO…LOOP
PULSIN
remoteCode
statement was executing, the remainder of the next
command. This next value is again used to either
remoteCode
command to detect the end of a high signal that
PULSIN
, the value of
command captures the first data pulse, and the
. This is repeated five more times to get
command instead of searching for the
PULSIN
' Repeat main DO...LOOP
irPulse
variable. Since the next data pulse
remoteCode
remoteCode
commands to capture all the
variable to either set (or
is cleared. There's
variable complete

Related parts for 70016