Hey guys, I am kinda new to Arduino projects. And I'm working on a project which will be applied in a room that includes two Air Conditioners. First AC runs 7/24. My goal is to control the second AC with IR led connected to Arduino. I get my IR codes by IRremote library's ReceiveDemo example sketch. Below, you can see my received AC_ON and AC_OFF codes and how I used them on my sender codes. I designed my circuit to transmit these codes, I point the LED right to the AC from about 1 meter away. I confirmed that IR LED works from my Phone camera but AC does not respond to any of them. What am I doing wrong? What should I do?
AC_ON
Protocol=PulseDistance Raw-Data=0x2 35 bits LSB first
Send on a 8 bit platform with:
uint32_t tRawData[]={0x50400419, 0x2};
IrSender.sendPulseDistanceWidthFromArray(38, 9000, 4350, 650, 1650, 650, 550, &tRawData[0], 35, PROTOCOL_IS_LSB_FIRST, , );
AC_OFF
Protocol=PulseDistance Raw-Data=0x2 35 bits LSB first
Send on a 8 bit platform with:
uint32_t tRawData[]={0x50000411, 0x2};
IrSender.sendPulseDistanceWidthFromArray(38, 9000, 4350, 650, 1650, 650, 550, &tRawData[0], 35, PROTOCOL_IS_LSB_FIRST, , );
How I used them on my code (on different lines):
uint32_t tRawData_ON[]={0x50400419, 0x2};
uint32_t tRawData_OFF[]={0x50000411, 0x2};
IrSender.sendPulseDistanceWidthFromArray(38, 9000, 4350, 650, 1650, 650, 550, &tRawData_ON[0], 35, PROTOCOL_IS_LSB_FIRST, 1000, 0);
IrSender.sendPulseDistanceWidthFromArray(38, 9000, 4350, 650, 1650, 650, 550, &tRawData_OFF[0], 35, PROTOCOL_IS_LSB_FIRST, 1000, 0);