Hey Guys,
I'm losing my sleep over this project. The office i work at has a "bluestar AC" (unkown old window AC Brand) that I promised to automate. Using IRremote library( irrecvdumpv2), I Got the following codes for On and OFF.
Encoding : NEC
Code : 8020040A (32 bits)
Timing[73]:
+8950, -4450 + 650, -1600 + 650, - 550 + 650, - 500
- 700, - 500 + 700, - 500 + 650, - 550 + 650, - 550
- 650, - 500 + 700, - 500 + 650, - 550 + 650, -1600
- 700, - 500 + 650, - 550 + 650, - 550 + 650, - 500
- 700, - 500 + 650, - 550 + 650, - 550 + 650, - 500
- 700, - 500 + 700, - 500 + 650, -1600 + 700, - 500
- 700, - 500 + 650, - 550 + 650, - 550 + 650, - 500
- 700, - 500 + 650, -1650 + 650, - 500 + 700, -1600
- 650, - 550 + 650, - 500 + 700, -1600 + 650, - 550
- 650
unsigned int rawData[73] = {8950,4450, 650,1600, 650,550, 650,500, 700,500, 700,500, 650,550, 650,550, 650,500, 700,500, 650,550, 650,1600, 700,500, 650,550, 650,550, 650,500, 700,500, 650,550, 650,550, 650,500, 700,500, 700,500, 650,1600, 700,500, 700,500, 650,550, 650,550, 650,500, 700,500, 650,1650, 650,500, 700,1600, 650,550, 650,500, 700,1600, 650,550, 650}; // NEC 8020040A
unsigned int data = 0x8020040A;
Encoding : NEC
Code : 9020040A (32 bits)
Timing[73]:
+8950, -4400 + 650, -1650 + 650, - 550 + 650, - 550
- 600, -1650 + 650, - 550 + 650, - 550 + 600, - 550
- 650, - 550 + 650, - 550 + 650, - 550 + 600, -1650
- 650, - 550 + 650, - 550 + 600, - 550 + 650, - 550
- 650, - 550 + 650, - 550 + 600, - 550 + 650, - 550
- 650, - 550 + 650, - 550 + 600, -1650 + 650, - 550
- 650, - 550 + 600, - 550 + 650, - 550 + 650, - 550
- 650, - 550 + 600, -1650 + 650, - 550 + 650, -1600
- 650, - 550 + 650, - 550 + 650, -1600 + 650, - 550
- 650
unsigned int rawData[73] = {8950,4400, 650,1650, 650,550, 650,550, 600,1650, 650,550, 650,550, 600,550, 650,550, 650,550, 650,550, 600,1650, 650,550, 650,550, 600,550, 650,550, 650,550, 650,550, 600,550, 650,550, 650,550, 650,550, 600,1650, 650,550, 650,550, 600,550, 650,550, 650,550, 650,550, 600,1650, 650,550, 650,1600, 650,550, 650,550, 650,1600, 650,550, 650}; // NEC 9020040A
unsigned int data = 0x9020040A;
This is transmitted perfectly using the sendRaw example (with slight 5% delay at some places) as i hooked up a IR receiver on another arduino and checked if the raw data is transmitting right. The problem is the AC is not recognizing this. The IR Led is working well when i used the phone camera and it's placed a few centimeters away from the AC. What am I doing wrong? How do i get this to work?