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 ;)