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
- Board used: UNO (clone). However have few of HiLetgo NodeMCU LUA ESP8266 if it helps with troubleshooting
- IDE used: IDE v2.2.1
- Library used: IRremote (4.2.0)
- Receiver/transmitter used: generic receiver/transmitter from the kit. Additionally removed an IR transmitter from the old tv remote for troubleshooting.
- Pinout: (+) pin 3 (-) gnd. I tried it both with resistor and without it.
- 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!