exartemarte
New Member
This is not strictly a Picaxe project, nor is it finished. It does, however, include a Picaxe, and that part of it is complete, hence its mention here.
Wanting IR remote control for an AVR-based project, it occurred to me that using a small Picaxe to receive and decode the IR signal would be quicker and easier than developing routines to do it all on the AVR. I tried it using a Picaxe-28X2 Module - I have one that lives more or less permanently on an experimental breadboard. It worked, eventually, and a version was transferred to a Picaxe-08M, which was what I had to hand, for inclusion in the project. The circuit is simple, the program is very short, and both are more or less directly from the Picaxe manual. The picture below shows the Picaxe / IR receiver section outlined in blue.
In my experience things involving serial communication rarely work first time, and this was no exception, but once the communication protocols were sorted it worked satisfactorily. It is worth noting that the AVR expects a signal which idles high, hence the T---- version of the Picaxe baudrate setting is needed rather than the N---- version. This is the 08M version of the program:
main:
Although I chose an AVR controller for this project I haven't abandoned Picaxes. I have two current projects using Picaxe-28X2, both of which will, I hope, appear here in the fullness of time. The current state of this project is described at length on my website, here.
Wanting IR remote control for an AVR-based project, it occurred to me that using a small Picaxe to receive and decode the IR signal would be quicker and easier than developing routines to do it all on the AVR. I tried it using a Picaxe-28X2 Module - I have one that lives more or less permanently on an experimental breadboard. It worked, eventually, and a version was transferred to a Picaxe-08M, which was what I had to hand, for inclusion in the project. The circuit is simple, the program is very short, and both are more or less directly from the Picaxe manual. The picture below shows the Picaxe / IR receiver section outlined in blue.
In my experience things involving serial communication rarely work first time, and this was no exception, but once the communication protocols were sorted it worked satisfactorily. It is worth noting that the AVR expects a signal which idles high, hence the T---- version of the Picaxe baudrate setting is needed rather than the N---- version. This is the 08M version of the program:
main:
infrain2
serout 1, T2400_4, (infra)
goto main
serout 1, T2400_4, (infra)
goto main
Although I chose an AVR controller for this project I haven't abandoned Picaxes. I have two current projects using Picaxe-28X2, both of which will, I hope, appear here in the fullness of time. The current state of this project is described at length on my website, here.