Page 1 of 1

Tip for reading IR

Posted: Fri Apr 01, 2016 8:47 pm
by javiercuellar
Hi.

I had a problem with one AC.
I was able to receive with IrRemote.h, but when transmitting, didn't do the job (only for that particular AC, all other brands work properly).
I test http://www.analysir.com/blog/2014/12/08 ... -revealed/ and now the reading look much better, but now I was receiving different lenght (sometimes 199 values, other, 205, 210, 220....), so basically was not able to know which was the correct code.

I realize that, putting the remote more than 50cm away from the receiver, the codes know had the same length!!! Now, I have a working project, with a simple solution.

bye

Re: Tip for reading IR

Posted: Mon Apr 04, 2016 10:11 am
by AnalysIR
I think you may be referring to https://www.analysir.com/blog/2014/03/1 ... s-arduino/

Please note that timings from standard IR receivers will always vary and may be up to 200 uSecs off. In addition, libraries like IRremote will round the timings off to at least +/- 50 uSecs.

The sketch linked above will generally provide much better timing accuracy on a standard Arduino.

I am interested to find out the model number of your AC unit - as the timings seem unusual! If you could post some sample signal - that would be great.

Finally, AnalysIR has a feature which can automatically correct the timing errors introduced by the IR receiver and libraries like IRremote or IRLib.
see https://www.analysir.com/blog/get-analysir/