Hello,
I've got a remote that I'm trying to emulate. Specifically one button. When I did the detect code I received the hex value 0x807fb874 with a NEC manufacture code.
When I try to send that value through an ir led, I keep reading the value 0x4DA41BC3. I can't figure out the relationship of these two values. I did some digging and it got real deep real quick, but I found some code on Ken Sherriffs blog about hash decoding. Don't know what the hell that means, but when I run that code and check the remote the serial spits out a "real" code, which is the one I got originally, and a "hash" code, which is the weird value that my ir led keeps sending.
So how do I get the ir led to send the "real" value?
Thank you for any help!
#include <IRremote.h>
const int switchPin = 7;
int buttonState = 1;
IRsend irsend;
void setup()
{
pinMode(switchPin, INPUT_PULLUP);
Serial.begin(9600);
}
void loop() {
buttonState = digitalRead(switchPin);
if (buttonState == LOW) {
delay(100);
irsend.sendNEC(0x807fb874, 32); // TV power code
Serial.print("sent -- ");
Serial.println(0x807fb874, BIN);
}
delay(300);
}