Page 1 of 1

ESP32 driving an IR LED confusion

Posted: Fri Jan 10, 2025 7:18 pm
by pabl40
I have an ESP32-C6 interfaced to a simple IR LED module below.

I simply just connect an ESP32-C6 GPIO output to the DAT input and it drives both the normal LED and IR LED well.

I'm just not sure how this is possible, mainly in the case for driving the IR LED? How there is enough current.

The ESP32-C6 GPIO output voltage is 3.3V. If i'm not mistaken, there would be a voltage drop of at least 1V across the IR LED, and therefore across the 220 resistor 2.3V, and so maximum current would be around 2.3V/ 220 = 10 mA.

It states that the IR LED needs 100 mA. Confused:)
IR_LED_MODULE.png
IR_LED_MODULE.png (92.38 KiB) Viewed 861 times

Re: ESP32 driving an IR LED confusion

Posted: Fri Jan 10, 2025 11:53 pm
by MicroController
An LED doesn't need a minimum current; it will happily emit photons while any electrons are flowing. In fact, the number of photons emitted, i.e. the brightness of the LED, is proportional to the current only.
If an LED is spec'd at "100mA", that's either its maximum permissible current, or its "nominal" current at which it delivers the specified brightness. Less current is always ok, just with less light output.