70016 Parallax Inc, 70016 Datasheet - Page 192

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
How TransmitCustomIrMessage.bs2 Works
Here is a hard-coded example of sending the number 9 with the circuit shown in Figure
B-1 and the protocol introduced in this activity. The number 9 in binary is %00001001.
Since the protocol sends the bits LSB-first, it means the rightmost digit is sent first, then
the second digit from the right, and so on until the leftmost of the eight digits is sent. The
Duration argument in the each of the
transmits 38 kHz. Each duration is either 3 (3 ms for the start pulse), 2 (2 ms for a
binary-1) or 1 (1 ms for a binary-0). A
ensures that the receiving BASIC Stamp will have time to process the bit and move on to
the next.
TransmitCustomIrMessage.bs2 has a subroutine that makes transmitting IR bytes much
easier and more versatile than hard coding. All you have to do is set the
variable to the value you want to send, and then call the
FOR counter = 0 TO 7
NEXT
RETURN
IF irMessage.LOWBIT(counter) = 1 THEN
ENDIF
FREQOUT IrLedPin,duration,IrFreq
PAUSE BtwnPulses
ELSE
FREQOUT 8, 3, 38000
PAUSE 1
FREQOUT 8, 2, 38000
PAUSE 1
FREQOUT 8, 1, 38000
PAUSE 1
FREQOUT 8, 1, 38000
PAUSE 1
FREQOUT 8, 2, 38000
PAUSE 1
FREQOUT 8, 1, 38000
PAUSE 1
FREQOUT 8, 1, 38000
PAUSE 1
FREQOUT 8, 1, 38000
PAUSE 1
FREQOUT 8, 1, 38000
duration = 2
duration = 1
' Start pulse
' Bit-0 = binary-1
' Bit-1 = binary-0
' Bit-2 = binary-0
' Bit-3 = binary-1
' Bit-4 = binary-0
' Bit-5 = binary-0
' Bit-6 = binary-0
' Bit-7 = binary-0
FREQOUT
PAUSE
commands controls how long each it
1 between each
Transmit_Ir_Byte
FREQOUT
irMessage
subroutine.
command

Related parts for 70016