28139 Parallax Inc, 28139 Datasheet - Page 192
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: 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 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: