loading

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.

<p>Hi</p><p>what about that script you promised? :)</p>
<p>Thanks, You are right arduino nano can't acts easily like a keyboard.</p><p>It's why I have a python daemon who use Xdotools package and xbindkeys.</p><p><a href="http://manpages.ubuntu.com/manpages/lucid/man1/xdotool.1.html" rel="nofollow">http://manpages.ubuntu.com/manpages/lucid/man1/xdo...</a></p><p><br></p><p><br></p><p></p>
<p>Nicely done. I do not think that the arduino nano acts like a keyboard, but the micro (or any based on the 328u microcontroller) can act as a keyboard.</p>
<p>Nicely done. Thanks for sharing this!</p>

About This Instructable

2,466views

20favorites

License:

More by Blackir:DIY almost free monster BBQ from electric water heater Powerfull manageable 15k RPM HDD grinder with continue rotation 3D print titanium wedding band 
Add instructable to: