Electrical – Filter high-frequency PWM but keep low-frequency modulation

filterpwm

I have a simple circuit that drive a LED:

schematic

simulate this circuit – Schematic created using CircuitLab

The input PWM is created as follow:

  • base frequency: 200 kHz
  • PWM duty-cycle: 0..100% (to change light intensity)
  • low freq modulation: 10 Hz..10 kHz

I mean, the low frequency modulation turn on and off the PWM signal.
I'm looking for a way to filter out the 200 kHz base frequency, leaving the low frequency modulation there.

In other works, the PWM duty-cycle should be "levelled" ( = filtered) to obtain a constant DC voltage to drive the LED when it's active. I tried to put a capacitor in parallel to the led but I don't know if it's the best place to put it.

Increasing the capacity will filter a bit the 200 kHz but also "levels-out" the low-frequency modulation.

Is that position the best one?
Is the x20 PWM base frequency enough to easily filter that and only that?

Best Answer

Establish a low-pass=filter at 10% of the chopping frequency. Thus 20KHz.

A filter at 20KHz has TAU of 1/(2*PI*20KHx) or 50,000 microseconds/2*PI = 9 uSeconds.

You already have the R at 15 ohms. Simply place a 0.47uF cap from FET output to ground. Or any larger cap. This forms a parallel RC low pass filter.