Introduction: IR Remote Control for Your Computer With Arduino

With this receiver, control your computer remotely thanks to the IR module and the Arduino.
Lazzy mode activated ^^

Step 1:

First I must disassemble myold Sony VAIO IR receiver.
An IR receiver that comes from my father, completely unusable because providing with proprietary drivers for Windows XP only. My goal is to be able to run on any machine.

Not very difficult to remove one screw ^^

Step 2: and Here Arduino ...

The circuit is very simple:

- One arduino nano V3
- one TSOP IR receiver 22,

- one resistor

- and one capacitor.

The whole climb a protoboard directly welded to the connector on the Arduino.

A schematic of the assembly very soon.

Step 3: Reassembly

The Arduino Nano to the perfect dimensions to enter into the case.
A small planing the back for the USB port and all are well. To be sure that nothing moves a little hot glue makes the work very well.

A screw further and it's all over for the hardware.

Step 4: The Program

Upload the following sketch to the Arduino.

Open the Serial Monitor window in the Arduino Window to see the hexadecimal codes (the manner in which the IR Receiver receives the Infrared Rays).

#include <IRremote.h>
int RECV_PIN = 2; IRrecv irrecv(RECV_PIN); decode_results results;
void setup() {
    Serial.begin(9600);
    irrecv.enableIRIn();
}
void loop() {
    if (irrecv.decode(&results)){ 
        Serial.println(results.value, HEX);
        irrecv.resume(); 
    }
}

Step 5: It's Almost Done

And now according to your OS, it sets up a little script in daemon to retrieve the IR code and interact with the computer.
I made a little script in python history it can work under Windows and Unix.

I makes it available very quickly ^^

Step 6: Improvement

With Arduino Leonardo, Yum or it is possible to merge the Python script directly into the Arduino into believing that the Arduino is a Standard keyboard.

Thanks, have a nice lazzy day.

For French, you can find this article on MIWC