| Infra-Red Signaling | |
|---|---|
|
Description: Describes our experience and experiments constructing various infra red (IR) remote control receivers. It presents a bit of theory, instructions on building the circuits and anectotal information in what we hope to be a light and interesting format. |
|
|
|
| Infra-Red Signaling | |
|
This page describes our experience and experiments constructing various infra red (IR) remote control receivers. It presents a bit of theory, instructions on building the circuits and anectotal information in what we hope to be a light and interesting format. RationaleThe LIRC project, which allows you to "decode and send infra-red signals of many (but not all) commonly used remote controls" had us interested in IR signals for a while but we'd yet to do anything about it. Then we installed Freevo and MythTV on a Mandrake box equiped with an ATI TV-Wonder tuner card. After getting everything working, we had the beginnings of a great PVR--but we were in need of a remote control. But it was the Atmel application notes: that finally convinced us to start experimenting with IR. InfraRed Remote Control signalsThe world is a noisy place: everything emits some infra red light. In order to differentiate a remote control unit's signal from the general noise and black body radiation, it tries to get noticed by being particularly annoying and at a specific (high) frequency, while it sends its (lower frequency) message. In other words the signal is modulated, usually somewhere between 36-40kHz. LIRC ReceiverThe simple receiver presented here uses a special remote control receiver component to keep the circuit straightforward and easy to build.The LIRC site has a section devoted to building IR remote receivers. I'll spare you the ASCII art--here is a schematic of a detector circuit as described by LIRC:
This is an extremely simple system. Point by point:
IR Reciever Module
Notice how Vout is tied to the transistor's collector in the block diagram? Because of that 100K pull-up resistor, when nothing is going on (transistor off) Vout will be high (will have Vcc present). When the transistor is activated, it is as if a switch is closed and Vout is then tied to ground (through the transistor), which is a logic low. This explains the inverted output from the IR receiver (incomming signal causes a low pulse on Vout). Prototype test circuitOnce you've acquired a suitable remote receiver module (a list of suitable ICs is available on the LIRC site), you'll want to verify that it is working and able to pickup signals from your remote. A good way to do so, it to setup up this modified version of the LIRC receiver circuit:
Differences with the implementation version:
Here is the test circuit, laid out on a miniature breadboard (click on the image for a more detailed top view): When no signal is detected by the IR receiver, the data line is high and the LED is therefore reverse biased: the cathode (the left side of the LED in the above schematic) is at a higher voltage (about +8.4V) than the anode of the LED, which is connected to VO at +5V. LEDs, like other diodes, will not normally conduct when reverse biased so current doesn't flow and the LED does not emit.
This test circuit was phenomenal when used with a magnavox remote--you could see the LED pulsing when you activated the remote control on the opposite side of the room, facing another direction! You may also have noticed that I used different values than those in the original LIRC schematic for a few of the components, namely R1 and C1.
Circuit PCBTo keep things clean in the final circuit, it's always nice to use a printed circuit board. If you know how to create a PCB, you can use this pattern (it's a mirror image, allowing you to transfer it to the copper easily): Click on the above image to get a higher resolution version which you can print at 400dpi. Note: The PCB assumes that you've got an IR module pin out like that of the Sharp GP1UD261XK (Vout, Vcc, Gnd):
This (x-ray) top view of the board will show you how to place the components once you've etched and drilled your PCB. Notice that the IR receiver module is placed such that the Vout pin is the "uppermost" pin of SV1 while the GND pin is that closest to the "X1" marking at the bottom. Mouse HouseI know a mouse, and he hasn't got a house. Before we had the chance to construct the above printed circuit board, I was handed an old compaq mouse. This mouse had old style buttons, from the days back when you wanted the company next door to know you had a modern computer just by the sound of your clickety-clicking all day long. This, along with the fact that just about everybody here is ergonomically obsessed and won't get near these wrist killers meant there wasn't much for me to do with the hardware other than give or throw it away.
The mouse had also been connected to an even older computer, and was therefore equipped with a PS/2 to serial port adaptor...aha! If the adaptor actually routed the serial pins 1 and 7 through the PS/2 cable, we could have a nice housing for our IR receiver and would save one serial port wire to boot. Our trusty screwdriver helped us find out if it would work.
Opening the device revealed a rather simple PCB by Logitech comprised of two IR LED/phototransistor pairs to track ball motion, a main logitech IC and support components. The most interesting part for us was the J1 component--the 6 pin PS2 cable header.
With a little desoldering work, the header was free from the circuit board. Be careful if you do this as excessive heat will melt the plastic header and allow the metallic pins to roam freely, getting crooked or falling out. Attaching the header to the cable on one end and a male DB9 to the serial adaptor allowed be to easily discover the adaptor wiring. I don't know if this is standard or not, so if you should come upon a similar setup, you can use a multimeter (set to measure resistance) or a simple interrupted LED circuit to try each combination and map the adaptor wiring. Here is how ours was setup:
Pins 1,2,4,7 and 8 each map to one of the PS/2 wires. The white wire seems to be attached to the DB9 shield (metal casing). I'm guessing it's supposed to act as ground and a quick look at the mouse PCB traces seems to confirm this. If we want to build the LIRC receiver, we need access to pins 1 (signal line), 7 (power) and 5. It looks like we're in trouble but since 5 is the ground pin, we'll use the white wire (db9 shield) and go from there.
|
|
| Level: | Article |
| Additional Article Data | |
| Level: | Article |
| Comments |
|---|
|
|
|
The comments are owned by the poster. We aren't responsible for their content.
|
| Jump to section |
|---|



The
remote control reciever is a single inexpensive (around $1.50) and easy to use component. It keeps your circuit
component count down by packing a lot of functionality within. The block diagram for the Sharp GP1UD261XK is typical:



When a signal is detected, the IR receiver data pin goes low putting the LED cathode at ground and allowing current
to flow... the LED lights up:









