Hi
I'm several days staked trying to clone the remote control of my air conditioner. This's my first arduino project and my C skills are not the best.
With the IRlibrary I did get the raw code of the ON button that sends the original remote control:
D3BE5F73
Unknown encoding: D3BE5F73 (32 bits)
Raw (48): -5530 1050 -3100 1050 -800 1000 -2050 1000 -3200 1050 -800 1000 -800 1000 -4050 1000 -4400 1050 -3100 1000 -800 1050 -2050 1000 -3200 1000 -800 1000 -850 1000 -4000 1050 -4400 1050 -3100 1000 -800 1050 -2000 1000 -3250 1000 -800 1050 -750 1000 -4050 1000
I don't now why, but the first number, 5530, is different every time i push the button. Even so I have copied the code and send it with irsend.sendRaw
unsigned int data[] = {-12740, 1050, -3100, 1050, -800, 1000, -2050, 1000, -3200, 1000, -850, 1000, -800, 1000, -4050, 1000, -4400, 1050, -3100, 1050, -800, 1000, -2000, 1050, -3200, 1000, -800, 1050, -800, 1000, -4000, 1050, -4400, 1000, -3150, 1000, -800, 1000, -2050, 1000, -3250, 1000, -800, 1050, -750, 1000, -4050, 1050};
irsend.sendRaw(data, 48, 38);
Not working. I think that may be there are an error with the frequency, so i've tried a for loop with all frequency from 1 to 100 in intervals of 0,5 secs, but nothing.
The air conditioner is from Mitsubishi, but i'm trying to open/close the grilles in the ceiling that there are in all the rooms of my home. That grilles works with an Airzone system. Here is the users manual, i find it only in spanish: https://climaluxecostatropical.files.wordpress.com/2012/03/manual-sistema-de-zonas.pdf. My remote control is in the right part of page 4.
I don't now if capturing an sending the raw code is enough. Also i don't now if there are a way to get the frequency of the remote control using the IRlibrary because may be is using something different to the standard 38kz, like 56,7 or similar...
Here is my code:
#include <IRremote.h>
const int btnPin = 2;
// Control button click
int timer = 0;
// RAW code of airzone controller / ON
unsigned int data[] = {-12740, 1050, -3100, 1050, -800, 1000, -2050, 1000, -3200, 1000, -850, 1000, -800, 1000, -4050, 1000, -4400, 1050, -3100, 1050, -800, 1000, -2000, 1050, -3200, 1000, -800, 1050, -800, 1000, -4000, 1050, -4400, 1000, -3150, 1000, -800, 1000, -2050, 1000, -3250, 1000, -800, 1050, -750, 1000, -4050, 1050};
// 3552468851 // int code
//
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
//
IRsend irsend;
void setup() {
Serial.begin(9600);
irrecv.enableIRIn();
}
void loop() {
timer++;
if (digitalRead(btnPin) == HIGH) {
if (timer > 1000) {
Serial.println("ok");
// check all frequencies from 0-100
int i;
for (i=1; i<100; i++) {
irsend.sendRaw(data, 48, i);
irrecv.blink13(true);
Serial.println(i);
delay(500);
}
}
timer = 0;
}
// reset timer
if (timer > 2000) timer = 1000;
}
Thanks ![]()
ps: Apologies for my bad english