The 2nd-Order LC Topology: Nodes and Behavior

When converting a pulse-width modulation (PWM) signal into a clean, steady DC voltage, a simple resistor-capacitor (RC) filter often falls short due to resistive voltage drops and slow settling times. The solution is a 2nd-order LC low-pass filter. This topology uses a circuit inductor in series with the signal path and a capacitor in parallel to ground, creating a steep roll-off without burning power as heat.

Here is the standard node layout for a basic LC filter:

  • Node 1 (Vin): The raw PWM input (e.g., 5V square wave from a microcontroller).
  • Component L1: The series circuit inductor.
  • Node 2 (V_mid): The junction between the inductor and capacitor. This node experiences high-frequency ringing if not properly damped.
  • Component C1: The shunt capacitor to ground.
  • Node 3 (Vout): The smoothed DC output.
  • Node 4 (GND): Common ground reference.

Behavior Table: Parameter Shifts

Understanding how component changes affect the filter's cutoff frequency ($f_c = \frac{1}{2\pi\sqrt{LC}}$) and transient response is critical for tuning.

Element ChangedEffect on Cutoff FrequencyEffect on Ripple / Transient ResponseEffect on DC Load Drop
Increase L1 (Inductance)Decreases $f_c$Reduces high-frequency ripple; slows step responseSlight increase (due to higher DCR)
Decrease L1 (Inductance)Increases $f_c$Increases ripple; faster step responseDecreases
Increase C1 (Capacitance)Decreases $f_c$Reduces ripple; increases inrush currentNo effect
Decrease C1 (Capacitance)Increases $f_c$Increases ripple; lowers resonant peak QNo effect

Why an LC Filter Over a Simple RC Alternative?

You might wonder why you should bother with a magnetic component when a 100Ω resistor and a 10µF capacitor are cheaper and easier to source. The decision comes down to power efficiency and load regulation.

Pro Tip: An inductor's DC resistance (DCR) is typically in the milliohm range, whereas an RC filter requires a resistor in the tens or hundreds of ohms to achieve the same time constant.
CriteriaRC Low-Pass FilterLC Low-Pass Filter
DC Voltage DropHigh ($V = I \times R$)Negligible ($V = I \times DCR$)
Roll-off Attenuation-20 dB/decade (1st order)-40 dB/decade (2nd order)
Power DissipationHigh (burns energy as heat)Low (stores energy in magnetic field)
Component Size/CostSmall, cheapLarger, moderately more expensive
Load SensitivityHighly sensitive to load currentMaintains voltage under varying loads

Choose the LC topology whenever your load draws more than 5mA or when you cannot afford a voltage drop between your PWM source and the target device.

Design Walkthrough: Picking Real Component Values

Let’s design a filter to smooth a 5V, 20kHz PWM signal from an ESP32 into a clean DC voltage to drive a 0-10V analog fan controller input (via an op-amp) or a 5V analog sensor. Our target load is 50mA, and we want the output ripple to be under 10mV.

Step 1: Choose the Cutoff Frequency ($f_c$)
To effectively filter a 20kHz square wave, the cutoff frequency should be at least one decade below the fundamental frequency. Let's target $f_c = 1kHz$.

Step 2: Select the Circuit Inductor (L1)
We need an inductor that can handle the 50mA DC load without saturating, with a low DC resistance (DCR). A 1mH inductor is a solid starting point for audio and low-frequency PWM smoothing. Using the formula $C = \frac{1}{(2\pi f_c)^2 L}$:

$C = \frac{1}{(2 \pi \times 1000)^2 \times 0.001} = 25.3 \mu F$

Let's pick standard values: L1 = 1mH and C1 = 22µF (ceramic or low-ESR electrolytic). Recalculating $f_c$ with 22µF: $f_c \approx 1.07kHz$. This is perfect.

Step 3: Pick the Exact Part Number
For L1, we need a shielded power inductor to prevent electromagnetic interference (EMI) from radiating into nearby analog traces. The Bourns SRN6045TA series is an excellent choice. Specifically, the SRN6045TA-102M (1mH, 220mA saturation current, 3.6Ω DCR). However, 3.6 ohms DCR at 50mA is a 180mV drop. To achieve lower DCR, we will adjust to a 470µH inductor. We will use the Wurth Elektronik 744774247 (470µH, 2.5A sat, 0.43Ω DCR).

