
Choose one key on your remote controller (from tv, video or similar), memorized it following a simple procedure and with that key you will able to turn ON or OFF any electrical device you wish. So, with every short press of that key, you change the state of relay in receiver (Ir-switch).
Memorizing remote controller key is simple and you can do it following this procedure: press key on Ir-switch and led-diode will turn ON. Now you can release key on Ir-switch, and press key on your remote controller. If you do that, led-diode will blink, and your memorizing process is finished.
IR - relay control: [Link]

The dsPIC30F3010-based Ultimate IR Controller (UIRC) can control virtually any IR device through the Internet. It can recognize any IR signal in an infrared passband of 32 to 70 kHz in several protocols. Rather than using common IR receiving modules, the system uses a phototransistor and DSP techniques to process the signal digitally.
The ultimate IR controller: [Download Project] - [View Project PDF] - [via]

And here is another infrared receiver, although its name says its universal that doesn’t mean the other Infrared Receivers aren’t. The project page first presents a MCU version of the receiver based on several types of PIC’s and than the symplified version without MCU, the one i also wrote about here. The goal is the same as for the other infrared receivers, to control your computer with any remote controller you have (TV, VCR, CD or Stereo).
UIR - Universal Infrared Receiver: [Link] - [Via]

USB-IR-Boy is LIRC compatible USB bus infrared receiver hardware using Motorola MC68HC908 MCU. This project aims to be the new standard home made IR receiver with low cost for all PC hardware that has USB. In my opinion this project its not better than other infrared receivers, its just different by having USB connectivity and being based on a Motorola MCU. This project also has an extra item, the LED indicator, which blinks when signal is detected. Everything you need is provided on the site so you could give it a try if you need a infrared receiver.
USB-IR-Boy Infrared Receiver: [Link] - [Via]

Here is another useful project based on the Atmel’s AVR butterfly kit. We should define “useful” though, this circuit was designed to trigger almost all Canon SLR cameras from a distance, so first of all you should own a Canon SLR camera and than carry on with the project. The circuit is controlled by an ATmega169 and powered by a 9V battery.
Canon SLR Camera IR Remote: [Download Project] - [View Project PDF] - [Via]