Hello,
I have a problem with the IR library (GitHub - Arduino-IRremote/Arduino-IRremote: Infrared remote library for Arduino: send and receive infrared signals with multiple protocols)
I have one Arduino Uno connected with an IR Transmiter and one with an IR Reciever.
When I press a key on my AC remote, the reciever reccords the following data:
Encoding : NEC
Code : C3FE5074 (32 bits)
Timing[212]:
-29584
+9050, -4400 + 650, -1650 + 650, -1650 + 600, - 500
+ 650, - 500 + 600, - 500 + 650, - 500 + 600, -1650
+ 650, -1700 + 600, -1650 + 650, -1650 + 600, -1650
+ 650, -1650 + 650, -1650 + 600, -1650 + 650, -1650
+ 650, - 500 + 600, - 500 + 650, -1650 + 650, - 500
+ 600, -1650 + 650, - 500 + 600, - 500 + 650, - 500
+ 600, - 500 + 650, - 500 + 600, -1700 + 600, -1650
+ 650, -1650 + 650, - 500 + 600, -1650 + 650, - 500
+ 600, - 550 + 600, - 500 + 650, - 500 + 600, - 500
+ 600, - 550 + 600, - 500 + 600, -1700 + 600, - 500
+ 650, - 500 + 650, - 500 + 600, - 500 + 650, - 500
+ 600, - 500 + 650, - 500 + 600, - 500 + 650, - 500
+ 600, - 550 + 600, - 500 + 650, - 500 + 600, - 500
+ 650, - 500 + 600, - 500 + 600, - 550 + 600, -1700
+ 600, - 500 + 600, - 550 + 600, - 550 + 550, - 550
+ 600, - 500 + 600, - 550 + 600, - 500 + 650, - 500
+ 600, - 550 + 600, - 500 + 600, - 550 + 600, - 500
+ 600, - 550 + 600, - 500 + 650, - 500 + 600, - 500
+ 650, - 500 + 600, - 550 + 600, - 500 + 600, - 550
+ 600, - 500 + 600, - 550 + 600, -1700 + 550, - 550
+ 600, - 550 + 600, - 500 + 600, - 550 + 600, - 500
+ 600, - 550 + 600, - 550 + 550, - 550 + 600, - 550
+ 550, - 550 + 600, -1700 + 600, - 500 + 650, - 500
+ 600, - 500 + 650, - 500 + 600, - 500 + 650, - 500
+ 600, - 550 + 600, -1700 + 550, -1700 + 600, - 500
+ 650, -1650 + 600, -1700 + 600, -1700 + 600, -1650
+ 650, -1650 + 600,
unsigned int rawData[213] = {8456, 181,88, 13,33, 13,33, 12,10, 13,10, 12,10, 13,10, 12,33, 13,34, 12,33, 13,33, 12,33, 13,33, 13,33, 12,33, 13,33, 13,10, 12,10, 13,33, 13,10, 12,33, 13,10, 12,10, 13,10, 12,10, 13,10, 12,34, 12,33, 13,33, 13,10, 12,33, 13,10, 12,11, 12,10, 13,10, 12,10, 12,11, 12,10, 12,34, 12,10, 13,10, 13,10, 12,10, 13,10, 12,10, 13,10, 12,10, 13,10, 12,11, 12,10, 13,10, 12,10, 13,10, 12,10, 12,11, 12,34, 12,10, 12,11, 12,11, 11,11, 12,10, 12,11, 12,10, 13,10, 12,11, 12,10, 12,11, 12,10, 12,11, 12,10, 13,10, 12,10, 13,10, 12,11, 12,10, 12,11, 12,10, 12,11, 12,34, 11,11, 12,11, 12,10, 12,11, 12,10, 12,11, 12,11, 11,11, 12,11, 11,11, 12,34, 12,10, 13,10, 12,10, 13,10, 12,10, 13,10, 12,11, 12,34, 11,34, 12,10, 13,33, 12,34, 12,34, 12,33, 13,33, 12,0}; // NEC C3FE5074
unsigned int data = 0xC3FE5074;
Using the following code I try to reproduce the signal on the transmitter:
#include <IRremote.h>
IRsend irsend;
void setup()
{
}
void loop() {
irsend.sendNEC(0xC3FE5074, 32);
delay(2000);
}
but I get the following results on the reciever:
Encoding : NEC
Code : C3FE5074 (32 bits)
Timing[68]:
-37804
+9150, -4500 + 600, -1650 + 650, -1600 + 650, - 500
+ 600, - 550 + 600, - 500 + 650, - 500 + 600, -1650
+ 650, -1600 + 650, -1600 + 650, -1650 + 600, -1650
+ 650, -1650 + 600, -1650 + 650, -1600 + 650, -1650
+ 600, - 500 + 650, - 500 + 600, -1650 + 650, - 500
+ 600, -1650 + 650, - 500 + 600, - 550 + 600, - 500
+ 600, - 550 + 600, - 550 + 550, -1700 + 600, -1650
+ 600, -1650 + 650, - 500 + 600, -1700 + 550, - 550
+ 600, - 500 + 600,
unsigned int rawData[69] = {47942, 183,90, 12,33, 13,32, 13,10, 12,11, 12,10, 13,10, 12,33, 13,32, 13,32, 13,33, 12,33, 13,33, 12,33, 13,32, 13,33, 12,10, 13,10, 12,33, 13,10, 12,33, 13,10, 12,11, 12,10, 12,11, 12,11, 11,34, 12,33, 12,33, 13,10, 12,34, 11,11, 12,10, 12,0}; // NEC C3FE5074
unsigned int data = 0xC3FE5074;
The code is the same but the data is not. When i try it near the AC it does not react to the code.
Does anyone have any experience with this?
Thank you.