Remote Control Program for ATMEGA168P circuit

atmegaledremote control

Hello I will make maybe a fool questions. I have this diagram:

Diagram

This diagram is to turn on/off led lights, make blink via remote control.
Now the questions are:

1.-What kind of remote control I can buy or what characteristics to buy for remote for this circuit? Link maybe?
2.-If depending of the remote control, how this circuit will know what brand I´m using, in other words how can I program the remote buttons to apply for each function on each pin of the ATMEGA like you see. Is this defined in the on the code you prgoramr into the ATMEGA?

Thank you

Best Answer

Here's some popular IR codec code for AVR/Arduino: http://www.righto.com/2009/08/multi-protocol-infrared-remote-library.html https://github.com/shirriff/Arduino-IRremote

You will need to choose a remote-control, and then program the AVR to do whatever it is you want the car lights to do when you push various remote buttons.