IR transmitter troubleshooting

Hello everyone, long time lurker first time poster here. I'm working on a simple project where I would like to copy IR remote and control an electric heater using UNO board and later esp8266. Long story short is, I cannot get the IR transmitter to work.

Project details

  1. Board used: UNO (clone). However have few of HiLetgo NodeMCU LUA ESP8266 if it helps with troubleshooting
  2. IDE used: IDE v2.2.1
  3. Library used: IRremote (4.2.0)
  4. Receiver/transmitter used: generic receiver/transmitter from the kit. Additionally removed an IR transmitter from the old tv remote for troubleshooting.
  5. Pinout: (+) pin 3 (-) gnd. I tried it both with resistor and without it.
  6. Problem:

Using the IRemote library example (SimpleReceiver) I detected all of the buttons in a following format

Protocol=PulseWidth Raw-Data=0x40D 11 bits LSB first
Send with: IrSender.sendPulseDistanceWidth(38, 1300, 400, 1300, 400, 450, 1250, 0x40D, 11, PROTOCOL_IS_LSB_FIRST, , );
Protocol=PulseWidth Repeat gap=6950us Raw-Data=0x40D 11 bits LSB first

After that I tried to use SimpleSender example to verify that captured data is actually correct and working. Nothing special in the setup() section other than:

pinMode(LED_BUILTIN, OUTPUT);
IrSender.begin(DISABLE_LED_FEEDBACK);

Then using the following line in the loop() section:

IrSender.sendPulseDistanceWidth(38, 1300, 400, 1300, 400, 450, 1250, 0x40D, 11, PROTOCOL_IS_LSB_FIRST, 170000, 0);

Makes the diode blink as expected (verified via phone camera), however there's no reaction from the appliance. Now I'm trying to figure out how to troubleshoot it further. Should I chase software or hardware issue.

Any suggestions would help!

Always show us a good schematic of your proposed circuit.
Show us good images of your ‘actual’ wiring.
Give links to components.


In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.

Use the < CODE / > icon from the ‘posting menu’ to attach the copied sketch.


  • Two things, you must use an IR LED of the proper wavelength, you must be sure the protocol is the same as the receiving device.

In addition to IR wavelength and protocol, the transmitter IR modulation frequency must be the same as the receiver. Variations like 38, 40 and 50 kHz are common.

1 Like

Where are the 170000 and 0 come from?
Try more sensible values.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.