Hello peeps,
to learn more about electronic reverse engineering I wanted to analyze and replicate the cheapo ir sender of our christmas lights.
The board looks like this
It looks like a multipurpose board with 21 Buttons, but only 2 are used by the device.
The controller ist an KXD-807F which seems to be a chinese, prupose programmed controller.
I tried to utilize the IRRemote to analyze the signal, but only got a garbled mess. Meaning the HEX codes changed every time I pressed the button. The same happens when I just dump the signal info.
As I didn't have IR receiver, I just connected the LED pin to the input pin, that would normally be used by the receiver, so I think it shouldn't make that big of a difference.
After that I tried to connect a logic analyzer to the LED output and got the following:
"That looks promising, doesn't it?" Well. It raised more questions than it cleared.
At least it consists of a 38kHz carrier freq and the timining correspond to the nec shema.
Alas, there is a huge block of straight 38kHz waves at the beginning, and after a pause a 33 (?) Bit long code.
So far so good. Loading the Simple IR Sender example I realized that my code won't fit there and it might be an old MSB NEC code.
Scrambling around with google and ChatGPT gave me this code:
#include <IRremote.h>
const int IR_LED_PIN = 1; // Change this to the pin connected to the IR LED
IRsend irsend;
void setup() {
Serial.begin(9600);
}
void loop() {
// MSB NEC Protocol: 32-bit code (e.g., 0x03FCB14F)
uint32_t necCode = 0x03FCB14F;
Serial.println("Sending MSB NEC signal...");
irsend.sendNEC(necCode, 32, 38); // 32 bits, 38 kHz carrier frequency
delay(5000); // 5-second delay between signals
}
Looking at it in the signal analyzer gave me the following mess:
A 4kHz, seemingly random signal.
Thank you for reading up to this point
Does anyone have any idea how I might approach this or does anyone recognize or can tell me why the pattern of the sender looks so differerent than other codes?