![]() |
With the following (minimal) hardware circuitry the NSLU2 is able to receive and transmit infrared signals, e.g. like RC5. These are normally received by audio and video equipment and sent by remote controls from your couch. The signals are decoded and generated in software using LIRC. This is not IrDA! In order to use IrDA, buy a cheap USB-IrDA adapter. How it worksWe receive on CTS of the 2nd serial port (can be tapped at the left end of R142), that is otherwise unused. The xScale-UART can be programmed to generate interrupts on CTS. We transmit with a IR diode between GPIO[1] (can be tapped at the right end of R53) and ground. GPIO[1] is also wired to cathode of the green status LED, which has it's anode at +3.3V. As the green LED is normally on, the IR LED is normally off. When transmitting, the green LED flashes. However while booting, the green LED is off for a minute and the IR LED is constantly on. But because there is no carrier, this shouldn't cause problems with erroneous IR signals. For the precise locations of R142 and R53 see AddASimpleTenPinConnector. I'd recommend to remove R142, because it has only 18 ohms. When the MOSFET pulls the trace to ground, it costs your SLUG almost 200mA! The Receiver Circuit
SFH5110-38 SLUG:
+---------------+ +------+
| -- VCC 3 |--+-------| 100R |---------- +5V
| / \ | | +------+
| / \ | = 4u7
| | | | |
| | |GND 2 |--+---------+--------------- GND
| | | | |
| \ / | |
| \ / | |
| -- OUT 1 |-----| |----+ +-------+
+---------------+ G | | S +-| 4k7 |-- +3.3V
| | +-------+
| | D |
| |-------+------------ CTS2 (Left side of R142)
BS170
(N-Channel MOSFET)
Notes:
The Transmitter Circuit
+------+
+--------| 270R |---------------------- GPIO[1] (Green Ready LED)
| +------+
IR _|_
<-- \ /
<-- V
---
|
+-------------------------------------- GND
or even better:
+---------------------- + 3.3 V
\^
E \| B +------+
BC557 |-----| 1k |------ GPIO[1] (Green Ready LED)
C /| +------+
+------+ /
+---| 270R |----+
| +------+
IR _|_
<-- \ /
<-- V
---
|
+-------------------------------------- GND
Notes:
The SoftwareThe NSLU2-specific code is already in LIRC since version 0.8.0 (thanks to Christoph). The following picture is an example of a receiver/transmitter circuit that is plugged into my 10-pin-connector (see AddASimpleTenPinConnector). It has two receivers and two transmitters in different directions: ![]() Matthias Goebl <matthias(dot)goebl(at)goebl(dot)net>
view ·
edit ·
print ·
history ·
Last edited by Matthias Goebl.
Based on work by Matthias Goebl and tman. Originally by Matthias Goebl. Page last modified on April 02, 2006, at 11:10 PM
|