Electrical – Driving an LED with resistor directly from 3.3v GPIO pin of a microcontroller

ledmicrocontrollerresistors

Schematic

schematic

simulate this circuit – Schematic created using CircuitLab

I am a newbie in electronics and I am trying to drive an LED with a series resistor from a 3.3V microcontroller. The max strength of my microcontroller is 6mA and I have purchased an LED that has a forward current of 5mA and forward voltage of 2.9V (SMLE13BC8T from element14).

LED Datasheet – http://www.farnell.com/datasheets/2291105.pdf?_ga=2.248677317.314538259.1522008542-1628637695.1510818085&_gac=1.187272666.1519702428.CjwKCAiA_c7UBRAjEiwApCZi8b1AXd13x8uo1jKdDvDSS0hVLYvivMQv_-U7Wa3ZxPwHUqg1C72JOhoCITMQAvD_BwE

I did the resistor calculation and found that a 100 ohm resistor will be able to drop my voltage to a usable range for LED. Before testing this on the actual microcontroller I tried the LED – resistor combination by supplying 3.3V and found that the LED is super bright and heats up in few minutes usage. Hence I measured the current across my circuit using a multimeter and found that it is 71.6mA. I tried to increase my resistance to 200 ohms and the LED did not glow. Can someone help me to solve this. Am I using a wrong LED ?

I did search the forum for similar issues and did not find the answer, hence please don't close this as duplicate.

Best Answer

No, you are using a perfectly right LED. Modern high-intensity LEDs are very efficient devices, and are pretty bright even with 1-2 mA of current. Apparently you misread the value of resistor, it could be 10 Ohms or even 1 Ohm to get the current you experienced. Or you connected your Ampermeter to the wrong end of the resistor. If you tried your LED from 3.3V supply with 200 Ohm resistor and it doesn't glow, it means that you fried the LED in your previous experiment (since it was already too hot).

With 200 Ohm in series and 3.3V source the working point should settle at about 2.9V per specifications, which means that the current across 200 Ohm (0.4 V drop) is about 2 mA. From specifications: enter image description here

So you need to re-check your experimental setup, voltages, connections, etc.

The standard way is to connect the LED as you suggested, with any resistor from 50 Ohm to 3-4 kOhm in series, depending on the brightness you feel comfortable with. Keep in mind that your MCU GPIO will have about 50 Ohms of internal impedance (given the 6 mA default configuration). Even when connected to a GPIO directly, nothing dramatic should happen.