I want to make a universal remote for TV and all my other electronic devices with IR-Emitter.
I was able to read HEX-Codes from my remote,
Now my Problem: I want to send a HEX-Code, which I got from my remote with my Arduino and IR-Emitter. But my TV does not react to this IR-Code and I really don't know why.
I am using the IRremote library by shirriff. My sketch is really short and simple. So I am wondering what I am doing wrong:
Ah okay I think I understand. But I didn't found what the carrier frequency of my TV is. I have an Philipps 37PFL5604H/12. It is a german brand. I don't know, if you know it. But I'll search for it. Maybe I find it and I will write again
Can you explain how you obtained this code and determined that the protocol was NEC ?
Which version of the IR library are you using and did you use the same version of the library to obtain that code? Newer versions of the library appear to reverse both the byte order and the order of the bits within each byte for some protocols, including NEC.
You posted some kind of a picture which is not a real fotgraphic picture.
So it even unclear of you are using a simple IR-diode or a IR-send-module.
The code to use a IR-diode is substantial DIFFERENT from a code to use a IR-modul (with integrated carrier-frequency-creation)
So please post FOTOGRAPHIC pictureS made with your smartphone. Make pictures of both sides if there is a PCB.
Philipps uses RC5-encoding.
I guess you must adjust the encoding to RC5
Take a look into the documentation
not sure how to use the functions maybe SendRC5 is sufficient
My understanding is that the second argument is the number if bits to send. At least it was in the older versions of IRremote. It seems off that one would use all 32 bits to hold a 12-bit number.
The new IRremote sendNEC() has more arguments, starting with 'address' and 'command'. There is a sendNECRaw(data, numberOfRepeats) and a sendNECMSB(data, nbits) which is compatible with codes from the older libraries.