RC low-pass and PWM filter

Cut-off, ripple of filtered PWM in LSB, settling time.

How to use it

  1. Type R, C, the PWM frequency, the duty cycle and the PWM high level.
  2. Choose the resolution you want the filtered voltage to be as good as.
  3. Read the cut-off, the ripple in LSB (green when under one LSB), the attenuation at the PWM frequency and the settling time.

Questions

How do I make a DAC from a PWM output?

An RC low-pass after the PWM pin gives a voltage of duty × high level. Pick the cut-off well below the PWM frequency so the ripple stays under one LSB of the resolution you need; the settling time shows what that costs in response.

The ripple is too high. What do I change?

Raise the PWM frequency, raise R or C (slower settling), or use a second RC stage.

What can I type?

Values take engineering prefixes: 4k7 or 4.7k, 100n, 2.2u, 1M. The inputs are kept in the address, so “Copy link” shares the result.

Related tools

Lessons that explain it

Also useful for: rc filter, low pass, cutoff, pwm dac, ripple, time constant, tau, settling.