| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
|
| 3 |
<HTML> |
| 4 |
|
| 5 |
<HEAD> |
| 6 |
<TITLE>LIRC - Serial Port Transmitters</TITLE> |
| 7 |
<LINK REL=stylesheet TYPE="text/css" HREF="lirc.css"> |
| 8 |
<LINK REL="shortcut icon" HREF="favicon.ico"> |
| 9 |
</HEAD> |
| 10 |
|
| 11 |
<BODY BACKGROUND="images/marb18.jpg" |
| 12 |
BGCOLOR="#FFFFFF" TEXT="#000000" ALINK="#9090FF"> |
| 13 |
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0"> |
| 14 |
<TR> |
| 15 |
<TD CLASS="menu" WIDTH="100%" HEIGHT="150"> |
| 16 |
<IMG SRC="images/diode.gif" ALT="diode" WIDTH="300" |
| 17 |
HEIGHT="150" BORDER="0" HSPACE="20" VSPACE="0" ALIGN="LEFT"> |
| 18 |
<IMG SRC="images/lirc.gif" ALT="lirc-logo" WIDTH="300" |
| 19 |
HEIGHT="150" BORDER="0" HSPACE="20" VSPACE="0" ALIGN="RIGHT"> |
| 20 |
</TD> |
| 21 |
</TR> |
| 22 |
<TR> |
| 23 |
<TD WIDTH="100%"> <BR> |
| 24 |
|
| 25 |
<!-- Text --> |
| 26 |
<HR WIDTH="70%"> |
| 27 |
<H1 ALIGN="CENTER">Serial Port Transmitters</H1> |
| 28 |
<HR WIDTH="50%"><BR> |
| 29 |
|
| 30 |
<TABLE WIDTH="100%"> |
| 31 |
<TR> |
| 32 |
<TD WIDTH="15%" VALIGN="top"> |
| 33 |
  |
