Receive IR value with Arduino

You need Download¬†Arduino-IRremote-master from git hub, move to library folder under arduino. Also make sure you are using Arduino 1.0.5, latest beta 2.x not working with this IR library. I am using infrared receiver module manufactured by keyes, come together with an IR mp3 remote control and a nomral LED, purchase from dx.com at usd4. At the time of writing, dx.com have a new product pack where it comes with a slightly different mp3 remote controller, same infrared receiver module and an extra infrared emitter module (for sending). The price is only usd5.8. Validate IR remote control is working Human can’t see IR light with naked eye. How can we validate the remote control is actually functioning? Fortunately, you can check infra-red with a smart phone camera. Latest iphone have IR filter so it will fail, but I tested on samsung galaxy s3 and works. 20131208_001119 20131208_001241 The IR receiver According to dx.com spec,¬†the receiver sensor adopt HX1838, high sensitivity; Working voltage: 5V; Testing distance: 5~8m; Construct the circuit The circuit is very simple. sketch.modified 20131208_133548 Once you have IRremote library installed, your will beable to get the example thru arduino ide interface. Open File->Examples->IRremote->IRRecvDemo I enhanced it by adding a function decodeSignal to transform IR value into meaningful value like button 1, 2, 3, power, mute…