Hi Guys,
I was hoping not to bother you guys and try figure this out on my own through google and what little info I could find on the forum but I have been banging my head with this for the passed week and just cannot get it right.
I am trying to control my AC unit with an Arduino to maintain specific temperature but the AC does not seem to respond to the codes I have obtained using the IRrecvDumpV2.
I have checked the LED transmitter 940nm IR LED VISHAY TSAL6400 using my phone camera and can notice it emitting albeit only when under cover from light.
The code from the remote using a TSOP38438 - Type R51M/E which is used for an Alliance Air Conditioner
AC OFF
Encoding : SAMSUNG
Code : B24D7B84 (32 bits)
Timing[99]:
+4400, -4350 + 500, -1650 + 550, - 550 + 500, -1650
+ 550, -1600 + 550, - 550 + 550, - 550 + 500, -1650
+ 550, - 550 + 550, - 500 + 600, -1600 + 550, - 500
+ 550, - 550 + 550, -1600 + 550, -1650 + 500, - 550
+ 550, -1650 + 550, - 500 + 550, -1650 + 550, -1600
+ 550, -1600 + 550, -1650 + 500, - 550 + 550, -1650
+ 550, -1600 + 600, -1550 + 600, - 500 + 550, - 550
+ 550, - 500 + 550, - 550 + 550, -1600 + 550, - 550
+ 550, - 550 + 600, -1550 + 550, -1600 + 550, -1650
+ 550, - 500 + 550, - 550 + 550, - 550 + 550, - 550
+ 500, - 550 + 600, - 500 + 550, - 550 + 500, - 550
+ 600, -1600 + 500, -1650 + 550, -1600 + 550, -1600
+ 550, -1650 + 550
unsigned int rawData[99] = {4400,4350, 500,1650, 550,550, 500,1650, 550,1600, 550,550, 550,550, 500,1650, 550,550, 550,500, 600,1600, 550,500, 550,550, 550,1600, 550,1650, 500,550, 550,1650, 550,500, 550,1650, 550,1600, 550,1600, 550,1650, 500,550, 550,1650, 550,1600, 600,1550, 600,500, 550,550, 550,500, 550,550, 550,1600, 550,550, 550,550, 600,1550, 550,1600, 550,1650, 550,500, 550,550, 550,550, 550,550, 500,550, 600,500, 550,550, 500,550, 600,1600, 500,1650, 550,1600, 550,1600, 550,1650, 550}; // SAMSUNG B24D7B84
unsigned int data = 0xB24D7B84;
ACON
Encoding : SAMSUNG
Code : B24D9F60 (32 bits)
Timing[99]:
+4350, -4400 + 500, -1650 + 550, - 550 + 500, -1650
+ 550, -1600 + 550, - 550 + 550, - 550 + 500, -1650
+ 550, - 550 + 500, - 550 + 550, -1650 + 500, - 550
+ 550, - 550 + 500, -1650 + 550, -1650 + 500, - 550
+ 550, -1650 + 550, -1600 + 500, - 600 + 500, - 550
+ 550, -1650 + 500, -1650 + 550, -1600 + 550, -1600
+ 550, -1650 + 550, - 500 + 550, -1650 + 550, -1600
+ 550, - 550 + 550, - 550 + 500, - 550 + 550, - 550
+ 550, - 550 + 550, -1600 + 550, -1600 + 550, - 550
+ 550, - 550 + 500, - 550 + 550, - 550 + 550, - 550
+ 550, - 550 + 500, - 550 + 550, - 550 + 550, -1600
+ 550, -1650 + 500, -1650 + 500, -1650 + 550, -1600
+ 550, -1650 + 500
unsigned int rawData[99] = {4350,4400, 500,1650, 550,550, 500,1650, 550,1600, 550,550, 550,550, 500,1650, 550,550, 500,550, 550,1650, 500,550, 550,550, 500,1650, 550,1650, 500,550, 550,1650, 550,1600, 500,600, 500,550, 550,1650, 500,1650, 550,1600, 550,1600, 550,1650, 550,500, 550,1650, 550,1600, 550,550, 550,550, 500,550, 550,550, 550,550, 550,1600, 550,1600, 550,550, 550,550, 500,550, 550,550, 550,550, 550,550, 500,550, 550,550, 550,1600, 550,1650, 500,1650, 500,1650, 550,1600, 550,1650, 500}; // SAMSUNG B24D9F60
unsigned int data = 0xB24D9F60;
I have used both RAW and NEC codes but neither seem to work.
The code on the program to initiate the send is as follows:
Serial.println(F("Turning AC Unit On"));
for (int i = 0; i < 3; i++) {
irsend.sendRaw(ACON, 99, 38);
delay(20);
}
ACON is declared earlier:
unsigned int ACON[] = {4350,4400, 500,1650, 550,550, 500,1650, 550,1600, 550,550, 550,550, 500,1650, 550,550, 500,550, 550,1650, 500,550, 550,550, 500,1650, 550,1650, 500,550, 550,1650, 550,1600, 500,600, 500,550, 550,1650, 500,1650, 550,1600, 550,1600, 550,1650, 550,500, 550,1650, 550,1600, 550,550, 550,550, 500,550, 550,550, 550,550, 550,1600, 550,1600, 550,550, 550,550, 500,550, 550,550, 550,550, 550,550, 500,550, 550,550, 550,1600, 550,1650, 500,1650, 500,1650, 550,1600, 550,1650, 500};
When running the code with the tsop still connected I do see the receive led flash on the tsop so that can only be a sign that it is sending but what it is sending I can't see.
The other thought I had was that the LED is not emitting a strong enough light but the guide I have been following does not show the led connected to anything but GRD and PIN9.
Any help would greatly save my mental state in the near future.
Thanks,