i need to convert a ir signal from a amazon fire stick crappy ir code library with my arduino nano so i can turn on and of the projetor on and off, that's all i need, i'm learning trough youtube tutorials + chatgpt. here is my remote code which i want to turn on the projector: Protocol=Sony Address=0x1 Command=0x15 Raw-Data=0x95 12 bits LSB first
and here is the ir output signal that arduino has to send to projetor Protocol=NEC Address=0x3 Command=0x10 Raw-Data=0xEF10FC03 32 bits LSB first
with help of bing AI i came with this code, should be a simple task receive one signal and send another but for me is something totally new if anyone can help me out find a way no make it happen i will be so gratefully, i get several projectors every year, for my home cinema and sell some so this code would be super usefull as most of chinese brands aren't listed on fire TV database:
#include <IRremote.h>
IRrecv irrecv(2);
IRsend irsend;
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn();
}
void loop()
{
if (irrecv.decode(&results))
{
if (results.decode_type == NEC)
{
if (results.value == 0xFF000033)
{
delay(500);
irsend.sendNEC(0x80, 0xD7, 32);
delayMicroseconds(39400);
irsend.sendNEC(0x80, 0xD7, 32);
}
}
irrecv.resume();
}
}