3

I have an IR receiver and an IR LED I got from a kit (I don't have the datasheets for them).
I uploaded an Arduino sketch to record my A/Cs IR codes. Those were NEC encoded 32bit integers.
After recording the codes, I tried retransmitting them. The A/C unit failed to detect the signals.
Troubleshooting a bit, I sent the code from the Arduino the receiver sketch from the previous step - it received them successfully.

All the above steps used the IRRemote Arduino library

The question is, what could explain this behavior? A few possibilities I had in mind:

  1. IR frequency. Could it be that the detection circuit worked with the default settings but transmitting wouldn't?
  2. IR wavelength. Any chance the A/C side doesn't detect my IR pulses at all?
  3. Decoding/Encoding of the NEC protocol in IRRemote. If there is no standard for the NEC protocol, the Arduino and A/C implementation might be a little different.
omribahumi
  • 189
  • 4
  • 1
    Is it an NEC air conditioner? I think the IR library has a "raw" mode - you could try that, which more exactly replicates exactly what it received. I think your solutions (1) and (2) are a little unlikely, but feasible. – Nick Gammon Sep 27 '15 at 07:02
  • You could try a different library: http://tech.cyborg5.com/irlib/ – Nick Gammon Sep 27 '15 at 07:04
  • range. The ir led you use could be far weaker than the one in the remote. Try placing the arduino right next to the AC unit.
  • – Gerben Sep 27 '15 at 09:16
  • @NickGammon It's not a NEC air conditioner. It just uses the NEC IR protocol. As for your RAW mode suggestion, I tried it, but the raw receiver generates both negative and positive values. I'll try to give it another try and try the other library as well. Thanks! – omribahumi Sep 27 '15 at 10:13
  • HI I have put my answer on the link below. https://stackoverflow.com/questions/44528781/clone-remote-using-arduino-with-the-irremote-library/45955124#45955124 Please let me know if it works for you. Let me know if you need help. – Ourang-Zeb Khan Aug 30 '17 at 08:15
  • Simple brightness is also an issue. Have you tried various positions of the LED with respect to the sensor? Lowering the current-limiting resistor value? – Lee Daniel Crocker Sep 25 '18 at 19:55