I am attempting to use my Arduino and an IR Sensor (TSOP38238) to read the signal being sent from a remote control and then to print a response on the serial monitor. My breadboard is set up correctly, and I can receive the signal from the remote control for button1signal I get a 58 line response (see below). I then take that code and place it into a library file called ircodes.h so that it reads:
int b1signal[] = {
// ON, OFF (in 10's of microseconds)
18148, 8660,
4320, 600,
540, 600,
520, 600,
520, 600,
520, 600,
540, 580,
540, 580,
540, 580,
560, 580,
540, 600,
520, 600,
520, 600,
520, 600,
540, 580,
540, 580,
540, 580,
560, 580,
540, 600,
520, 600,
540, 580,
520, 600,
540, 580,
540, 580,
540, 580,
560, 580,
540, 600,
1580, 580,
1600, 580,
1600, 600,
520, 600,
520, 580,
540, 600,
560, 580,
540, 580,
1580, 600,
540, 580,
540, 580,
540, 580,
1600, 580,
540, 580,
560, 600,
1580, 600,
1580, 580,
1600, 580,
540, 580,
1600, 580,
1600, 580,
540, 580,
1620, 600,
1580, 580,
540, 580,
1600, 580,
1600, 580,
540, 580,
540, 580,
540, 600,
520, 580};
However, when I try and run the ircommander sketch GitHub - adafruit/IR-Commander: Arduino sketch that can take 'commands' from an IR remote, it never yields a comparison match. I even upped the fuzziness to 80. I've read through several tutorials, but am just not getting it. Any thoughts?
Reading IR Commands | IR Sensor | Adafruit Learning System