hippy
Ex-Staff (retired)
Attached is some code for the 18M2 which allows it to be used as an IR scope to see signals received from an IR remote and deliver some analysis of the IR stream.
It looks for the start of the IR stream then samples as fast as possible into a buffer, analyses what has been received later. To be useful it needs to run fast and have a large buffer to store the samples. The 18M2 program uses most of its 512 bytes of variable RAM as a buffer.
This technique should work on other PICAXE chips but not well on those with less RAM or a small scratchpad which cannot store all the data of a full IR transmission.
All reported times are guesstimated rather than measured so do not put too much faith in those. Those calculations will need to be adjusted for other PICAXE and what the code reports for number of bits received etc will depend on PICAXE.
This was part of an ongoing project to see if the sample then analyse technique can be used to detect and use non-Sony codes, part of a project to be able to independently control two identical Sky digiboxes in the same room. The answer seems to be yes and I will post more on that as the project progresses.
It looks for the start of the IR stream then samples as fast as possible into a buffer, analyses what has been received later. To be useful it needs to run fast and have a large buffer to store the samples. The 18M2 program uses most of its 512 bytes of variable RAM as a buffer.
This technique should work on other PICAXE chips but not well on those with less RAM or a small scratchpad which cannot store all the data of a full IR transmission.
All reported times are guesstimated rather than measured so do not put too much faith in those. Those calculations will need to be adjusted for other PICAXE and what the code reports for number of bits received etc will depend on PICAXE.
This was part of an ongoing project to see if the sample then analyse technique can be used to detect and use non-Sony codes, part of a project to be able to independently control two identical Sky digiboxes in the same room. The answer seems to be yes and I will post more on that as the project progresses.