
A 24V LED strip dimmed from a microcontroller can look steady at full output and start to shimmer the moment someone turns it down to a nightlight glow. The same strip may look fine to the eye but show dark bands on a phone camera, or put a faint whine into the power supply. All three symptoms come from how a pulse-width modulation (PWM) signal turns a duty cycle into light. Designers get flicker-free dimming from four decisions: the switching frequency, the brightness curve, the PWM resolution, and the power path between the supply and the LED.
What Causes LEDs to Flicker Under PWM Control?
An LED driven by PWM is never half on. It switches between full current and zero hundreds or thousands of times per second, and it flickers visibly when that frequency is too low, when brightness steps are coarse enough to see, or when the supply and switch distort the pulses. Unlike an incandescent filament, an LED responds in microseconds, so its light output follows the square wave almost exactly.
Low duty cycles expose every weak point in that chain. At 1% duty and 500 Hz, the LED gets a 20 µs pulse, and a slow MOSFET edge can consume a large share of it, so small period-to-period variations show up as shimmer. Firmware that writes a new duty value mid-period adds a single long or short pulse that the eye catches as a twitch.
Why Does a Linear Duty Cycle Look Uneven, and How Does Gamma Correction Fix It?
Human vision responds to light on a compressed, roughly power-law scale, so equal steps in duty cycle do not look like equal steps in brightness. On the CIE lightness scale, an LED at 50% duty looks about 76% as bright as one at full output. A linear fade therefore races through its visible range near the bottom and barely changes across the top half.
Gamma correction reverses that compression in firmware. The controller raises the requested level, normalized from 0 to 1, to a power called gamma, and engineers usually start at 2.2. A request for half brightness then becomes a duty cycle near 22%, which the eye reads as roughly half.

The correction has a cost at the dim end, where it asks for duty cycles finer than a typical PWM peripheral can produce.
How Much PWM Resolution Does Smooth LED Dimming Need?
Eight-bit PWM is too coarse once gamma correction is applied, and 12 bits is a practical minimum for smooth fades into low brightness. With 8-bit output and a gamma of 2.2, roughly the bottom 15 of 256 input levels round to zero, and the first nonzero steps double or triple the light output. Users see stepping during slow fades and a visible pop when the light turns on.
At 12 bits, the curve gets 4,096 duty values and only the bottom four or so input levels collapse to zero. Many microcontrollers already carry a 16-bit timer that supports this resolution. On an Arduino Uno, for example, firmware engineers can set Timer1 to 12-bit fast PWM at about 3.9 kHz with no extra hardware, and the change works the same for 12V and 24V loads because the controller only drives the MOSFET gate.

What Is Temporal Dithering, and When Does It Help?
Temporal dithering adds effective resolution by alternating between two neighboring duty values over several PWM periods. Three periods at a duty of 2 followed by one at 3 average out to 2.25, which gives an 8-bit timer two extra bits. The trade-off is frequency, because each added bit doubles the pattern length. A 490 Hz output dithered by two bits repeats at about 122 Hz and can shimmer on its own, so dithering works best on top of a PWM frequency in the kilohertz range.
What PWM Frequency Eliminates Visible LED Flicker?
A PWM frequency of at least 1.25 kHz keeps a fully modulated LED in the low-risk range of IEEE 1789-2015, and 3 kHz or higher meets its no-observable-effect level. Most people stop seeing direct flicker above 80 to 100 Hz when they stare at a fixed light, which is where the common 300 Hz guidance comes from. That threshold breaks down when the eye or the scene moves, because low-frequency PWM then appears as a trail of dots known as the stroboscopic or phantom array effect.
Default microcontroller outputs fall short of both levels. The Arduino Uno's analogWrite() runs at about 490 Hz on most pins, and phone cameras turn PWM at that rate into dark rolling bands.
Higher frequency has its own costs. At 20 kHz, one 12-bit step lasts about 12 ns, which is shorter than the switching edge of many MOSFETs, and frequencies between 2 and 20 kHz can make inductors and ceramic capacitors audibly sing. For microcontroller-driven 12V and 24V loads, a target of 2 to 4 kHz at 12-bit resolution usually balances these trade-offs.
Why Does LED Flicker Matter for Health and Comfort?
Flicker affects people before they consciously see it. Visible flicker between roughly 3 and 60 Hz can trigger seizures in people with photosensitive epilepsy, and invisible flicker in the low hundreds of hertz has been linked to headaches and eye strain. IEEE 1789 tightens its limits as modulation depth rises, which is why full on-off PWM needs a higher frequency than shallow analog ripple to reach the same rating.
How Does Driving 24V LEDs Differ From Driving 12V LEDs?
For the same light output, a 24V system draws half the current of a 12V system, so wiring loss drops to a quarter and PWM pulses reach the far end of a run with less sag. A 5 m strip rated at 14.4 W/m pulls about 6 A at 12V and 3 A at 24V, and every PWM edge asks the wiring to deliver that full current step.
That voltage loss is where 12V installations start to flicker. Long 12V runs dim toward the far end, and a microcontroller sharing the LED supply can brown out and reset on each pulse, which looks like random blinking.
Twenty-four-volt systems trade those problems for higher voltage stress at the switch, because cable inductance releases more energy at each turn-off edge. Designers therefore pick a higher-voltage MOSFET and watch for ringing and electromagnetic interference.
Resistor-limited parts handle both voltages cleanly, a design choice covered in our pilot lights vs. panel indicators comparison. VCC's panel mount indicators with integrated resistors accept 12V or 24V directly and dim under PWM the same way a strip does.
Indicators with a built-in constant-current driver IC can behave differently, so engineers should confirm PWM compatibility on the datasheet.
Which MOSFET and Wiring Choices Keep PWM Dimming Flicker-Free?
A logic-level N-channel metal-oxide-semiconductor field-effect transistor (MOSFET) on the low side covers most 12V and 24V designs. The datasheet values worth checking first are:
● Drain-source voltage: 30V for 12V loads and 40V to 60V for 24V loads, to absorb inductive spikes from cable runs.
● RDS(on) at the actual gate drive: specified at 4.5V for a 5V controller and at 2.5V for a 3.3V controller.
● Total gate charge: a 20 mA microcontroller pin charges a 20 nC gate in about 1 µs, which works at 2 kHz and is too slow at 20 kHz without a gate driver.
● Gate resistor and pull-down: 10 to 100 Ω in series to damp ringing, and about 10 kΩ from gate to source so the LEDs stay off while the controller boots.
Wiring decides whether those pulses arrive clean. The LED return current should flow back to the supply on its own conductor and not through the controller's ground trace, and a few hundred microfarads of bulk capacitance where power enters a long strip supplies the pulse current locally. Engineers usually leave about 20% supply headroom and avoid supplies that enter hiccup mode on current peaks, because that behavior shows up as low-frequency flicker.
How Do You Troubleshoot LED Flicker Step by Step?
Start by forcing the output to 100% duty. A light that still flickers has a supply, wiring, or connection problem, and one that goes steady points to the PWM signal, its resolution, or the code driving it.

2. Flicker at every partial duty level: scope the gate and drain for rounded or ringing edges, a missing pull-down, or a shared ground path.
3. Flicker or stepping only at low levels: raise PWM resolution, apply gamma correction, and set a minimum nonzero duty.
4. Flicker visible only on camera or with motion: raise the PWM frequency toward 2 to 4 kHz.
5. Random twitches during adjustment: check how firmware updates the duty value.
Firmware fixes for that last step are simple. A potentiometer reading jitters by a count or two, so a moving-average filter and a small hysteresis band stop the shimmer. Limiting updates to 50 to 100 per second and writing to a double-buffered compare register keeps each change aligned to the start of a PWM period.
Where Flicker-Free LED Design Is Heading
Flicker is moving out of the comfort category and into the specification. The European Union's Ecodesign regulation 2019/2020 has limited flicker and stroboscopic effects on mains-voltage light sources since 2021, and customers who see those limits in building lighting now expect the same steadiness from equipment panels, custom HMI designs, and architectural strips running on 12V and 24V.
Silicon vendors are responding with high-resolution PWM timers and LED driver ICs that build in gamma tables, dithering, and switching above the audio band. The engineers who get the cleanest results treat dimming as a system, choosing frequency, resolution, brightness curve, switch, and supply together, because a gap in any one of them reappears as flicker at the lowest setting a user can select.



