If you work through the blog step by step you will first load the program that shows you the timing of the pulses this enables you to change the values in the ISR in the second program that that prints the values from the IR-remote this confirms its working and you can see the values. The last program is the self-storing one it starts at location one and moves up one for each code it receives so if it is activated by placing a ground on the pin and re-setting the AVR it is in stor mode waiting for you to press a button to stor its code. Now to make things simple in the programs I use location one for the button with a one on it right up to button 0 which is location 10. If you have a look at the Watering System Controller blog you can see me using it and all the parts are in their own files ready to be used in your own projects.
I had a look at the Sony timing my programs should work with no changes.
Regards Paul
↧