Skip to content

6 min read

Why Does My LED Stay Dim?

An LED is a current-driven device. If it glows but looks weak, the current through it is smaller than you expect. The cause is nearly always the resistor, the supply or the way the pin is driven.

Bright red LED lit through a resistor on a breadboard next to an Arduino board

At a glance

Dim means low current, not a bad LED

Brightness in an LED is roughly proportional to the forward current. A typical red indicator LED is rated for about 20 milliamps and looks bright near that value. At 2 or 3 milliamps the same LED is clearly visible in a dark room but looks dim in daylight. Before replacing the part, work out how much current your circuit actually allows.

A completely dark LED points to a different problem: reversed polarity, a missing connection, or a pin that is not configured as an output. A dim LED nearly always has a complete circuit with too much resistance or too little drive.

Check the series resistor first

Use Ohm’s law on the resistor: current equals the voltage across it divided by its resistance. With a 5 V board and a red LED that drops about 2 V, a 220 ohm resistor leaves 3 V across the resistor, giving roughly 14 milliamps. Change that resistor to 1 kilo-ohm and the current falls to about 3 milliamps, which looks dim.

Read the colour bands rather than trusting memory. A 220 ohm part is red-red-brown, while 1 kilo-ohm is brown-black-red. A resistor that is ten times too large is the most common single cause of a dim LED.

Forward voltage changes the answer

Different LED colours need different forward voltages. Red and yellow parts are often around 1.8 to 2.2 V, green is close to 2 V, and blue or white parts typically need 3 to 3.3 V. With the same 220 ohm resistor on a 3.3 V board, a white LED may only get a fraction of a volt across the resistor, so the current and brightness are small.

If the colour was changed but the resistor was not, recalculate. A resistor chosen for a red LED on 5 V is not automatically suitable for a blue LED on 3.3 V.

PWM duty cycle can look like dimness

analogWrite does not change the voltage on a digital pin. It switches the pin on and off quickly and changes the share of time it is on, called the duty cycle. A value of 255 is fully on, 128 is about half, and 64 is only a quarter. An LED driven at 64 looks dim even though the resistor is correct.

If you expected full brightness, check the value passed to analogWrite and any code that fades or dims the output. A pin that only supports digital write will be either on or off; use a PWM-capable pin for fading.

Supply voltage and shared ground

The 5 V or 3.3 V rail can sag when another part draws a large current. A servo starting up, a motor, or a long USB cable can pull the rail down enough to dim an LED. Check the rail with a meter while everything is running, not only when the board is idle.

Every part must share the same ground. If the LED circuit has its own supply and that supply’s negative terminal is not joined to the Arduino GND, the control signal has no reference and the LED may glow weakly or behave erratically.

A quick diagnostic order

Work in a fixed order: confirm the LED is inserted the right way round, measure the resistor, confirm the pin is an output, set the output fully on, measure the rail, then rebuild the connection on a different breadboard row. Changing one thing at a time tells you which assumption was wrong.

When the LED is finally bright, record the resistor value and the supply voltage in your notes. The same combination can then be reused in the next project without repeating the whole investigation.

Frequently asked questions

Can a 220 ohm resistor make an LED dim?

On a 3.3 V board with a blue or white LED, yes. On a 5 V board with a red LED it usually gives about 14 mA and looks bright.

Does analogWrite reduce LED brightness?

Yes. It changes the duty cycle, so a low value keeps the LED on only a small share of the time and it appears dim.

Why is my LED dim but my multimeter reads 5 V?

The voltage at the pin is not the current through the LED. Check the resistor value and the LED forward voltage.

Will a dim LED damage the board?

No. Low current is safe. The risk is the opposite: an LED with no series resistor can draw more current than the pin should supply.

Related pages