70016 Parallax Inc, 70016 Datasheet - Page 192
70016
Manufacturer Part Number
70016
Description
TEXT INFRARED REMOTE FOR BOE-BOT
Manufacturer
Parallax Inc
Datasheet
1.70016.pdf
(212 pages)
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
- Current page: 192 of 212
- Download datasheet (3Mb)
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
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Microcontroller Modules & Accessories Breadboard Set
Manufacturer:
Parallax Inc
Part Number:
Description:
Power Entry Modules 4AA Battery Holder
Manufacturer:
Parallax Inc
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:
Microcontroller Modules & Accessories DISCONTINUED BY PARALLAX
Manufacturer:
Parallax Inc
Part Number:
Description:
BOOK UNDERSTANDING SIGNALS
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
BOARD EXPERIMENT+LCD NX-1000
Manufacturer:
Parallax Inc
Datasheet:
Part Number:
Description:
IC MCU 2K FLASH 50MHZ SO-18
Manufacturer:
Parallax Inc
Datasheet: