28139 Parallax Inc, 28139 Datasheet - Page 194

KIT REMOTE IR FOR BOE-BOT W/TEXT

28139

Manufacturer Part Number
28139
Description
KIT REMOTE IR FOR BOE-BOT W/TEXT
Manufacturer
Parallax Inc
Datasheets

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
variable. Also,
defined as 1 in the constant declarations.) This ensures at least a 1 ms delay between data
bit pulses.
Example Program: ReceiveCustomIrMessage.bs2
' -----[ Title ]-----------------------------------------------------------
' IR Remote for the Boe-Bot - ReceiveCustomIrMessage.bs2
' Receives and decodes IR message with the custom protocol developed
' in IR Remote with the Boe-Bot, Appendix B.
' {$STAMP BS2}
' {$PBASIC 2.5}
' -----[ I/O Definitions ]-------------------------------------------------
IrDetPin
' -----[ Constants ]-------------------------------------------------------
StartMax
StartMin
Bin1Max
Bin1Min
Bin0Max
Bin0Min
' -----[ Variables ]-------------------------------------------------------
counter
irPulse
duration
irMessage
' -----[ Initialization ]--------------------------------------------------
DO: LOOP UNTIL IrDetPin = 1
' -----[ Main Routine ]----------------------------------------------------
DO
LOOP
' -----[ Subroutine - Get_Ir_Byte_Message ]--------------------------------
GOSUB Get_IR_Byte_Message
DEBUG "Received: ", irMessage, CR
PIN
CON
CON
CON
CON
CON
CON
VAR
VAR
VAR
VAR
PAUSE BtwnPulses
9
1700
1300
1200
800
700
300
Nib
Word
Nib
Byte
delays the program for 1 ms. (
BtwnPulses
is

Related parts for 28139