Click HERE for high
infrared communications links are quick, easy, and affordable with Fire-Stick
With Fire-Stick II
and an infrared detector module, simple SEROUT & SERIN commands are all you
need to create your own wireless infrared communications system between two
the BASIC Stamp, PIC, and 8051 to transmit serial data by infrared with a single
I/O-pin. The receiver circuit requires only an infrared detector module such as
the Panasonic PNA4602M for serial data reception at baud rates up to 2400.
BS-II Code For Receiving Serial Data:
' 1200 Baud, (NON-INVERTED)
0,baud, [ wait ("A"), b0 ] Wait for ASCII letter A
debug ? b0
Show value received in B0
start ' Loop
sample code above requires only an IR detector module such as the (PNA4602M)
connected to the Stamp I/O-pin 0 to receive infrared serial data.
By using a synchronization or address technique shown in the receiver code
sample above wait ("A"), you can force the receiving controller to ignore data not preceded
by a unique address or synch byte. This allows selective control of multiple receivers from a single transmitting station. Much the same as
addressing schemes with remote control encoder/decoder ICs, but considerably
transmitter sample code below will send the synchronization byte (capital letter
A), followed by incrementing numbers from 1 to 100. The debug screen (when used
with the receiver sample code) will display the numbers 1 to 100 with a 1/4
second pause between each display update.
BS-II Code For Sending Serial Data:
con 17197 '1200 Baud,(INVERTED)
number var byte
for number = 1 to 100
15,baud,["A",number] ' N1200 baud
Connections to Controller:
II has a 3-pin header that makes connection to the BASIC Stamp, PIC or other
controller circuit quick & easy. Below are the simple connections required to
control Fire-Stick II.
1: Fire-Stick II connection diagram.
to Fire-Stick II:
Always connect this pin to ground of the microcontroller circuit you will use to
control Fire-Stick II.
(Output Only) Connect this pin to the microcontroller circuit Vcc only
if you intend for the regulator on the Fire-Stick II to provide power to the
microcontroller circuit. This pin is the regulated output from the onboard LM340
+5 volt regulator.
onboard regulator of Fire-Stick II can provide up to 500mA.
This can be used to power your BASIC Stamp or PIC circuit and the components on the Fire-Stick
II at the same time from a single 9 volt battery.
If you provide an alternate power supply for the microcontroller, leave the
center pin (VCC Output Only) open or - not connected.
Input From Stamp or PIC Connect the serial output pin from the
microcontroller directly to this pin. This will be the serial data input from
II takes serial data, and sends it in the form of infrared energy modulated at 38KHz.
two-stage transistor LED drive circuit mixes the
incoming serial data with the 38KHz carrier to provide a modulated infrared data
signal directly compatible with the infrared detector module.
Power for the LED is taken
directly from the unregulated input to the regulator. This must not exceed +9