Hi, i need to remote control my a/c(brand Stelbi) from arduino. I have used the irremote library for decrypt the code from the remote(which is in raw) this is the output:
3450,1750,400,1350,400,1350,400,450,400,500,400,450,400,1350,400,450,450,450,400,1350,400,1350,400,450,400,1350,400,500,350,500,400,1350,400,1350,400,450,400,1350,400,1350,400,450,400,500,400,1350,400,450,400,500,400,1350,350,500,400,450,400,450,450,450,400,500,400,450,400,500,400,450,400,500,400,450,400,450,450
and this is the sketch:
#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[] = {3150,1650,550,1050,550,1000,550,300,550,300,550,350,550,1000,550,300,550,350,550,1000,550,1000,550,300,550,1050,550,300,550,300,550,1000,550,1000,600,300,550,1000,550,1000,550,350,550,300,550,1000,550,300,550,350,550,1000,550,300,550,350,550,300,550,300,550,350,550,300,550,300,550,350,550,300,550,350,550,300,550};
void loop() {
irsend.sendRaw(heat, sizeof(heat)/sizeof(int), khz);
delay(1000);
}
I have tried to transmit it but it doesn’t work…can you help me?