| 34 |
<script type="text/javascript"><!-- |
| 35 |
google_ad_client = "pub-3628312733106047"; |
| 36 |
google_ad_width = 120; |
| 37 |
google_ad_height = 240; |
| 38 |
google_ad_format = "120x240_as"; |
| 39 |
google_ad_type = "text"; |
| 40 |
google_ad_channel =""; |
| 41 |
google_color_border = "6060C0"; |
| 42 |
google_color_bg = "FFFFFF"; |
| 43 |
google_color_link = "7070E0"; |
| 44 |
google_color_url = "666666"; |
| 45 |
google_color_text = "333333"; |
| 46 |
//--></script> |
| 47 |
<!-- AD --><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> |
| 48 |
</TD> |
| 49 |
<TD WIDTH="70%"> |
| 50 |
<P> |
| 51 |
The following text was taken from the |
| 52 |
<A |
| 53 |
HREF="http://www.metzlerbros.de/lirc/index.html"> |
| 54 |
lirc-0.3.6</A> package with kind permission of its |
| 55 |
author, Ralph Metzler. I have just substituted the |
| 56 |
ASCII arts by nicer GIFs (thanks to David Norris), |
| 57 |
recommend another IR LED (the LED recommended |
| 58 |
originally was transmitting at 880 nm which is not |
| 59 |
suitable for remote control applications which use |
| 60 |
950 nm) and added a small signal diode to protect |
| 61 |
the IR LED from the voltage of the serial |
| 62 |
port. Most IR LEDs have reverse voltage ratings of |
| 63 |
only 5V. I received reports that the range of the |
| 64 |
first circuit will be much smaller if you use it |
| 65 |
together with an receiver. Sometimes it will even |
| 66 |
stop working at all. |
| 67 |
</P> |
| 68 |
<P> |
| 69 |
If you are looking for a circuit with better range |
| 70 |
and don't want to use an external power supply you |
| 71 |
should have a look at <A |
| 72 |
HREF="improved_transmitter.html">Enrique Vidal's |
| 73 |
circuit </A> that he <A |
| 74 |
HREF="http://www.geocrawler.com/archives/3/3680/2001/1/0/5037984"> |
| 75 |
posted on the mailing list</A>. I haven't tried it |
| 76 |
myself but it looks very promising. |
| 77 |
</P> |
| 78 |
<!-- AD --><P> |
| 79 |
<!-- AD -->If you are looking for a ready-made |
| 80 |
<!-- AD -->transmitter solution you should have a |
| 81 |
<!-- AD -->look at the transceivers offered by |
| 82 |
<!-- AD --><A HREF="http://www.irtrans.de/">www.irtrans.de</A>. |
| 83 |
<!-- AD -->The transmitter part is quite powerful |
| 84 |
<!-- AD -->and the driver software provides a LIRC |
| 85 |
<!-- AD -->compatible socket interface. |
| 86 |
<!-- AD --></P> |
| 87 |
<CENTER><HR WIDTH="50%"></CENTER><BR> |
| 88 |
<P> |
| 89 |
Simple transmitter circuit on serial port: |
| 90 |
</P> |
| 91 |
<CENTER><IMG SRC="images/simple_transmitter.gif" |
| 92 |
ALT="Simple transmitter"></CENTER> |
| 93 |
<P> |
| 94 |
R should be greater than 1K so that the current is less than 10mA (my serial |
| 95 |
port has about +/- 10V). I guess it is also save to leave out the resistor |
| 96 |
since the serial port should also have a max. short circuit current. |
| 97 |
Since the maximum current is so small almost any infra-red LED should be |
| 98 |
usable |
| 99 |
</P> |
| 100 |
<P> |
| 101 |
The range of this device is up to 1m depending on the |
| 102 |
receiving device (e.g. with my Sony VCR) and if you aim right at the IR |
| 103 |
detector. Not good enough to be practical but enough to e.g. invent your own |
| 104 |
code to control your computer and program a programmable remote with it. |
| 105 |
</P> |
| 106 |
<P> |
| 107 |
Usage of the this circuit is not recommended if you value your serial port. |
| 108 |
If it is on the motherboard I would not use it! |
| 109 |
I use a serial port on a cheap serial card for testing. |
| 110 |
Actually I only say this, so that it's not my fault if your house burns |
| 111 |
down ... |
| 112 |
Does anybody know what can happen if you short circuit the serial port? |
| 113 |
</P> |
| 114 |
<P> |
| 115 |
If you don't want strain your serial port, use a bigger resistor or a simple |
| 116 |
amplifier circuit like this: |
| 117 |
</P> |
| 118 |
<CENTER><IMG SRC="images/better_transmitter.gif" |
| 119 |
ALT="Better transmitter"></CENTER> |
| 120 |
<P> |
| 121 |
R in the amplifier circuit can be chosen as small as 5 Ohm (for 5V !). |
| 122 |
Since the signal is pulsed and with a 40kHz carrier frequency, an |
| 123 |
LED like the LD 271 (or others with max. 100 mA) can tolerate 1A for |
| 124 |
a short period of time. |
| 125 |
Some data sheets might mention how high the current can go for certain |
| 126 |
pulse lenghts. |
| 127 |
</P> |
| 128 |
<P> |
| 129 |
But take care that after the signal is sent the signal line is low or |
| 130 |
your LED might become a little "brownish" like one of mine did :-) |
| 131 |
(It even still works, but the range decreased to a few centimeters ...) |
| 132 |
It should be safe if you use >50 (>90) Ohm for 5 (9) V, but the range |
| 133 |
will be much smaller. |
| 134 |
</P> |
| 135 |
<CENTER><HR WIDTH="50%"></CENTER><BR> |
| 136 |
<P> |
| 137 |
Petteri Aimonen sent in the following suggestion to |
| 138 |
better protect the curcuit from overloading without |
| 139 |
significant loss of range. The trick is to add a |
| 140 |
100nF - 220nF capacitor in parallel to the current |
| 141 |
limiting resistor which he suggests can be then as |
| 142 |
high as 50 Ohm: |
| 143 |
</P> |
| 144 |
<PRE> |
| 145 |
+5V |
| 146 |
| |
| 147 |
_|_ --> |
| 148 |
\ / --> IR LED |
| 149 |
--- --> |
| 150 |
BD237 | |
| 151 |
|---' |
| 152 |
--| |
| 153 |
|->-o------------, |
| 154 |
| | |
| 155 |
| |50Ohm ----- 100nF-220nF |
| 156 |
|_| ----- |
| 157 |
| | |
| 158 |
o------------' |
| 159 |
| |
| 160 |
----- Earth |
| 161 |
--- |
| 162 |
- |
| 163 |
</PRE> |
| 164 |
<P> |
| 165 |
Another suggestion for a <a href="http://iguanaworks.net/ir/"> |
| 166 |
high-power LIRC transmitter/receiver</a> comes from |
| 167 |
Brian Shucker. This design integrates both receiver |
| 168 |
and transmitter in one circuit using one power supply |
| 169 |
just ready to use. |
| 170 |
</P> |
| 171 |
</TD> |
| 172 |
<TD WIDTH="15%"> |
| 173 |
  |
| 174 |
</TD> |
| 175 |
</TR> |
| 176 |
</TABLE> |
| 177 |
|
| 178 |
<!-- Text --> |
| 179 |
<BR> <BR> |
| 180 |
<CENTER>[<A HREF="index.html">LIRC Homepage</A>]</CENTER> |
| 181 |
<BR> <BR> |
| 182 |
</TD> |
| 183 |
</TR> |
| 184 |
<TR> |
| 185 |
<TD CLASS="menu" WIDTH="100%"> |
| 186 |
 <BR> |
| 187 |
</TD> |
| 188 |
</TR> |
| 189 |
</TABLE> |
| 190 |
</BODY> |
| 191 |
</HTML> |