Universal Infrared Receiver

General Hardware Software

General

    The universal infrared receiver is a clone of the commercial available IR-Man. It is a small device that allows you to control your PC with the remote from your TV, VCR, CD or Stereo. I specially use it to control Winamp from anywhere in my room. The winamp-plugin Ties Bos wrote allows you to define exactly which keys on your remote you want to use for Winamp.

The hardware has been tested with over 40 different brands of remotes. They all work.

If you can't make one yourself or can't program a microcontroller yourself, buy the commercial version here.


Hardware

You need some microcontroller knowledge and soldering experience to build one yourself.

Scanned PCB
     As you can see my PCB is single layer and can be very simple.
     The bottom black component is a SFH506-36, an infra red receiver and demodulator  from siemems. Interface connects to serial port. If yours  is   located in the back of the machine you may try to use the remote by reflection of a white wall. Of course a simple straight-through serial cable allows you to put the device anywhere you want.

 

Schematic
    These schematic was drawn by Peter Lieven. All RS232 pins are labelled as seen from the PC side. In these schematic a 2 pin crystal is used instead of a resonator. With a three-legged resonator you don't need the two 15pF capacitors. It's up to you to choose use crystal or resonator.

 

ir_16f84_interface.gif (7459 bytes)
    These schematic was drawn by me. It is just an adaptation from the above to use a 16F84 instead of a 12C509. I'm currently using this one as I couldn't found in time the 12c509 on local stores.

    The device connects to one of your serial ports. It doesn't need any external power as it uses some of the unneeded serial port wires. The interface protocol is described on the interface page.


Some notes on the schematics:

    On original PCB a 4u7 capacitor was used between pin 1 and 8 of IC1. This somewhat balances the load on RTS and DTR which are used to power the whole thing. It should not be made too big though as it increases the time needed between powering down and up (i.e. quickly closing and restarting winamp will not work then).
    The external resonator is not always needed. If you're only going to use the thing at room temperature, the internal RC oscillator will run fine (please note: The 16C84 does NOT have an internal oscillator).
    As one can see from the schematics the RS232 transmission line toggles between 0V and +5V. This somewhat limits the maximal length of the cable you can use. It should work fine with about 2 meters of unshielded wires.
    For the two diodes from RTS and DTR you can use pretty much any you have around (probably 1N4148s).

 


Software

Object code
ir509b.hex This is the object file to program into the PIC 12C509.
You can use the 12c509 file for a 12c508 as well. The program is short enough to fit. (specs)

The watchdog and start-up timer must be set to on, MCLR set to internal and the oscillator set to XT. These fuses are set inside the hexfile as well.

ir16f84b.hex This is the object file to program into the PIC 16F84. (16C84 is no longer made)

The watchdog timer and start-up timer must be on. And the oscillator set to XT.

For PIC16F84 the pin mapping is as follows(pic12->pic16): 1->14; 2->16; 3->15; 4->9; 5->8, 7->6, 8->5
And don't forget to connect MCLR (pin 4) directly to pin 14.

Interface Protocol Here is described the protocol used to communicate with the interface.

 

Winamp Plugin
gen_ir.dll This is the plugin 2.2 for Winamp.
Extract to winamp/plugins.

Source in C++

 

Some programs supporting Irman
Winamp plugin Winamp homepage The most versatile mp3 player around
Remote Selector info Remote Selector homepage Great add-on for DVD players
PC Remote info PC Remote homepage Remote control all applications and functions of your PC
Wplay plugin Wplay homepage A fast and good looking mp3 player
CD Copy info CD Copy homepage A feature packed audiograbber which makes mp3's from audiocd's
Download Libirman homepage A programming library to use Irman with Unix
Linux info Lirc homepage Another Irman implementation for Linux
Download Slow Speed CD Transcriber homepage Control the speed of your audiocd's in real-time

 


Copyright :
This page was based on Ties Bos page.
Title, ownership rights, and intellectual property rights of the software and hardware presented on these pages shall remain in hands of Martinus Bos.
These pages and all presented hardware and software are protected by international copyright laws. Use, copying or distribution by any means for commercial activities is strictly prohibited.

Limitation of Liability :
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, TORT, CONTRACT, OR OTHERWISE,SHALL MARTINUS BOS BE LIABLE TO YOU OR ANY OTHER PERSON FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER DAMAGES OR LOSSES. IN ADDITION, MARTINUS BOS WILL NOT BE HELD RESPONSIBLE FOR ANY DEATH OR PERSONAL INJURY THAT MAY RESULT DIRECTLY OR INDIRECTLY FROM USE OF THE INFORMATION AND SOFTWARE ON THESE PAGES. THIS LIMITATION OF LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH LIMITATION.


This page was last edited at 26 Abril 1999

<plaintext>