Debian Codegraph @

doc/lirc.org/receivers.html

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
3 <HTML>
4
5 <HEAD>
6 <LINK REL=stylesheet TYPE="text/css" HREF="lirc.css">
7 <LINK REL="shortcut icon" HREF="favicon.ico">
8 <TITLE>LIRC - Serial Port Receivers</TITLE>
9 </HEAD>
10
11 <BODY BACKGROUND="images/marb18.jpg"
12 BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#7070E0"
13 VLINK="#808080" ALINK="#9090FF">
14 <TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
15 <TR>
16 <TD WIDTH="100%" HEIGHT="150" BGCOLOR="#000080" ALIGN="RIGHT"
17 VALIGN="TOP">
18 <IMG SRC="images/diode.gif" ALT="diode" WIDTH="300"
19 HEIGHT="150" BORDER="0" HSPACE="20" VSPACE="0" ALIGN="LEFT">
20 <IMG SRC="images/lirc.gif" ALT="lirc-logo" WIDTH="300"
21 HEIGHT="150" BORDER="0" HSPACE="20" VSPACE="0" ALIGN="RIGHT">
22 </TD>
23 </TR>
24 <TR>
25 <TD WIDTH="100%" ALIGN="LEFT" VALIGN="TOP">&#160;<BR>
26
27 <!-- Text -->
28
29 <CENTER><HR WIDTH="70%">
30 <H1>Serial Port Receivers</H1>
31 <HR WIDTH="50%"><BR></CENTER>
32
33 <TABLE WIDTH="100%">
34 <TR>
35 <TD WIDTH="15%" VALIGN="top">
36 &#160;
37 <script type="text/javascript"><!--
38 google_ad_client = "pub-3628312733106047";
39 google_ad_width = 120;
40 google_ad_height = 240;
41 google_ad_format = "120x240_as";
42 google_ad_type = "text";
43 google_ad_channel ="";
44 google_color_border = "6060C0";
45 google_color_bg = "FFFFFF";
46 google_color_link = "7070E0";
47 google_color_url = "666666";
48 google_color_text = "333333";
49 //--></script>
50 <!-- AD --><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
51 </TD>
52 <TD WIDTH="70%">
53 <P>
54 The following page will show you how to build your
55 own infrared receiver for the serial port. Please
56 note that the serial port driver in the LIRC package
57 only supports 8250 compatible UARTs (this includes
58 the most common 16450 and 16550A types). That means
59 that it won't work with exotic multi-port cards that
60 need a special driver. <!-- Alessio Sangalli has put
61 together an excellent <A HREF="http://www.manoweb.com/alesan/lirc/">step by
62 step description</A> of how to put together a serial
63 receiver like described below. Have a look at it. -->
64 <!-- If you'd rather buy some device than
65 solder your own circuit I recommend the
66 receivers from -->
67 </P>
68 <P>
69 From my own experience, the hardest thing in
70 building your receiver hardware is getting a
71 suitable infrared receiver IC. Hence, here is a
72 list of ICs that have been successfully used to
73 build a serial port receiver. But be aware that not
74 all of them have the same pin-out!
75 </P>
76 <UL>
77 <LI>
78 Vishay TSOP 1738 (available in the US at Newark Electronics)<BR>
79 <!-- AD Available at conrad.de: <IMG SRC="http://banners.webmasterplan.com/view.asp?site=2945&ref=272927&b=0&type=text&tnb=34" BORDER="0" WIDTH="1" HEIGHT="1"><A HREF="http://partners.webmasterplan.com/click.asp?ref=272927&site=2945&type=text&tnb=34&pid=171077" TARGET="_blank">part number 171077</a -->
80 </LI>
81 <LI>
82 Vishay TSOP 1838<BR>
83 <!-- AD Available at conrad.de: <IMG SRC="http://banners.webmasterplan.com/view.asp?site=2945&ref=272927&b=0&type=text&tnb=34" BORDER="0" WIDTH="1" HEIGHT="1"><A HREF="http://partners.webmasterplan.com/click.asp?ref=272927&site=2945&type=text&tnb=34&pid=171115" TARGET="_blank">part number 171115</a -->
84 </LI>
85 <LI>
86 Vishay <!-- A HREF="http://www.vishay.com/temporary/datasheets/optoelectronics/photomodules/tsop11...html" -->TSOP 11..<!-- /A --> series
87 </LI>
88 <LI>
89 Siemens SFH 506 (not produced any more)
90 </LI>
91 <LI>
92 Siemens <A HREF="http://www.infineon.com/products/opto/pdf/sfh5110.pdf">
93 SFH 5110 </A> (successor of SFH 506)
94 </LI>
95 <LI>
96 discontinued: Radio Shack 276-0137 (<A HREF="http://sourceforge.net/mailarchive/forum.php?thread_id=590689&amp;forum_id=5339">other
97 Radio Shack part numbers</A>)
98 </LI>
99 <LI>
100 Radio Shack 276-640<BR>
101 <FONT COLOR="red">Warning:</FONT> There have been
102 reports that the signal quality these receivers
103 produce is very unstable. YMMV. If possible use
104 another receiver IC.
105 </LI>
106 <LI>
107 Hebei IT <A HREF="http://ledz.com/led.datasheet/PL-IRM0101-3.pdf">PL-IRM0101-3</A>
108 </LI>
109 <LI>
110 Everlight IRM-2238
111 </LI>
112 <LI>
113 Everlight IRM 8100-3-M (Radio Shack part
114 no. 276-0137B)
115 </LI>
116 <LI>
117 Everlight IRM-8601M
118 </LI>
119 <!-- LI>
120 Panasonic <A HREF="http://www.semicon.panasonic.co.jp/cgi-bin/ds/search.cgi?search_word=PNA46&lang=1">PNA46xxM</A>
121 </LI -->
122 <LI>Mitsumi IR Preamp KEY-COOSV (0924G)</LI>
123 <LI>TOSHIBA TK19 444 TFMS 5360 (known in Italy as Mivar IC)</LI>
124 <LI>TEMIC TFMS 5380 by Telefunken Semiconductors</LI>
125 <LI>
126 Sharp <A HREF="http://www.sharp.co.jp/ecg/opto/products/pdf/ir_devices/ir_ds_ir_durc/is1u60.pdf">
127 IS1U60</A> (available at <A HREF="http://www.rswww.com">RS</A>, it seems that this
128 IC draws much more current than the others)<BR>
129
130 <FONT COLOR="red">Warning:</FONT> Some users have
131 reported problems with the IS1U60 receiver. It
132 picks up ambient light and is nearly unusable with
133 fluorescent lamps. If ever possible get a
134 different receiver.
135 </LI>
136 <LI>
137 <A HREF="http://www.everlight.com/">Everlight</A>
138 <A HREF="http://www.everlight.com/pdf/Irm-8601s.pdf">IRM-8601S</A>
139 </LI>
140 <LI>
141 Sony SBX 1404-01
142 </LI>
143 <LI>
144 Sony SBX 1620-12
145 </LI>
146 <LI>
147 Sharp 1u521X
148 </LI>
149 <LI>
150 Sharp GP1U52XB
151 </LI>
152 <LI>
153 Sharp GP1U271R (available from RS)
154 </LI>
155 <LI>
156 Sharp GP1UD261XK (available from Digikey)
157 </LI>
158 <LI>
159 Panasonic PNA4602M (available from Digikey)
160 </LI>
161 <LI>
162 Panasonic PNA4611M (36 kHz, available from Digikey)
163 </LI>
164 <LI>
165 Panasonic PNA4612M (38 kHz, available from Digikey)
166 </LI>
167 <LI>
168 Kodenshi PIC-12043S
169 </LI>
170 <LI>
171 Daewoo DHR-38 C 28
172 </LI>
173 <LI>
174 ZD1952 (available in Australia at <A HREF="http://www.jaycar.com.au">Jaycar</A>)<BR>
175 Check the pinout, it's different from most other modules.
176 </LI>
177 <LI>
178 Z1955 (available in Australia at <A HREF="http://www.dse.com.au">Dick Smith Electronics</A>)<BR>
179 Check the pinout, it's different from most other modules.
180 </LI>
181 <LI>
182 A-Tronic TRM38 IR module
183 </LI>
184 <LI>
185 TRM1038 (manufacturer unknown), <A HREF="pinout_TRM1038.txt">pinout</A>
186 </LI>
187 <LI>
188 Sharp Electronics GP1UD277XK (Digikey part no. 425-1122-ND)<BR>
189 This is a 56kHz type receiver. It has been reported to also work well with 38kHz remotes.
190 </LI>
191 </UL>
192 <P>
193 Most of these receivers come in variations
194 adapted to a specific carrier frequency. You
195 should choose the 38kHz types because most
196 remote control standards use this
197 frequency. 36kHz types should work as well. The
198 receiver won't stop working if your remote uses
199 another frequency but the range will
200 decrease. If in doubt which IR receiver type to
201 choose you should read this more <A
202 HREF="cir.html">detailed description on how IR
203 receivers work</A> internally.
204 </P>
205 <P>
206 There are also some brands that use 56kHz carrier
207 frequency. A 38kHz receiver should still work to
208 create a config file for these kinds of remotes at
209 short range but if you plan to use them regularly
210 you should use a 56kHz receiver. Bang &amp; Olufsen
211 uses 455kHz for their remotes so you will need a
212 matching receiver. 38kHz or 56kHz receivers won't
213 work.
214 </P>
215 <P>
216 Some HiFi components also have a remote control
217 output which carries the IR signal at TTL
218 level. If you plan to integrate your computer
219 into the HiFi rack, you might be able to reuse
220 this output instead of using a dedicated
221 receiver.
222 </P>
223 <P>
224 Additionally to the receiver you will need the
225 following parts:
226 </P>
227 <UL>
228 <LI>C1 - 4.7&micro;F capacitor</LI>
229 <LI>D1 - 1N4148 diode</LI>
230 <LI>R1 - 4k7 resistor (4.7 kOhm)</LI>
231 <LI>IC2 - 78L05, 100mA, voltage regulator (TO-92 casing)</LI>
232 <LI>9-pin or 25-pin SUB-D socket</LI>
233 </UL>
234 <P>
235 The pin-out of the voltage regulator usually looks
236 like this (bottom view):
237 </P>
238 <PRE>
239
240 1 2 3
241 _______
242 / \ Pin1 = OUT
243 ( o o o ) Pin2 = GND
244 \ / Pin3 = IN
245 -___-
246
247 </PRE>
248 <P>
249 But you should check the data sheet anyway to make
250 sure you have the same type of regulator that is
251 used here.
252 </P>
253 <P>
254 Finally we come to the circuit itself. It's rather
255 simple and can be explained in a few words. Here's
256 also a <A HREF="images/schematics.gif">nicer
257 version</A> of the ASCII arts below. There's also a
258 suggestion how to <A
259 HREF="images/irrcv_board.gif">layout</A> the circuit
260 on a 5x5 hole-matrix board. The connector pins on
261 the data-to-PC are designed to use a standard CD-ROM
262 audio cables, but of course it's not necessary to
263 use one.
264 </P>
265 <PRE>
266 IC1 = TSOP 1738
267 +-----------------------+ 3 R1 (4k7)
268 | data -> +--------------------------------+------------o DCD
269 | | _______ |
270 | ______________ | | 78L05 | | | D1 (1N4148)
271 | / | +-----+-----|OUT IN|--+ | |
272 | ( | 2 | | + |__GND__| | | | /|
273 | \______________ + +----+ ----- | +----+------|< |--o RTS
274 | | ----- | IC2 | \|
275 | | 1 | |
276 | - +----------+---------+------------------------o GND
277 +-----------------------+ C1 (4.7&micro;F)
278
279 </PRE>
280 <P>
281 The power for the circuit comes from the RTS line of
282 the serial port. D1 protects the circuit from the
283 negative voltage that is usually on the RTS pin. The
284 LIRC driver will change the serial port settings on
285 initialization so that the circuit will get the
286 necessary positive voltage. For most standard PC
287 serial ports this will be approximately 10V. IC2
288 will convert the input voltage to exactly 5V. As the
289 input voltage for the 78Lxx type regulators has to
290 be at least 2V higher than the output voltage to
291 work reliably, this circuit probably won't work on
292 some notebooks. The line drivers inside notebooks
293 often provide voltages about 6V or even less. So you
294 should make sure that your serial port delivers at
295 least 8V of output voltage. If your serial port
296 provides less you can also try using a low-drop
297 voltage regulator (e.g. LP 2950 CZ) instead of the
298 regulator suggested here. Low-drop types need much
299 less voltage offset for reliable regulation. Instead
300 of pulling the power supply from the serial port you
301 can also use a different source like e.g. the USB
302 port or the internal 5V line to power the
303 circuit. Then you won't need a voltage regulator at
304 all.
305 </P>
306 <P>
307 C1 is optional but I recommend using it anyway. R1
308 is a pull-up that makes sure the DCD line is on a
309 valid voltage level if the receiver does not receive
310 anything. When an infrared signal is detected IC1
311 (this is true for active low receivers, if you use
312 an active high receiver leave away R1 or make it a
313 pull-down to GND) pulls DCD down to ground, which
314 should already be interpreted as a logical "1"
315 (DCD=0) by the serial port.
316 </P>
317 <P>
318 It should be noted that the circuit described above
319 does not fully comply to the RS232 standard as
320 latter demands a voltage swing of at least -3V/3V
321 for the signals. This circuit will provide
322 approximately 0V/5V which the majority of serial
323 ports will also accept. If you have problems with
324 this circuit or want to use it on a serial port that
325 does not provide enough voltage for the regulator,
326 you should use the <A HREF="http://www.tb-electronic.de/vdr/lirc/lirc_rx.html">more
327 advanced circuit</A> (<A HREF="PCB.pdf">PCB layout</A>) suggested by Thomas Breuer in
328 this <A HREF="http://sourceforge.net/mailarchive/message.php?msg_id=2593921">mailing
329 list post</A>. This circuit addresses both
330 problems but will need some additional parts.
331 </P>
332 <P>
333 Here is a small overview of the most important pins
334 of standard 9-pin and 25-pin SUB-D serial port
335 connectors:
336 </P>
337 <P>
338 <PRE>
339 Name 25-pin 9-pin
340 ---------------------------------------------------------
341 TxD 2 3 transmit data
342 RxD 3 2 receive data
343 RTS 4 7 request to send (here: power source)
344 CTS 5 8 clear to send
345 DSR 6 6 data set ready
346 GND 7 5 ground
347 DCD 8 1 data carrier detect (here: signal line)
348 DTR 20 4 data terminal ready
349 </PRE>
350 <P>
351 The following <A HREF="pictures1.html">pictures</A>
352 were taken from the
353 <A HREF="http://www.metzlerbros.de/lirc/index.html">
354 lirc-0.3.6</A> package with kind permission of its
355 author, Ralph Metzler. They show the receiver
356 build into a SUB-D hood. The original circuit used
357 resistors to get the 5V voltage but as this caused
358 problems for many people it shouldn't be used
359 anymore.
360 </P>
361 <P>
362 Andreas Nestler came up with a nice idea for a
363 receiver casing. He assembled the infrared receiver
364 inside an old <A
365 HREF="pictures2.html">mouse</A>. Note that he had to
366 replace the old mouse plug because not all the
367 necessary signals were passed through.
368 </P>
369 <P>
370 Here's a highlight for all Star Wars fans: Petri
371 Damst&eacute;n built his receiver inside a <A
372 HREF="http://www.iki.fi/damu/mods/tie_lirc/index.html">TIE
373 fighter</A> model.
374 </P>
375 </TD>
376 <TD WIDTH="15%">
377 &#160;
378 </TD>
379 </TR>
380 </TABLE>
381
382 <!-- Text -->
383
384 <BR>&#160;<BR>
385 <CENTER>[<A HREF="index.html">LIRC Homepage</A>]</CENTER>
386 <BR>&#160;<BR>
387 </TD>
388 </TR>
389 <TR>
390 <TD WIDTH="100%" BGCOLOR="#000080" ALIGN="LEFT" VALIGN="TOP">
391 &#160;<BR>
392 </TD>
393 </TR>
394 </TABLE>
395 </BODY>
396 </HTML>