Hello,
i have a viessman air conditioner. I want to control it with ir using arduino nano.
With the #include <IRremote.h> library, I got hex codes using nano receiver, but it doesn't work when I load hex codes into the transmitter circuit.
hex code: ac open code.
58587A77
1011000010110000111101001110111
1DAB8A35
11101101010111000101000110101
//#define DECODE_NEC
#include <IRremote.h>
int RECV_PIN = 11;
int led = 10;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup() {
// put your setup code here, to run once:
pinMode(led, OUTPUT);
Serial.begin(2400);
irrecv.enableIRIn();
}
void loop() {
// put your main code here, to run repeatedly:
if (irrecv.decode(&results)) {
Serial.println(results.value, HEX);
Serial.println(results.value, BIN);
delay(100);
//Serial.println(results.value);
Serial.println("******");
irrecv.resume();
}
}
It is better to consult a technician who can do his job well in this field with such problems. I once wanted to install the entire air conditioning system in the house, but that would have taken me time and energy. Even if I know a bit of this field, it's not like calling an air conditioning installation service to create your entire system, to put the equipment that suits your home. For example, I only needed an Ac in each room in my house, but I thought I needed fans too.