Skip to content


Make an Infrared Remote Control for PC

A friend of mine came yesterday to me asking if I can do something for him to control WinAmp via a Remote Control. After some searching I found a very simple to build IR receiver using the serial port on LIRC official page so I started to gather the components from our local electronics shop. It costed me around 1.5$ so it was also cheap enough :D .
The schematic is

ir_receiver.GIF

and the components are as follows :

  • IC1 = 78L05, 5V regulator
  • IC2 = TSOP1738 , IR receiver
  • D1 = 1N4148
  • C1 = 4.7uF
  • R1 = 4.7K
  • one male or female (depends on your configuration/cables) serial (DB9,RS232) connector

I choosed to put all components on air and in the serial connector’s box (photos below).
The pinouts of the 9-pins connector are :

  • 1 = DCD (Carrier Detect)
  • 2 = RXD (Receive Data)
  • 3 = TXD (Transmit Data)
  • 4 = DTR (Data Terminal Ready)
  • 5 = GND (Ground)
  • 6 = DSR (Data Set Ready)
  • 7 = RTS (Request To Send)
  • 8 = CTS (Clear To Send)
  • 9 = RI (Ring Indicator)

TSOP1738 pinouts

IM000144.JPG
the starting materials

IM000148.JPG
during construction

IM000158.JPG
inside the box

IM000159.JPG
the final product

IM000387.JPG
the remote controls I use

For the software part you can use :

(Edited) As a remote control you can use almost all universal remote controls (you must know its working code for the TSOP1738, for the one from the attached picture the code is 081) and most of the domestic (videorecorder, tv …) remote controls. To see if one is working open WinLirc, press Reconfigure and then Raw Codes. If when you press a button on your remote control you see lots of numbers there then it means it is working.

(Edited) To add a status LED to your receiver, just make the schematic below (I tested it last week and it went ok). The disadvantage of this is that you’ll need a battery so it can run ok.

IR Receiver with LED status
Just click the image to see it larger

References :

Posted in Non-MCU projects.


181 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. didou says

    can I use the TSOP 1736 and maxwell remot controle please and I need help for winlirc use
    thank you a lot

  2. Trimbitas Sorin says

    Didou .. you can use TSOP 1736 without any issues instead of 1738.
    Regards
    Sorin

  3. Donnie says

    They sell IR remotes for windows, just plug the receiver into the USB port and go, no drivers needed. Mine cost $12.99 at a local electronics store and it came with new batteries. I came here looking for information to hack one and use the parts to convert a dauphin keyboard into a remote. Guess I’ll have to take it apart and poke around…lol.

  4. macgyver says

    can i remove the diode pls help me on this???

  5. Trimbitas Sorin says

    No, the diode is for your port’s security.

  6. lokraj says

    thanks for your information…

    instead of 4.7uF i took 10uF capacitor. after pressing keys of remote nothing is coming in hyperterminal. i checked for 1200 baud rate. please any body can help me out.

  7. Trimbitas Sorin says

    You could try with higher baud rates like 112000.

  8. zoteman says

    Hi, I’m very new in electronic, but I would like to know if its possible and not too difficult to make a “digital keyboard” (yeah, the ones with lasers and IR lights), I don’t need the laser part, I only want to know how to make the sensor and adjust it to recognise where’s each “key”

  9. Stuart Miles says

    Do you know where I can buy the UK?

  10. Rupam says

    Thanks Trimbitas for such a simple and lovely idea. In about 5 hours of work I was able to detect the IR in the WinLirc raw code viewer. I used Silan SM0038 IR receiver, supposedly an equivalent of TSOP1738. In dollar terms it cost me about 65-70 cents (in India). Now I have to work on detecting the actual key stroke bit patterns. I used a Philips 7805 TV equivalent remote (about USD 2.5).

  11. Rupam says

    Addition. I meant to say that the entire receiver cost me about 65-70 cents.

  12. Bustean Ioan says

    Sorin,vreau sa-mi spui daca as putea conecta receptorul infrarosu fara diode,fara regulator s.a.m.d adica direct.Un raspuns aici sau pe mail.Multumesc!

  13. Cyril anthony says

    thankyou man works like a charm im tryin with pic microcontroler like when we press a key in the remote a shortcut key is executed if any1 have a hex file for that please upload
    thanks in advance

  14. chandu says

    please help me.. the out put of pin 7 is -12 volts(approximately) and the ic 7805(rectifier) can’t produce the desired output of 5 volts.. what should i do..

  15. sms says

    for what purpose diode has been used there?

  16. Nitish Dash says

    Hi, Sorin, I live in India. I have a IR receiver called PC3388. Actually, It came bundled up with my TV Tuner Card( Intex TV TUNER). I also have a remote for it. I wanted to know, can I use the PC3388 Instead of TSOP173 ? Will the bundled remote work for it? Please reply soon!

  17. Donovan says

    Does the serial port provide enough power to allow the receiver to work?

  18. Leo says

    Salut ! Am facut cu succes schema de mai sus, in winlirc functioneaza bine, insa nu reusesc sa-l fac sa mearga cu girder (fara instalarea pluginului “winlirc” si interconectarea pe tcp ). Oare functioneaza direct cu Igor plugin ?
    PS. Felicitari, un supertutorial !

  19. Trimbitas Sorin says

    Salut Leo,

    Nu mai am montajul din pacate si a trecut mult timp de cand ma jucam cu telecomanda si nu mai tin minte exact cum mergea Girder (eu foloseam doar WinLirc) … scuze.

    ,toate cele bune

    Sorin

  20. MrFixitGary says

    I am using Windows XP and Girder and Igor.dll and this IR receiver works great, but do I have a problem – when I don’t use the remote for a while (like watching a 2 hour movie) the com port “goes to sleep” and won’t respond to signals from the remote. The only way to bring it back online is to close and restart Girder. Have you seen this before and is there a fix (like maybe connecting pin 1 to pin 3 so that the port always stays active?

  21. josue says

    hello trimbitas, can i use a usb-db9 serial adaptor to use your circuit on regular computar with usb port only????

  22. josue says

    hello trimbitas, can i use a usb-db9 serie adapter for ths circuit??? i only have a normaly computer with usb port… thanks

  23. Roque says

    Hola que tal, queria saber si alguien a trabajado con el codificador de infrarojo cmp2120, es que no encuentro algun circuito con el cual puedo ponerlo a trabajar, a y otra peticion donde lo puedo conseguir(cmp2120) soy de México. gracias

  24. Ray says

    Hello there,
    Question: does any one know an example (code in delphi 4,5 or…) how to create a program for RC5 receivers.
    I have a Philips universal remote controller (RC5) and a usb (RC5) receiver and Windows XP Pro sees the device but… then?

  25. Osni Silva says

    I had a problem with my circuit and I got confused the same way “chandu” did (voltage was coming from GND, leaving output of Pin 7 – RTS with -12v).
    This happens because the COM port is not activated/in use. Once you configure WinLIRC to use the correct COM port and leave it open, RTS will output the correct voltage.

    My problem turned out to be my cheap unknown “Philips’ TVs IR receiver” (yeah, that’s how the vendor sold it to me), which uses Pin 1 for OUT and Pin 3 for GND.
    When assembling the circuit as shown in the schematics and activating the COM port, 78L05 was outputing very low voltage (I can’t remember now, I guess it was 2.39v) and I was receiving constant 0.78v from OUT pin of the IR receiver.
    After inverting pins 1 and 3 it’s working now ;-)

