Tip for reading IR

Everything related to protocols and IR codes
Post Reply
javiercuellar
Posts: 19
Joined: Wed Mar 30, 2016 9:15 pm

Tip for reading IR

Post 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
User avatar
AnalysIR
Site Admin
Posts: 776
Joined: Sat Aug 31, 2013 3:51 pm
Location: Dublin, Ireland
Contact:

Re: Tip for reading IR

Post 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/
Post Reply