Hi all,
I've done some tests with replicating and sending IR signals for my TV which worked just fine. And example of mute and unmute for my TV was 68 codes, but now I'm trying to send signals to my aircon which is not working.
I managed to receive the aircon codes which were 439 codes. Much much longer than the TV codes as expected. But I got the full set and sending same as the TV. I'm suspicious of what's going on, cos when I press the actual remote button, it takes only ~1 second to send to the aircon and get the beep confirmation. But when I send it with the Arduino, it takes 14 seconds to send all 439 codes and the aircon does not react at all.
Any ideas if I'm doing something wrong here?
The code is fairly short and simple:
#include <IRremote.h>
IRsend irsend;
//Aircon On
int codeCount = 439;
unsigned int rawCodes[439] = {63840,440,65108,440,64244,468,65136,440,65112,440,65108,468,65136,440,65112,412,65080,440,65112,468,65136,464,65108,440,65108,440,65112,440,64244,468,65136,436,65108,444,65112,444,65112,440,65112,440,65108,440,65112,444,64248,412,64216,440,64240,468,65140,468,65108,436,64240,436,65108,440,65108,440,65112,440,65108,440,65108,436,65108,412,65080,440,65112,440,65108,440,65112,440,65108,436,65104,436,65108,440,65084,444,65112,436,65108,440,65108,440,65112,416,65084,440,65108,440,65112,440,65108,440,65112,440,65108,440,65108,436,65108,444,65112,468,65112,440,65112,444,65112,444,64248,468,64272,440,65108,436,65104,440,65112,444,65112,436,65108,412,55528,3528,63836,440,65112,444,64244,464,65108,440,65108,436,65108,440,65112,440,65108,444,65112,436,65108,444,65112,440,65112,468,65136,440,65112,444,64244,436,65108,440,65108,468,65112,440,65108,468,65140,444,65112,468,65140,444,64248,440,64240,436,64244,472,65140,472,65140,440,64244,440,65112,444,65112,440,65108,436,65108,444,65112,464,65108,440,65108,440,65112,440,65108,440,65112,472,65140,440,65112,440,65108,440,64244,468,64272,440,64244,440,64244,472,65140,440,65108,440,64244,496,65140,468,65136,440,65112,440,64244,440,64240,436,64240,440,64244,440,65112,444,65112,440,65112,444,65112,440,65108,440,65112,440,65108,440,65112,440,65108,468,64244,468,64272,436,65108,440,64240,440,65112,440,64244,440,64244,468,64272,444,65112,468,64272,440,65108,436,65108,468,64272,444,65112,440,65108,440,65112,468,65112,444,65112,440,65108,436,65108,468,65136,440,65112,468,65136,440,65112,452,65120,440,65108,440,64244,440,64244,464,64268,440,65112,440,65108,468,65112,440,65108,440,65108,440,65112,440,65108,440,65112,440,65108,440,64244,468,64272,440,64244,468,65140,444,65112,440,65108,440,65112,440,65108,440,65084,440,65108,440,65112,440,65108,440,65112,444,65112,440,65108,468,65140,444,65112,440,65112,444,65112,440,64244,440,65108,440,65112,468,64272,468,65108,440,65112,444,65116,444,64244,440,65112,468,65136,440,65112,444,65112,440,65108,440,65112,444,65112,468,65140,444,65112,440,65112,468,65108,468,65140,444,65112,440,65112,468,65136,444,65116,472,65140,468,64272,440,64244,440,65108,468,65136,440,65112,468,65140,464,65132,472};
////Mute TV
//int codeCount = 68;
//unsigned int rawCodes[68] = {4400,4450,600,1600,600,1600,600,1650,600,550,550,600,450,650,450,600,500,550,550,1700,550,1650,600,1600,600,550,550,600,450,600,550,550,550,550,500,1700,600,1600,600,1650,600,1600,600,550,550,600,450,550,600,550,550,550,550,550,550,550,550,550,550,1650,600,1650,550,1650,600,1600,600};
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
irsend.sendRaw(rawCodes, codeCount, 38);
digitalWrite(LED_BUILTIN, LOW);
Serial.println("Sent the code");
delay(5000);
}
TIA