Curious Minds

Clear answers to science and history questions

Why Car Lights Flicker on Camera: PWM Explained

· 6 min read · Science

Car lights flicker on camera because of a phenomenon called Pulse Width Modulation (PWM), where the light is not actually a steady stream but flashes on and off thousands of times per second. While the human eye cannot perceive these rapid pulses due to persistence of vision, a camera's shutter captures individual slices of time, revealing the gaps where the light is off.

The Science of Pulse Width Modulation

Most modern automotive lighting systems, particularly LEDs and certain xenon HID lamps, do not receive a constant flow of direct current. Instead, they use Pulse Width Modulation (PWM) to control brightness and manage heat. PWM works by switching the power to the light source on and off at an extremely high frequency. By varying the "duty cycle"—the ratio of time the light is on versus the time it is off—the vehicle's computer can dim the lights or maintain a specific intensity without wasting energy as heat.

For example, if a light has a 50% duty cycle, it is on for half the time and off for the other half. Because this happens hundreds or thousands of times per second, the human brain averages the input, perceiving a steady glow that is half as bright as the maximum output. However, a camera does not "average" light in the same way. It captures a frame based on a specific shutter speed. If the shutter closes while the PWM cycle is in its "off" phase, the resulting frame will show a dark or flickering light.

How Shutter Speed Reveals the Flicker

The interaction between the light's frequency and the camera's shutter speed is the primary reason for the visible strobing effect. Shutter speed determines how long the sensor is exposed to light. When the shutter speed is slow (e.g., 1/50th of a second), the sensor captures many cycles of the PWM on-off pattern, which blends together into a solid image. When the shutter speed is fast (e.g., 1/1000th of a second), the sensor may only capture a fraction of a single cycle.

  • Slow Shutter: Captures multiple pulses, resulting in a steady look.
  • Fast Shutter: Captures a single "on" or "off" state, resulting in black bands or a flickering effect.
  • Rolling Shutter: In many CMOS sensors, the image is scanned line by line. If the light flickers while the sensor is scanning, it creates horizontal dark bands across the image.

This is why the flicker is most prominent in high-frame-rate videos (slow motion) or high-shutter-speed photography. In slow-motion footage, the camera captures more frames per second than the light pulses per second, effectively "unmasking" the PWM frequency and making the light appear to blink like a strobe light.

LED vs. Halogen vs. HID Lighting

Not all car lights flicker in the same way because they rely on different physics to produce light. Understanding these differences helps in identifying why some vehicles look worse on camera than others.

Halogen bulbs are essentially filaments heated to a glow. Because the filament retains heat and continues to emit light for a brief moment after the power is cut, they have a natural "smoothing" effect. While they can still flicker if the power supply is unstable, they generally do not use PWM for basic operation, making them appear steady on most cameras.

LEDs (Light Emitting Diodes), however, are semiconductors that respond almost instantaneously to changes in current. There is no thermal lag; the moment the power is cut, the light vanishes. This makes LEDs the most prone to visible flicker on camera. HID (High-Intensity Discharge) lamps use a gas-filled arc. While they require a ballast to maintain the arc, some modern HID systems use PWM for brightness control, which can also lead to flickering, though usually at different frequencies than LEDs.

Common Misconceptions About Light Flicker

A common misconception is that flickering lights on camera indicate a faulty electrical system or a failing battery. While a dying battery or a bad alternator can cause lights to dim or flicker in real life, the specific "strobe" effect seen in videos is almost always a result of the camera's interaction with the lighting's electronic driver, not a mechanical failure of the car.

Another misunderstanding is that "high-quality" LEDs do not flicker. In reality, almost all LED drivers use some form of switching power supply. The difference lies in the frequency. Some premium automotive lighting systems use a much higher PWM frequency that is harder for standard cameras to detect, but even these will flicker if the camera is set to a sufficiently high frame rate or shutter speed.

How to Eliminate Flicker in Videos

For videographers and car enthusiasts, removing this flicker is a matter of matching the camera settings to the frequency of the light. This process is often referred to as "syncing" the shutter.

  1. Adjust Shutter Speed: Lower the shutter speed to a multiple of the power grid frequency (e.g., 1/50 or 1/60) to allow more PWM cycles to be captured in a single frame.
  2. Use a Variable ND Filter: If lowering the shutter speed makes the image too bright (overexposed), use a Neutral Density (ND) filter to block light, allowing for a slower shutter speed while maintaining the correct exposure.
  3. Change Frame Rates: Switching from 60fps to 24fps or 30fps can often reduce the visibility of the flicker because each frame represents a longer duration of time.
  4. Post-Production Software: There are specialized "de-flicker" plugins for video editing software that analyze the brightness of frames and smooth out the fluctuations mathematically.

Impact on Safety and Perception

While the flicker is a nuisance for cameras, it is generally invisible to the human eye. However, there is a distinction between the high-frequency PWM used for brightness control and lower-frequency flicker caused by electrical faults. If a driver can actually see the lights flickering with their naked eye, this is a safety concern and usually indicates a problem with the alternator, a loose ground wire, or a failing LED driver.

From a design perspective, automotive engineers must balance PWM frequency with efficiency. Higher frequencies reduce the chance of visible flicker and can be easier on the eyes for sensitive individuals, but they can increase electromagnetic interference (EMI) within the vehicle's electronic systems. Therefore, most manufacturers settle on a frequency that is high enough to be invisible to humans but low enough to avoid interfering with the car's radio or ECU.

Frequently Asked Questions

Does flickering on camera mean my car's electronics are failing?

No, in most cases it does not. If the lights look steady to your eyes but flicker on a smartphone or professional camera, it is simply the result of Pulse Width Modulation (PWM) interacting with the camera's shutter speed. It is a normal characteristic of LED lighting.

Why do some cars flicker more than others on video?

Different manufacturers use different PWM frequencies and duty cycles. Some use higher frequencies that are less likely to be captured by standard cameras, while others use lower frequencies that are more apparent. The quality and design of the LED driver determine the frequency.

Can I fix the flicker by changing the bulbs?

Replacing bulbs with another LED set may not fix the problem, as the flicker is often caused by the vehicle's lighting control module or the driver built into the bulb. Only bulbs specifically marketed as "flicker-free" (which often use constant current drivers instead of PWM) may resolve the issue.

Will a higher-end camera stop the flickering?

Not necessarily. In fact, high-end cameras often make the flicker more obvious because they allow for much faster shutter speeds and higher frame rates, which are the very things that reveal the PWM cycles.

Is this flicker dangerous for the driver?

No. Because the frequency is so high, the human brain perceives it as a constant stream of light. It does not cause the same fatigue or distraction as a slow, visible blink, though a very small percentage of people are sensitive to high-frequency flicker.

In this article
  1. The Science of Pulse Width Modulation
  2. How Shutter Speed Reveals the Flicker
  3. LED vs. Halogen vs. HID Lighting
  4. Common Misconceptions About Light Flicker
  5. How to Eliminate Flicker in Videos
  6. Impact on Safety and Perception
  7. Frequently Asked Questions