Helmut Sennewald said:
Hello Jack,
I have seen this circuit the first time.
I simulated it immediately with LTSPICE and the result is great.
It achieves sub millivolts of ripple voltage even with a low PWM-
frequency of 100Hz. Settling time is in the range of 1 to 2 seconds.
An equivalent RC-filter would have a settling time 20 times longer.
The filtered output voltage is proportional to the inverted PWM signal.
Please exchange the inverter outputs feeding the resistors for positive PWM.
Principle:
There is a remaining ripple voltage after the 200kOhm and 47nF capacitors.
The opamp tries to cancel this ripple voltage.
Hint: After the voltage is settled, the diodes are always off.
So the 47nF and the 10MEG resistor give a high gain at the pWM frequency.
This gain is the key to cancel the ripple voltage.
Best regards,
Helmut
Helmut,
an easy way to think about this circuit is to change it to linear operation,
i.e. change the 7404 for just a gain of 1 linear inverter.
When doing an AC analysis you see this as a 3rd order LPF.
When comparing this circuit against a simple 3x 9Hz real poles RC filter,
you have almost no difference between them :
slightly better ondulation for the 3xRC filter and smaller delay at startup
for the "magic" filter.
Anyway, they have exactly the same 1% (and after) settling time on a 5V/50%
duty cycle signal.
Except for curiosity, this circuit is without interest. (unless I've
overlooked something, but it's late, so don't blame me
Oh, one funny thing I've just seen is that, when you remove the diodes, it
rings like a bitch.