Hello guys
I just put my intrest in studying Ir led .so just performing a simple air conditioning controlling project which send simple ir command to my AC.So i used this irremote library called IRrecvdump for decoding the code from my voltas remote . looks like i was sucessfully able to decode it removed the hypens and first digit and here it is what i got
//on
unsigned signal_0[] ={8900,4400,650,1600,750,450,700,500,650,1650,700,450,700,500,750,450,700,500,700,1550,750,1550,700,500,700,1550,750,450,700,500,700,500,700,450,750,450,750,450,700,500,700,500,700,450,750,450,750,1550,700,500,700,450,750,450,750,450,700,500,700,1550,750,450,700,1600,700,450,750,450,750,1550,700,500,700};
//off
unsigned signal_1[] ={8950,4350,750,1550,700,500,700,500,700,450,750,450,750,450,700,500,700,500,700,1550,750,1550,700,450,750,1550,700,500,700,500,700,450,750,450,750,450,700,500,700,500,700,450,750,450,750,450,700,500,700,500,700,450,750,450,750,450,700,500,700,1550,750,450,750,1550,700,500,700,450,750,1550,700,500,700};
now i am stuck on some thing that my AC doesent detect my ir command from arduino
#include "IRremote.h"
IRsend irsend;
void setup()
{
Serial.begin(9600);
}
int khz=38; //NB Change this default value as neccessary to the correct modulation frequency
// ON and 2O C° with 1 FAN heat
unsigned heat[] ={8900,4400,650,1600,750,450,700,500,650,1650,700,450,700,500,750,450,700,500,700,1550,750,1550,700,500,700,1550,750,450,700,500,700,500,700,450,750,450,750,450,700,500,700,500,700,450,750,450,750,1550,700,500,700,450,750,450,750,450,700,500,700,1550,750,450,700,1600,700,450,750,450,750,1550,700,500,700};
unsigned OFF[] ={8950,4350,750,1550,700,500,700,500,700,450,750,450,750,450,700,500,700,500,700,1550,750,1550,700,450,750,1550,700,500,700,500,700,450,750,450,750,450,700,500,700,500,700,450,750,450,750,450,700,500,700,500,700,450,750,450,750,450,700,500,700,1550,750,450,750,1550,700,500,700,450,750,1550,700,500,700};
void loop() {
irsend.sendRaw(heat, sizeof(heat)/sizeof(int), khz);
delay(10000);
irsend.sendRaw(OFF, sizeof(OFF)/sizeof(int),khz);
delay(10000);
}
is it something related to my modulation frequency of ir led ?
any help will be much appreciated
Thanks in advance