1 2 3 4

Continuing the Discussion

  1. DIY:happy » IR WinAmp Remote linked to this post on July 11, 2006

    [...] WinAmp really is the media player of choice (if you don’t have it, you should get it) and what’s better than being able to control said media player via infrared. This little infrared receiver hooks right up into your serial port and allows you to have full control over your tunes. You can hide the receiver in a plant, stuffed animal, or just attach it to the side of your CRT with a big ‘ol magnet (don’t actually do that). A freeware software package for Windows and Linux sweetens the deal, allowing you to program in your remote functions. [...]

  2. MAKE: Blog linked to this post on July 11, 2006

    HOW TO – Make an IR remote for WinAmp…

    Trimbitas made a nice IR controller for WinAmp (just need a serial port on the WinAmp’ed PC)… [via] – Link…….

  3. #hsk :: PC IR Remote Control :: February :: 2007 linked to this post on February 9, 2007

    [...] trus nyari-nyari skematik untuk IR Receiver, ketemu punyanya Trimbitas (bisa di cek disini http://stuff.nekhbet.ro/2006/07/10/make-an-infrared-remote-control-for-pc.html/trackback/). Komponen udah ngubek-ngubek bogor, nggak ada yang punya TSOP1738 IR Receiver. Kebanyakan toko [...]

  4. HSB: Some ideas for possible workshops linked to this post on February 26, 2009

    [...] Infrared: make an infrared receiver over a serial port, or connected to a [...]

  5. Mando a distancia para Media Center - BMW FAQ Club linked to this post on June 4, 2009

    [...] IR Remote Control your Computer http://stuff.nekhbet.ro/2006/07/10/m…ol-for-pc.html Editado por SPTR en Ayer a las [...]

  6. Ricevitore seriale per PC linked to this post on February 1, 2012

    [...] addthis_product = 'wpp-260'; var addthis_config = {"data_track_clickback":true,"ui_language":"it"};Link Pubblicato in Linux Media [...]



Some HTML is OK

or, reply to this post via trackback.


Get Adobe Flash playerPlugin by wpburn.com wordpress themes