I've been following the tutorial for IR remote "recording" and "playback" found here: Overview | IR Sensor | Adafruit Learning System. It's a great tutorial but I think my problem is with my interpretation of my remote's output. When I read in the values from the IR emitter on the remote, the data looks like it's supposed to according to the tutorial. The problem is with sending it back out of the Arduino.
When I decode the remote's power button, I get:
Received:
OFF ON
63184 usec, 8880 usec
4340 usec, 600 usec
1620 usec, 560 usec
1620 usec, 600 usec
1600 usec, 580 usec
520 usec, 600 usec
480 usec, 600 usec
500 usec, 600 usec
500 usec, 580 usec
1620 usec, 600 usec
480 usec, 600 usec
1620 usec, 600 usec
480 usec, 600 usec
480 usec, 620 usec
500 usec, 580 usec
1600 usec, 620 usec
480 usec, 600 usec
500 usec, 580 usec
1620 usec, 600 usec
480 usec, 600 usec
520 usec, 580 usec
500 usec, 600 usec
500 usec, 600 usec
480 usec, 600 usec
1620 usec, 600 usec
480 usec, 600 usec
500 usec, 600 usec
1600 usec, 600 usec
1580 usec, 620 usec
1580 usec, 620 usec
1580 usec, 600 usec
1600 usec, 620 usec
480 usec, 600 usec
1600 usec, 580 usec
41400 usec, 8880 usec
2140 usec, 580 usec
28724 usec, 8860 usec
2140 usec, 600 usec
int IRsignal[] = {
// ON, OFF (in 10's of microseconds)
888, 434,
60, 162,
56, 162,
60, 160,
58, 52,
60, 48,
60, 50,
60, 50,
58, 162,
60, 48,
60, 162,
60, 48,
60, 48,
62, 50,
58, 160,
62, 48,
60, 50,
58, 162,
60, 48,
60, 52,
58, 50,
60, 50,
60, 48,
60, 162,
60, 48,
60, 50,
60, 160,
60, 158,
62, 158,
62, 158,
60, 160,
62, 48,
60, 160,
58, 4140,
888, 214,
58, 2872,
886, 214,
60, 0};
I've tried to put this in the format shown in the code at the bottom of the page here Making an Intervalometer | IR Sensor | Adafruit Learning System but it doesn't seem to be working (using the pulseIR() and delayMicroseconds() with the "on"/"off" values in the array).
I've verified that the IR LED is working and the code compiles/uploads. I noticed that in her code, there are repeating values in the array that can be removed but I couldn't see anything repeating in mine so I just used all of the values from my array in the pulses that go out.
I was wondering if anyone else had worked through this project and if they might be able to give some hints.
Thanks