Recalculating C for 470µH at 1kHz: $C = 53.7\mu F$. We'll use a 47µF multilayer ceramic capacitor (MLCC) like the Murata GRM21BR61A476ME15.
$f_c = \frac{1}{2\pi\sqrt{470\mu H \times 47\mu F}} = 1.07kHz$.
This yields a much better DCR (0.43Ω), resulting in only a 21mV drop at 50mA.

Breadboard Testing: Step-by-Step Verification

Before committing to a PCB layout, validate the circuit on a breadboard. Inductors can ring violently if the breadboard's parasitic capacitance interacts poorly with low-ESR ceramic capacitors.

Warning: Never short the output of an LC filter directly to ground while the input is energized. The inductor will dump its stored magnetic energy ($E = \frac{1}{2}LI^2$) into the capacitor, potentially exceeding its voltage rating and causing a catastrophic failure.
  1. Assemble the Topology: Insert the Wurth 470µH inductor between the ESP32 PWM pin (Vin) and the positive rail of your breadboard (V_mid/Vout). Place the 47µF MLCC between the positive rail and the ground rail.
  2. Add a Snubber (Optional but Recommended): If using ultra-low ESR ceramics, place a 10Ω resistor in series with a 100nF capacitor across the output to dampen high-frequency resonant ringing.
  3. Power and Measure: Program the ESP32 to output a 20kHz PWM signal at a 50% duty cycle (2.5V expected DC). Connect your oscilloscope probe to Node 3 (Vout) using a short ground spring, not the long alligator clip.
  4. Verify Ripple: Set the scope to AC coupling and zoom in on the mV scale. You should see a flat line with less than 10mV peak-to-peak ripple.
  5. Test Load Regulation: Connect a 100Ω resistor from Vout to GND to draw 25mA. Verify that the DC voltage drops by no more than the calculated DCR loss ($25mA \times 0.43\Omega \approx 11mV$).

Failure Modes at the Extremes

Understanding what happens when components fail is vital for robust design:

  • C1 Shorts: The inductor L1 becomes the only current-limiting element between the 5V rail and ground. The microcontroller pin or power supply will likely current-limit, or L1 will overheat and burn out if it cannot handle the continuous DC short-circuit current.
  • L1 Opens: The circuit simply stops passing current. Vout drops to 0V. No catastrophic damage occurs, making an open inductor a safe failure mode.
  • L1 Saturates: If the load draws more current than the inductor's saturation rating ($I_{sat}$), the magnetic core maxes out. The inductor effectively becomes a piece of wire (near 0H inductance), and the filter loses its attenuation, passing raw PWM ripple straight to the output.

Decision Tree: Selecting Your Circuit Inductor

Use this decision matrix to lock in the right magnetic component for your specific application. Do not default to "it depends"—follow the path to a concrete selection.

Application ScenarioFrequency RangeLoad CurrentRequired InductanceConcrete Part Recommendation
Audio DAC Reconstruction20Hz - 20kHz< 20mA10mH - 100mHFastron 77A Series (High inductance, low current)
PWM Fan / Analog Control20kHz - 100kHz50mA - 500mA100µH - 1mHWurth 744774247 (470µH, 0.43Ω DCR)
Buck Converter Output (e.g., LM2596)150kHz - 1MHz1A - 5A10µH - 47µHBourns SRP1265A Series (Shielded, high $I_{sat}$)
RF Choke / High-Frequency Noise> 10MHz< 100mA1µH - 10µHCoilcraft 0805CS Series (Ceramic core, high SRF)

If you are building a standard microcontroller PWM-to-DC smoothing circuit for analog sensors or control voltages, default to the 470µH Wurth 744774247 paired with a 47µF MLCC. It provides the optimal balance of low DCR, sufficient saturation headroom, and a manageable physical footprint for prototyping and production. For deeper mathematical modeling of LC filter damping and transient step responses, refer to Texas Instruments' application notes on passive filter design or the foundational theory on All About Circuits.