Hi, I am asking a question because there is a problem in transmitting during remote control of the air conditioner remote control using IRremote.
Here is my code:
#include <IRremote.h>
IRsend irsend;
void setup()
{
Serial.begin(9600);
IrSender.begin(3, ENABLE_LED_FEEDBACK); // Specify send pin and enable feedback LED at default feedback LED pin
}
unsigned int rawData[] = {450,1600, 450,550, 450,550, 450,600, 450,1550, 450,550, 450,600, 500,500, 450,1600, 450,1550, 450,600, 450,550, 500,500, 450,600, 450,550, 500,500, 450,600, 450,550, 450,550, 450,550, 450,600, 450,1550, 500,550, 450,1550, 450,600, 450,550, 450,550, 450,1600, 450};
void loop()
{
irsend.sendRaw(rawData, sizeof(rawData) / sizeof(int), NEC_KHZ); // Note the approach used to automatically calculate the size of the array.
delay(500);
}
The code above is the code to turn off my air conditioner in the LED light emitting part.
This code works normally, and the LED comes on well in the light emitting part.
I even installed transistors to increase the transmission distance.
But, it doesn't work.
Here, the row data is the data about my air conditioner "off".
Help me!!