IR Transmitter not transmitting (IRremote v3.7.1)

Hello everyone,

I am using a IR-Lamp in my room and i want to control it by using an Arduino Uno.
I've already used the IRremote-Libary to receive the following information:

Protocol=NEC Address=0x80 Command=0x1C Raw-Data=0xE31C7F80 32 bits LSB first (Off-Button)
Protocol=NEC Address=0x80 Command=0x1D Raw-Data=0xE21D7F80 32 bits LSB first (On-Button)

Now im trying to use a "KY-005 infrared transmitter" to transmit the Signal.
I've connected everything accordingly (Data = 3) and ran following code:

(NOTE: I'm currently only trying to send the "On" signal)

#include <IRremote.hpp>
void loop()
{
  IrSender.sendNEC(0x80, 0x1D, 2);
  delay(600);
}

The weird thing is that my other Arduino Nano can't receive the sent signal (It definitely works because it can receive the IR-Codes sent from my remote).

I have the feeling it's something trivial but I have no idea what it could be. Online Tutorials couldn't help me because all of them are written with libaries older than IRremote v3.0.

Did you test the hardware by sending codes to some other appliance?

Not really because I don't have anything else in my room that is controlled by IR.
I have tried 5 different IR-Transmitters. None of them seems to change the result.

How did you initialize the IrSender object?

IrSender.begin(); // Start with IR_SEND_PIN as send pin and enable feedback     
IrSender.begin(3, ENABLE_LED_FEEDBACK); // Specify send pin and enable feedback LED at default feedback LED pin
1 Like

That solved it! After that my receiver received everything and it seemed to work.

Now I only struggle with the range of the sent signal. My receiver only receives the signal at a perimeter of 15cm. Can I increase the reach in any way or do I have to buy another IR-Transmitter? I need about 1.5 Meters of range.

That one is a low power device that only uses power from the Arduino pin. Get the module with the drive transistor. It puts out about 10x the light.

From my previous answer it may not be so clear, but you only need to use one of the two begin() variants.

Normally a connection of several meters should be possible without further ado. What kind of series resistor (value) do you use for the diode at what operating voltage? The resistor values should be 220Ω at 5V and 120Ω at 3.3V.

I disagree. To drive the IR LED at its rated current you need an amplifying transistor, like this:

The resistor is already on the module that the OP has. Whatever value it is.

Possible. I know these modules (joy-it) without soldered resistor. But they have free pads/holes to solder one on themselves or the resistor is looped into the electrical connection. The module is designed for 20mA with the mentioned series resistors and no driver stage is necessary.

If you use for example a LED like the LD-274 you should use a driver stage.

I didn't use a resistor but I've seen many people use one in other tutorials. It worked for me without using one so i guess that should be okay.

After doing some research I've bought the "Ks0027 keyestudio Digital IR Transmitter Module". It should have a range of about 1.3 Meters (5V 38Khz). It will arrive next wednesday so I'll update this thread after doing some testing.

Thanks to the both of you for your quick help :slight_smile: .

That one does not have a transistor drive. It's not really any different than the one you already have.

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