Step 1: Collect stuff
- Arduino (I use UNO)
- Solderless breadboard
- An infrared receiver
- Solderless wires
- Any kind of remote control
Step 2: Assemble the receiver
Connect the right pin to the 5V of the Arduino, the center pin to GND, and the left pin to digital pin 11.
Step 3: The code
You can download it here: IRremote
Close the Arduino IDE and unzip it into the arduino/libraries folder.
Start Arduino IDE and open the IRrecvDemo example sketch. Rewrite "HEX" to "DEC" as the image shows.
Upload the sketch to your board.
Step 4: Identify remote buttons
Remember which button was pressed and take notes of the codes appearing.
Code 50088119 appeared and you pressed the On/Off button.
Code 50073839, Open/Close button etc...
Step 5: Control stuff
Here is the code you have to use. It's not the best solution I think but it's simple.
// do something
// do something else...
Have fun ;)