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:
Code: Select all
#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 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: https://forum.arduino.cc/index.php?topic=418106.new#new
Got this raw code :
Code: Select all
3396, 1740, 436, 476, 408, 1300, 404, 480, 408, 476, 408, 476, 408, 476, 408, 476, 408, 480, 408, 476, 408, 476, 408, 476, 408, 480, 404, 480, 408, 1272, 432, 476, 408, 476, 412, 476, 408, 476, 408, 476, 408, 476, 408, 476, 412, 1268, 436, 1300, 408, 1296, 408, 476, 408, 480, 408, 1296, 408, 476, 408, 480, 404, 480, 408, 476, 408, 476, 408, 476, 408, 476, 408, 480, 404, 480, 408, 476, 408, 476, 408, 480, 404, 480, 404, 480, 408, 476, 408, 476, 408, 480, 404, 476, 412, 476, 408, 476, 408, 476, 408, 476, 408, 480, 408, 476, 408, 476, 408, 476, 408, 480, 404, 480, 408, 476, 408, 476, 408, 1272, 432, 1276, 432, 480, 404, 476, 408, 480, 408, 476, 408, 476, 408, 9896, 3396, 1740, 432, 480, 404, 1276, 432, 476, 408, 480, 408, 476, 408, 476, 408, 476, 408, 476, 408, 476, 408, 480, 408, 476, 408, 476, 408, 476, 408, 1300, 408, 476, 408, 476, 408, 476, 408, 476, 408, 480, 408, 476, 408, 476, 408, 1272, 436, 1272, 432, 1272, 436, 476, 408, 476, 408, 1272, 436, 476, 408, 476, 408, 476, 408, 480, 404, 480, 408, 476, 408, 476, 412, 472, 408, 480, 404, 480, 408, 476, 408, 476, 408, 476, 408, 480, 404, 480, 408, 476, 408, 1272, 432, 480, 408, 1272, 432, 480, 404, 480, 408, 476, 408, 476, 408, 476, 408, 476, 408, 480, 404, 1276, 432, 476, 408, 480, 404, 480, 408, 476, 408, 476, 408, 476, 408, 480, 404, 480, 408, 476, 408, 1272, 432, 1272, 436, 1272, 432, 1276, 432, 1272, 432, 480, 408, 1272, 432, 480, 404, 1492, 216, 476, 408, 480, 404, 480, 408, 476, 408, 476, 408, 476, 408, 480, 404, 476, 412, 476, 408, 476, 408, 476, 408, 476, 408, 476, 412, 476, 408, 476, 408, 476, 408, 480, 404, 1296, 412, 1272, 432, 1296, 412, 476, 408, 476, 408, 480, 404, 480, 408, 476, 408, 476, 408, 476, 408, 476, 408, 480, 408, 1268, 436, 1272, 436, 1268, 436, 476, 408, 480, 408, 476, 408, 476, 408, 476, 408, 480, 404, 476, 408, 480, 408, 476, 408, 476, 408, 476, 408, 480, 404, 480, 408, 476, 408, 476, 408, 476, 408, 1272, 436, 476, 408, 476, 408, 1272, 436, 476, 408, 476, 408, 476, 408, 1272, 436, 476, 408, 476, 408, 476, 408, 476, 412, 476, 408, 476, 408, 476, 408, 476, 408, 480, 404, 480, 408, 476, 408, 476, 408, 476, 408, 480, 404, 480, 408, 476, 408, 476, 408, 476, 408, 1296, 412, 476, 408, 1272, 432, 1272, 436, 1272, 436, 1268, 436
Please help me regarding this Problem.