Difference between revisions of "IR communication between PICs"
Line 6: | Line 6: | ||
== Overview == |
== Overview == |
||
The contents of this page explains how to allow two PICs that are wired together to talk to each other using infrared transceivers, thus allowing them to communicate by IR. This projected |
The contents of this page explains how to allow two PICs that are wired together to talk to each other using infrared transceivers, thus allowing them to communicate by IR. This projected demonstrates bidirectional communication between two PICs using 38 kHz IR communication. The UART within the PIC was used to send signals to the encoder/decoder, which communicated with the transceiver. This same technology can be used used to allow the PICs to receive data fro ma standard TV remote control. |
||
''Note'': The IR chip used for this project was a 0.95 pitch surface mount chip, which was extremely difficult to work with. Both a copper-clad board an a Schmart Board were used in attempts to mount this chip. |
|||
*IR employed for short-range communication |
*IR employed for short-range communication |
Revision as of 17:45, 5 February 2008
Original Assignment
Two PICs wired together can talk to each other using RS-232. Instead of wiring them together, we can use infrared transceivers so they communicate by IR. The goal of this project is to demonstrate bidirectional communication between two PICs using 38 kHz IR communication. Optional: show that these PICs can also receive data from a standard TV remote.
The Original Assignment indicates what you were assigned to do, and will eventually be erased from the final page.
Overview
The contents of this page explains how to allow two PICs that are wired together to talk to each other using infrared transceivers, thus allowing them to communicate by IR. This projected demonstrates bidirectional communication between two PICs using 38 kHz IR communication. The UART within the PIC was used to send signals to the encoder/decoder, which communicated with the transceiver. This same technology can be used used to allow the PICs to receive data fro ma standard TV remote control.
Note: The IR chip used for this project was a 0.95 pitch surface mount chip, which was extremely difficult to work with. Both a copper-clad board an a Schmart Board were used in attempts to mount this chip.
- IR employed for short-range communication
- Beam is modulated to encode data
- Supports IrDA(?) speeds up to 115.2 kbits/s (SIR)
- Transceiver module consists of:
- PIN photodiode
- Infrared emitter (IRED)
- Low-power control IC
- IR EnDec uses PDIP, SOIC pacakge
Circuit
The Circuit Diagram shows the layout of the PIC, Encoder/Decoder, and IR Transceiver combination. Two of these set-ups are needed in order to have two independent circuits: one to transmit and one to receive data. The specifications of the circuit are as follows:
PIC
- VDD = 5.0V
- C1 = 1µF
- Pin 11 or 32 can be used for VDD
- Pin 12 or 31 can be used for GND
MCP2122: Encoder/Decoder
- VDD = 1.8V-5.5V
- CBYP = 0.01µF
IR Transceiver
- Vcc1 = 2.8V
- Vcc2 = 3.0V
- R2 = 47Ω
- C2 = 0.1µF
The links to the data sheets for the Encoder/Decoder and the IR Transceiver can be found in the External Links sections.
- PIC interfaces serially with EnDec
- EnDec connected to transceiver through a transmit pin, a receive pin, and a Vlogic pin?
- Transceiver manufactured by Vishay Semiconductors
- Part # TFDU4300
- EnDec manufactured by Microchip
- Part # MCP2122
Surface Mount Prototyping
- Transceiver lead pitch = 1.2mm/0.95mm/0.50mm/0.45mm?
- Multiple options for installation
- Schmart board
- Digikey board (need to find)
- Copper-clad board etching
- Funky pin adapter thing Prof. Peshkin gave us
- Funky adapter thing #2 Prof. Peshkin gave us
Limitations
- Transceiver cannot simultaneously transmit and receive
Code
Code gives a listing of the liberally commented code, which should otherwise be as simple as possible (do not have extraneous lines of code that don't relate directly to the objective of the page).
External Links and Further Reading