eblc1388
Active Member
I wanted to use IR for controlling purposes so I need to write some decoding routines.
I searched for projects on the web that allow me to actually look at the IR waveforms timings. I built several but the results are disappointing. Some how the designer expects everyone to know exactly what to do next and how to capture a real IR signature when one has the hardware built.
I nearly gave up but then I found the following project by Steve Childress to be very helpful. It was hidden in the project section of the AVRFreaks.net and dated back to year 2006.
The project name is "Two-way Infra-red Processor (TWIRP)" and you'll need to be a member to download it but anyone can register.
This implementation sits between the IR detector and PC host serial port. Not only does it logs and shows the timing between each logic level changes it also draw up a nice graph on the PC showing the waveform shapes. This helps to identify the remote codes variety easily.
I have made minor cosmetic changes to the result display and the following animated GIF shows the operation of the setup, recording a capture from a NEC remote control that I have.
Besides showing you the timing data, it also decode it into several bytes. It has other added features like assigning user defined key records to received IR signals so one can later play them back as if they are coming from the original IR remote control. I have not tried them out yet.
Unfortunately, the author did not include a schematic in the project file so it might create difficulties for someone else who wants to build it. I therefore provide my own schematic I "deduced" from the C source code definition of AVR pins. The original design uses a AT90S2313 but I drew it as a Tiny2313 instead because the AT90S2313 is now hard to find.
The original design uses 10.000MHz crystal which I don't have so I changed it into using 10.240MHz instead. I have also changed the communication baudrate from 19200bps into 56700bps. This would require changing both the AVR firmware and the associate Visual Basic Code so one would be better off starting the project with the original code provided by the author before making any changes.
You would need the CodeVision AVR compiler too but an evaluation version can be downloaded from the manufacturer's site which does have a 2K code size limit. Perfect for use on Tiny2313 which has only 2K program memory.
Sorry the project source code and additional information remains the intellectual property of the AvrFreaks.net and Mr. Steve Childress so I would not be distribute them here.
If you have any questions, you can direct them to Stevech in the Avrfreaks.net forum.
I searched for projects on the web that allow me to actually look at the IR waveforms timings. I built several but the results are disappointing. Some how the designer expects everyone to know exactly what to do next and how to capture a real IR signature when one has the hardware built.
I nearly gave up but then I found the following project by Steve Childress to be very helpful. It was hidden in the project section of the AVRFreaks.net and dated back to year 2006.
The project name is "Two-way Infra-red Processor (TWIRP)" and you'll need to be a member to download it but anyone can register.
This implementation sits between the IR detector and PC host serial port. Not only does it logs and shows the timing between each logic level changes it also draw up a nice graph on the PC showing the waveform shapes. This helps to identify the remote codes variety easily.
I have made minor cosmetic changes to the result display and the following animated GIF shows the operation of the setup, recording a capture from a NEC remote control that I have.
Besides showing you the timing data, it also decode it into several bytes. It has other added features like assigning user defined key records to received IR signals so one can later play them back as if they are coming from the original IR remote control. I have not tried them out yet.
Unfortunately, the author did not include a schematic in the project file so it might create difficulties for someone else who wants to build it. I therefore provide my own schematic I "deduced" from the C source code definition of AVR pins. The original design uses a AT90S2313 but I drew it as a Tiny2313 instead because the AT90S2313 is now hard to find.
The original design uses 10.000MHz crystal which I don't have so I changed it into using 10.240MHz instead. I have also changed the communication baudrate from 19200bps into 56700bps. This would require changing both the AVR firmware and the associate Visual Basic Code so one would be better off starting the project with the original code provided by the author before making any changes.
You would need the CodeVision AVR compiler too but an evaluation version can be downloaded from the manufacturer's site which does have a 2K code size limit. Perfect for use on Tiny2313 which has only 2K program memory.
Sorry the project source code and additional information remains the intellectual property of the AvrFreaks.net and Mr. Steve Childress so I would not be distribute them here.
If you have any questions, you can direct them to Stevech in the Avrfreaks.net forum.