Blogger

Delete comment from: Ken Shirriff's blog

AleXX® said...

@ Lauszus:
Thank you for your great help in so little time :)
I've made some tests and I found out the only change needed to make the stuff work is to change the line 140 of the file IRremoteInt.h (https://github.com/TKJElectronics/Arduino-IRremote/blob/master/IRremoteInt.h#L140)

from: #define TOLERANCE 20
into: #define TOLERANCE 35

I run some tests and I found that setting the Tolerance to 34 is enough almost every time, but with 35 it seems 100% ok

I also tried to collect some data from the IR and "manually" find a good set of values for the lines

#define PANASONIC_HDR_MARK 3502
#define PANASONIC_HDR_SPACE 1750
#define PANASONIC_BIT_MARK 502
#define PANASONIC_ONE_SPACE 1244
#define PANASONIC_ZERO_SPACE 400

but I get no luck there... I tried to find the average values but I had no success in identifying the IR Brand/Address/Value until I raised the tolerance...

Thank you again!
Bye!!

p.s. Just to let you know...
I am building a system able to detect my 2yrs old little daughter while she watches TV tooo close to it and then pull out a blank screen (AV Input...) until she gets far enough (TV button to restore the previous state...)

Thank you again!
Bye!!
Alessandro - Italy

May 4, 2012, 9:17:28 PM


Posted to A Multi-Protocol Infrared Remote Library for the Arduino

Google apps
Main menu