Thursday, June 23, 2011

A universal infrared receiver for PC (DB9)



I describe here a simple and inexpensive way to remotely control your PC, intended for those who want to tinker a little but not much. Note that there are ready-made solutions to remote PC.

I am using this set of infrared receiver to connect to the serial port used by the project LIRC (Linux Infrared Remote Control).
One of the advantages of this arrangement is that it works with almost any remote control.
It is used to control various applications (Linux and MS Windows), whose excellent free media player BSPlayer using WinLIRC .

If you have what it takes to weld, there is already a lot of documentation on the web, comprehensive details the construction of a receiver built into the hood of the serial. This method does not seem very relevant, the serial port of my PC being located against a wall, it is not the place to put a receiver.
In addition, the simplicity of installation makes it possible to achieve seamless, I explain here how to do it with strips of connections.

Components:


IR1: Infrared detector module, type Sony SBX 1620-52



Frequency detection: 37.9 KHz ± 3.5 KHz
Power: 5V ± 0.3 V
Consumption:
2mA @ 5V
Distance: 10m straight line
Opening angle: 40 ° horizontal, 25 ° vertical
Output impedance: 27kΩ, TTL level
Temperature range: -10 ° C / 60 ° C


RT1: r EGULATION voltage 5V, type 78L05
 
C1: 4.7 uF capacitor (at least 10V)
The small leg of a capacitor or an LED is always the anode (+), the greater the cathode (-).
 

D1: rectifier diode, type 1N4148
The cathode (-) is indicated by a dark ring.
 

R1: Resistance 4.7 kOhms
(Yellow, purple, red and silver or gold), no polarity.
 

a cable with a DB9 connector (D-Sub 9 pin) female, type RS-232  
A serial modem cable or extension cord series is ideal, but not a Null-modem cable because it is missing some connections.  
a terminal strip (or "domino")
 

And also:
a suitable screwdriver and a few inches of insulated wire thin enough.

Assembly diagram:

 

Bend the tabs of the components with infinite caution ...
Check the polarity of the three components.
Do not hesitate to isolate the legs with plastic sleeves to prevent short circuits.


Once all the components together, all amounts in 5 minutes.
There is need to find a pretty box to put it all in, or attach it to the front of the PC, on a cache 3 1 / 2 "or 5" 1 / 4 hole for example.
The receiver also works well behind a transparent surface such as Plexiglas.
Note that a simple modification of the scheme allows adding an infrared LED used in reverse as a remote PC, using WLIRC.

Compatible programs:

  • WinLIRC for all Windows versions, LIRC for Linux. After learning a simple step on your remote, very lightweight program to associate a code to each key.
  • uICE can use the codes defined with WinLIRC to launch any application or open document (including playlists, for example) under Windows.
  • BSPlayer (for Windows), video player free subtitle manager, described by some as "Winamp's MP4." All functions can be controlled by the codes defined with WinLIRC.
  • Girder , well documented, is used to control many applications (including Winamp and myHTPC) using a programmable filter system.

No comments:

Post a Comment

Thematic Links :