Hi all,
I am using IRLib2 Library to control TV and AC. My TV is working great after recording raw codes from it's remote and sending it. But my AC is not working for the same. I have a Panasonic AC and tried recording its codes it gave me this:
#define RAW_DATA_LEN 100
uint16_t rawData[RAW_DATA_LEN]={
3474, 1870, 298, 646, 298, 1418, 298, 646,
294, 646, 322, 598, 318, 646, 298, 638,
322, 622, 354, 566, 350, 586, 350, 586,
350, 582, 350, 586, 350, 1386, 326, 586,
322, 614, 350, 586, 322, 642, 354, 566,
350, 586, 350, 586, 350, 1366, 346, 1366,
346, 1390, 298, 638, 298, 618, 350, 1366,
346, 590, 346, 586, 350, 586, 350, 586,
346, 590, 346, 586, 350, 586, 350, 590,
346, 590, 318, 642, 386, 554, 322, 582,
386, 578, 318, 594, 350, 582, 350, 590,
346, 586, 350, 586, 350, 610, 322, 614,
294, 622, 350, 1000};
I used this code to send this raw code but didn't get any response.
void loop() {
if (Serial.available())
{
String data = Serial.readStringUntil('\n');
data.trim();
delay(50);
if (data == "on")
{
mySender.send(rawData,RAW_DATA_LEN,38);//Pass the buffer,length, optionally frequency
Serial.println(F("AC is ON/OFF"));
}
}
}
I studied that AC IR codes are long codes or say Long signals I used another decoding from AnalysIR. And got codes with hyphens. I wasn't able to find how can I send these codes so moved back to my original one.
I have tried code solution of this but didn't work: IR Remote control of Air Conditioner - Can't get it to work - Home Automation - Arduino Forum
So please Help me regarding this.