28139 Parallax Inc, 28139 Datasheet - Page 178
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: 178 of 212
- Download datasheet (3Mb)
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 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: