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.


168 Responses

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

  1. sangwan says

    can i use tsop1556 here

  2. Trimbitas Sorin says

    As long as you have a remote for it, yes.
    Here is the description of the TSOP 1556 :
    http://www.ortodoxism.ro/datasheets/vishay/82029.pdf

  3. sangwan says

    and please tell me about pinout of tsop1556

  4. Trimbitas Sorin says

    You can see it in the link I gave you above.
    Hope this helps
    Best wishes
    Sorin

  5. dolfin says

    My PC do not have Serial port and most of the new PCs don’t. Do you guys think this will work on a LPT or Parallel port?

  6. Trimbitas Sorin says

    According to the WinLirc page (http://winlirc.sourceforge.net/) : “Note that the parallel port hardware, …, are not yet supported by WinLIRC”, but, if you use Linux you are lucky : http://lirc.org/parallel.html

  7. Tyler Yeomans says

    I have an IR led receiver, can I use that or do I have to use your little IC? (The TSOP)????
    tyeo098 at yahoo dot com

  8. Trimbitas Sorin says

    You need to use the TSOP as it is a specialized IC for this job.
    Hope this helps
    Sorin

  9. pasan says

    Hey i downloaded GIRDER ( free trial ). But its not detecting when i press my remote button. Does this need any plugins.

  10. josi says

    Hi,
    I was working excellent with Girder 3.3 + igor’s plugin during years with one JVC remote and a gml file I donwloaded from the internet.
    Now the remote is not working anymore and I tried to “learn event” with every remote I have in my house and the same happens: the code is changing every time I press a button.

    I can’t get it works like in the past and I am desperate for use it again.

    I tried with the anti repeat wait time (200, 500 1000 ms) and nothing.

    Even I tried to build manually my gml file but it was imposible to understand the way (is there any tutorial?)

    Please, help!

    thanks in advance
    josi

  11. Paolo says

    Wondering if you could respond to post #42:

    Raed says:
    January 23rd, 2007 at 8:42 am
    hi..
    why u have used the DCD and RTS pins and NOT the RXD pin which is involved for receiving data..??
    and how DCD and RTS funtion in the above circuit.?
    thanks

  12. Kamil says

    Hi

    I just want to know is there any possibilities to find out frequency of my remote control (SONY RMT-814). I build a infra red receiver from your site but it didn’t work with my remote controler. I think it’s because my remote control is using differnt frequency(my ir receiver use 38kHz freq).

    Bye
    Kamil

  13. Sorin Toma says

    Hi,

    I saw with interest this circuit. I am interested in reading the IR codes in HEX so I can paste it in other RC applications.
    Is this possible using winlirc?
    Cheers
    Sorin

  14. saul says

    hi, i have a question, how long of the 3 lines wire can i use?

    i talking about 50ft
    will it still work?

    thenk u.

  15. Trimbitas Sorin says

    Hi

    Sorin Toma .. I think it is possible, just take a look on WinLirc/Lirc support forum and I’m sure you’ll get it working.

    Saul … I don’t know exactly but my longest cable was about 5 meters long (about 16ft)

    Hope this helps

    Sorin

  16. saul says

    What can i do in order to make it work for about 15 meters?

    can i change the C1 maybe for a more powerfull one?, so the system won’t lose power?

    and where is it better to put the commponents (C1, R1, D1, IC2) at the beggining? (next to the computer) or at the end, with the IR Reciver? (in order to give the system more chance to work for that long disstance cable)

    thanx.

  17. goodkiller says

    Hi, i don’t get it work :(
    Maby is problem -5V volts in computer hardware, cause it shows 3,5 only not 5v, is this problem?

  18. vladART says

    just stop plaing with toys … do something real stuff …. like usb receiver

  19. fisher says

    Hi, can I simply get an old mouse IR detector and build the circuit?? Will it work?? Anyone had already tryed it??
    Thanks!!

  20. arjun says

    hey gr8 circuit dude i made it nd its workin but my laptop doesnt have a serial port and hence i want to d the same with usb port since i m an ametuer in electronics so cant make the circuit mentioned by u above(in one of your posts) so can i use a usb to infrared port for the same
    plez help

  21. sandeep says

    i have tried the “Learn how to control everyone’s favourite XMMS with a TV remote ” pdf document in the “howtos” page of ww.lirc.org but i have not been successful…

    i connected the circuit and soldered it…….but my device doesn’t respond when i press buttons on my remote…..is there any specific range of choosing remotes…….and i connect the circuit to the serial port…..i am confused with configuring the device using ./configure……..i donot know the port nuber to which i should connect this device…….i think this device sits only in one port…..i want to know the port number of the device….

    i use fedora core 3…..so as told in the manual i did not recompile the kernel as i found the files specified in the location….

    i do not understand the problem……please help me…..

    thanks

    sandeep

    chadasandu@gmail.com

  22. sandeep says

    does using a 7805 voltage regulator effect the circuit

  23. Trimbitas Sorin says

    Hi Fisher … no, you can’t just use those photo detectors, you need a specialized IR detector running on the frequency of your remote control.

    Hi Arjun … you can buy a small USB to serial converter or make an USB receiver (please look at the post number 6 from this page)

    Hi sandeep … 7805 is fine (the only differences are the package size and that it is rated at 100mA, if I’m not wrong), I used it also when I didn’t find to buy 78L05. As for your other post .. sorry, my Linux knowledge is very limited.

    Best wishes

    Sorin

  24. Wolf says

    You may want to clarify in your post that R1 = 4.7KOhm (not just K). When I saw just the K I was confused for a little while!

  25. digital says

    Instead of making the above circuit con you give me the simple TSOP1738 receiver circuit and an IR transmitter circuit….plz reply me on

  26. Trimbitas Sorin says

    For IR transmitter circuits you can take a look at http://www.lirc.org/transmitters.html , they are really simple to build :)
    As for the receiver, this is the simplest safe schematic you’ll find.
    Regards
    Sorin

  27. saurabh says

    hi
    I have created Ir reciver successfully Now i want to make its contolling software of my own any help ?

  28. Trimbitas Sorin says

    I also tried doing that in Visual Basic 6 some time ago. I used WinLirc as a server (just as the WinAmp plugin does).
    Anyway, if you want to build an application from 0 you can take a look at WinLirc as it is open source.
    Please keep us updated on your progress.
    Sorin

  29. saurabh says

    first of all thanks for ur reply i m trying to make software in Vc++ and have gone through WinLirc infact using it for testing but i am not able to understand a single code in WinLirc files any help plz.

    Can u tell from where i can understan there codings any site link etc .

  30. FraN says

    Nice device!
    For the sake of information sharing, I used the IR-receiver from Everlight, IRM-8601S, and it works just fine!
    A question:
    It’s too complex to append a LED, to the circuit, that lits when a signal is recieved and then un-lits? (Excuse my english)

  31. Ali says

    what is the type of wires you used ? and you only connected to DCD GND RTS pins and left all other pins without any wiring?

  32. Trimbitas Sorin says

    For adding a LED .. hmm, I’ll give it a try in the weekend and post here the schematics but .. it will mostly sure need an external battery (3V cell) just to be secure.

    Ali .. yes, only those 3 pins are needed for WinLirc.

    Regards

    Sorin

  33. Ali says

    thank u for ur fast reply , do i have to use cd rom audio cable to connect or what kind can be used?

  34. Trimbitas Sorin says

    You’re welcome :)
    You can use any type of cable, i found at our shop cable on 3 wires which is perfect :) , but you can also use normal telephone cable which has 4 wires (just let one unconnected).

  35. Ali says

    thanx again and wish u good luck in ur futural projects and keep amazing us with beautiful things

  36. FraN says

    Trimbitas, I found this in the mailing-list of LIRC (from Bill Paxton):

    ——————————————-
    Disclaimer:
    Please remember this is a serial port. Like always if
    you fry something – whoops. Your bad. Besides this
    could be a trick and I want you to destroy your serial
    port. Beware.

    Parts:
    1 – low current (~2mA) LED of your choice
    1 – 3.3k+ resistor of your choice

    Directions:
    Wire LED+ to the resistor. Wire other side of resistor
    to detector input pin. Wire LED- to detector output
    pin. Done.

    Notes:
    This is really not that bright, and I mean
    intelligence not millicandelas.

    It /must be/ a low current LED. We shouldn’t use more
    than 1mA. Already there is a Vreg(~3mA) and a detector
    (~3mA) plus if you use the 4.7k pullup resistor,
    another ~1mA. Measuring one on the table right now
    using an L78L05, PNA4602, and a 4k7 pullup it’s taking
    6.2mA from RTS.

    3.3k ohm would allow 1mA if it were constant and the
    LED was 1.7Vfd so it’s less really. If you don’t need
    the brightness by all means increase the resistor.
    PLEASE do NOT take advantage of the fact that it is
    pulsed and lower the resistor. You probably can, some.
    But for the record “don’t do it.” (if you make it too
    low or omit it, your detector will stop working
    because it’s ‘stealing’ all the output)
    ——————————————-

    If this works it seems that the kind of solution I have looking for :)

    What do you think?

    (I’m gonna try it when I have the time)

  37. ashok says

    its very nice .
    please send me the full project

  38. akaSLEEP says

    Hey, I must write a program in C# where I must write and read data from the serial port, but the communication must be wireless. Do you have a sender that will work with your receiver circuit?

  39. aka[SLEEP] says

    thanks

  40. Ol Schoola says

    Trimbitas,

    May I have permission to use the schematic at the MythTV wiki? I’m working on IR docs and how-tos there and could use a sharp graphic like that. I’ve already linked in your, IMO, superior writeup on the matter.

    TIA

  41. Trimbitas Sorin says

    Ol Schoola … yes, you have my permission to use it.

    As for adding a LED … a little later today or tomorrow morning I’ll put working schematics (just to have some time between unpacking my stuff).

  42. papai says

    i want to do it using usb port,
    would you like to help me ?

  43. Trimbitas Sorin says

    I just added the status LED schematics (it works 100%, tested it).

    Papai … there is an USB version on http://www.cesko.host.sk/IgorPlugUSB/IgorPlug-USB%20(AVR)_eng.htm

    Regards

    Sorin

  44. papai says

    hi,
    i try to do tre ir reciver, but till i can not able to make it .plzzzzzzzz ,someone help me
    plzzzzzzzzzzzzzzzzzzz.

  45. Ashish says

    Hi ,

    Could not find the circuit for adding the status LED ?

  46. Trimbitas Sorin says

    papai .. what exactly aren’t you able to do?

    Ashish .. it is at the end of the post ( just above all comments )

  47. papai says

    Hi,
    my ir receiver is working & signal is detect by winlirc.
    But problem is that I do not have the idea how to write script For control the volume, mouse movement power off, Enter, previous, next, open jet audio etc.
    Please someone sent me those scripts.

    My add : repapai143 ( at ) rediffmail.com and leglegi ( at ) gmail.com

  48. jk1joel says

    For those looking to do a USB version, this SourceForge project is very nice, and even has an optional LED in their setup.

    http://usbirboy.sourceforge.net/

    I ordered parts to build 25 of them for me and various friends and family and it came out to about $4 each. It’s more than this sereal device, but not too expensive. To build just one would be a bit more though.

  49. papai says

    SOME ONE PLZ. HELP ME ABOUT SCRIPT FOR MOUSE CONTRAL

  50. roki says

    hi
    my serial port does not work
    thats-why i need a tecnique
    by which it can works with
    usb

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 [...]



Some HTML is OK

or, reply to this post via trackback.


Get Adobe Flash playerPlugin by wpburn.com wordpress themes