How to program the decoded data received by an IR sensor in arduino?


I need to use the decoded data to turn on/off LEDs. I already have the command and control codes of the IR transmitter I am going to use. IR sensor is TSOP1738 and transmitter will most probably be a remote using RC5 protocol. The thing is I dont know how to program the decoded data from the sensor. This data is need for me to turn on/off LEDs. Its like if switch 1 in the transmitter is pressed LED1 should glow. If pressed again it should be off. Likewise for 3 or more LEDs.


I am using an arduino board with ATMEGA8 on it.



frollard6 years ago
http://www.arduino.cc/playground/Code/InfraredReceivers
dinu.ds007 (author)  frollard6 years ago
Actually I dont think wat i meant :(
do u hav an alternative
it's bot a finished product, it's a building block. You use that module to receive information from the remote -- then you add that to a sketch that controls leds based on the programming you provide.

PS -- If you can't get your head around writing full sentences, programming probably isn't for you :)