70016 Parallax Inc, 70016 Datasheet - Page 193

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
For example, to send the value 9, simply set the
Transmit_Ir_Byte
The
selects the corresponding Duration for the
first, the subroutine uses a
to 7.
Inside the
examines
a 9, the first time through the
irMessage.LOWBIT(0)
and
the fourth time through
IF...THEN
irMessage.LOWBIT(counter)
a 0.
Before each repeat of the
duration,
irMessage.LOWBIT(1)
Transmit_Ir_Byte
Transmit_Ir_Byte:
IrFreq
irMessage.LOWBIT(counter)
irMessage = 9
GOSUB Transmit_Ir_Byte
FREQOUT IrLedPin, StartBitTime, IrFreq
PAUSE BtwnPulses
FOR counter = 0 TO 7
NEXT
RETURN
Transmit_Ir_Byte
IF irMessage.LOWBIT(counter) = 1 THEN
ENDIF
FREQOUT IrLedPin,duration,IrFreq
PAUSE BtwnPulses
statement inside the loop sets the duration variable to 2 if
ELSE
duration = 2
duration = 1
sends the 38 kHz signal for the number of ms stored in the duration
.
will be 1. The second time through the loop, counter will be 1,
irMessage.LOWBIT(3
subroutine examines each bit in the
FOR...NEXT
is 0. The third time through,
FOR...NEXT
subroutine's
stores a 1, or 1 if
loop that increments the counter variable from 0
FOR...NEXT
. Assuming that the subroutine is transmitting
FREQOUT
FOR...NEXT
loop, the command
) is 1, and so on... In each case, an
irMessage.LOWBIT(counter)
command. To transmit the bits LSB-
irMessage
loop, counter will be 0, so
loop, an
irMessage.LOWBIT(2
irMessage
variable to 9, then call
FREQOUT IrLedPin
IF...THEN
variable, and
statement
) is 0;
stores
,

Related parts for 70016