Loading header...

Real-World Uses of Capacitors and Inductors

Capacitors and inductors are not optional textbook parts. They make real embedded hardware stable, quiet, efficient, and tolerant of sudden changes. Many problems blamed on firmware are actually power integrity, filtering, grounding, or electromagnetic compatibility problems.

Learning Objectives

By the end of this lesson, you should be able to:

  • Explain what capacitors and inductors do in practical embedded circuits.
  • Choose common capacitor roles such as decoupling, bulk storage, timing, and filtering.
  • Choose common inductor roles such as switching conversion, EMI filtering, and current smoothing.
  • Use basic energy, reactance, time-constant, and resonance formulas.
  • Recognize placement, safety, and debugging mistakes.

Core Behavior

Capacitor:

  • Stores energy in an electric field.
  • Resists sudden voltage change.
  • Stabilizes rails, filters noise, and stores short energy bursts.

Inductor:

  • Stores energy in a magnetic field.
  • Resists sudden current change.
  • Smooths current, transfers energy, and blocks high-frequency noise.

Important formulas:

$$
E_C = \frac{1}{2}CV^2
$$

$$
E_L = \frac{1}{2}LI^2
$$

$$
X_C = \frac{1}{2\pi f C}
$$

$$
X_L = 2\pi f L
$$

Capacitive reactance decreases as frequency increases. Inductive reactance increases as frequency increases. That opposite behavior is why capacitors and inductors are so useful in filters and power converters.

Decoupling Capacitors

Fast digital ICs draw short current pulses whenever internal gates switch. Power traces and planes have inductance, so the power rail cannot instantly supply that pulse from a distant regulator. A local decoupling capacitor supplies the fast transient current.

define MCU annotation=U label="Microcontroller" {
  pin VDD VDD top
  pin GND GND bottom
  pin IO GPIO right
}

J1: Connector_Generic:Conn_01x02 value="3.3 V input"
C1: Device:C value="100 nF"
C2: Device:C value="4.7 uF"
U1: MCU value="MCU"
LED1: Device:LED value="Status"
R1: Device:R value="1 k"

layout direction=LR gap=90
group SOURCE label="Supply input" direction=TB {
  J1
}
group LOCAL label="Local decoupling" direction=TB {
  C1 C2
}
group LOAD label="Digital load" direction=TB {
  U1 R1 LED1
}

J1.1 --> global:+3V3
J1.2 --> global:0V
C1.1 --> global:+3V3
C1.2 --> global:0V
C2.1 --> global:+3V3
C2.2 --> global:0V
U1.VDD --> global:+3V3
U1.GND --> global:0V
U1.IO --> R1.1
R1.2 --> LED1.A
LED1.K --> global:0V

Place the smallest high-frequency capacitor closest to the IC power and ground pins. A common starting point is one 100 nF ceramic capacitor per power pin or power-pin group, plus one or more 1 uF to 10 uF local bulk capacitors per device or board region.

Bulk Capacitors

Bulk capacitors supply energy during slower load changes, cable drops, motor starts, relay pulls, radio transmit bursts, or regulator transients.

The voltage droop estimate is:

$$
\Delta V = \frac{I \Delta t}{C}
$$

Example: a radio module draws an extra 400 mA for 2 ms. If the allowed local droop is 0.2 V, the ideal minimum capacitance is:

Break the calculation into mobile-safe steps:

$$
C = \frac{I \Delta t}{\Delta V}
$$

$$
C = \frac{0.4 \times 0.002}{0.2}
$$

$$
C = 0.004 F = 4000 uF
$$

In practice, the regulator response, capacitor ESR, capacitor derating, and PCB impedance also matter. The calculation still shows why wireless and motor loads often need serious local energy storage.

Bypass and Reference Capacitors

Analog circuits need quiet reference and supply nodes. Capacitors are used to:

  • Bypass op-amp supply pins.
  • Stabilize voltage references.
  • Reduce ADC reference noise.
  • Hold sensor excitation stable.
  • Prevent regulator oscillation when the datasheet requires an output capacitor and ESR range.

For ADC references, capacitor choice affects noise, settling, leakage, and dielectric absorption. Follow the converter datasheet layout and value recommendations.

RC Timing and Filtering

An RC circuit creates a first-order time constant:

$$
\tau = RC
$$

For a charging capacitor:

$$
V_C(t) = V_{final}(1-e^{-t/RC})
$$

For a simple RC low-pass filter:

$$
f_c = \frac{1}{2\pi RC}
$$

Common uses:

  • Button debounce.
  • Reset delay.
  • Sensor anti-alias filtering before an ADC.
  • PWM smoothing.
  • Audio coupling and tone shaping.

Inductors in Switching Regulators

In a buck or boost converter, the inductor stores energy during one switch state and releases it during another. This allows high efficiency because the switch is mostly either fully on or fully off.

For an ideal buck converter in continuous conduction mode:

$$
V_{out} \approx D V_{in}
$$

where D is duty cycle. Inductor ripple current is approximately:

$$
\Delta I_L = \frac{(V_{in}-V_{out})D}{L f_s}
$$

Design checks include saturation current, RMS current, DC resistance, core loss, ripple current, thermal rise, diode or synchronous MOSFET current, and layout loop area.

EMI Filtering and Ferrite Beads

Inductors and ferrite beads oppose high-frequency current. They are used in:

  • Input power filters.
  • LC output filters.
  • RF supply isolation.
  • Common-mode chokes on cables.
  • Motor and relay noise suppression.

Ferrite beads are not ideal inductors. Their impedance is frequency-dependent and often intentionally lossy at high frequency. Select them from impedance-current curves, not just from a single ohm value at 100 MHz.

LC Filters and Resonance

An inductor and capacitor form a resonant network:

$$
f_0 = \frac{1}{2\pi\sqrt{LC}}
$$

LC filters can clean switching ripple, but they can also ring. Damping may come from ESR, a series resistor, load resistance, or an explicit damping network. A filter that looks perfect in an ideal formula can oscillate or amplify noise if damping is ignored.

Real Embedded Examples

Product Capacitor Use Inductor Use
Smart meter Bulk hold-up, ADC reference, RTC backup Buck converter, EMI input filter
Motor controller DC-link capacitor, gate-driver bypass Phase current smoothing, common-mode choke
Sensor node Decoupling, anti-alias RC, battery pulse support Boost converter, RF supply bead
Audio device Coupling, power smoothing, active filters Output LC filter, supply choke
FPGA board Dense decoupling network across rails DC-DC converter inductors

Safety Notes

  • Large capacitors can store dangerous energy after power is removed.
  • Electrolytic and tantalum capacitors are polarized; reverse voltage can fail violently.
  • Inductors create voltage spikes when current is interrupted. Provide a flyback diode, snubber, TVS, or controlled current path for coils and motors.
  • Check ripple current and temperature ratings; overheated capacitors age quickly.
  • In mains-powered equipment, use safety-rated X and Y capacitors only where those safety functions are required.

Practical Debugging

Symptoms of weak passives:

  • MCU resets when a relay, modem, or motor turns on.
  • ADC readings jump when a digital output switches.
  • Regulator oscillates or runs hot.
  • Radio range is poor when motors run.
  • Product passes bench tests but fails EMC testing.
  • Touching the board or adding a scope probe changes behavior.

Checks:

  • Probe supply rails with a short ground spring, not a long ground lead.
  • Measure ripple at the IC pins, not only at the regulator.
  • Compare capacitor derated value at actual DC bias and temperature.
  • Check inductor saturation current above peak current.
  • Inspect current-loop area in switching circuits.
  • Review placement before changing firmware filters.

Common Mistakes

  • Placing decoupling capacitors far from IC pins.
  • Choosing only one large capacitor and omitting small high-frequency ceramics.
  • Ignoring ceramic capacitor DC-bias derating.
  • Selecting an inductor by inductance only and ignoring saturation current.
  • Using a ferrite bead as a power fix without checking voltage drop and heating.
  • Adding an LC filter without damping.
  • Forgetting flyback protection on inductive loads.

Practice

  1. A sensor board draws a 100 mA pulse for 5 ms, and rail droop must stay below 100 mV. Estimate ideal bulk capacitance.
  2. Choose R for a 100 nF capacitor to make an RC low-pass cutoff near 160 Hz.
  3. A buck converter uses Vin = 12 V, Vout = 3.3 V, L = 10 uH, fs = 500 kHz, and D = Vout/Vin. Estimate inductor ripple current.
  4. List three layout checks for MCU decoupling.
  5. Explain why a motor relay needs a flyback path.

Summary

Capacitors stabilize voltage, store short bursts of energy, and create timing and filtering networks. Inductors smooth current, transfer energy in switching converters, and help control EMI. Correct values matter, but placement, ratings, derating, and current paths matter just as much.

Further Reading

  • Horowitz and Hill, The Art of Electronics, sections on capacitors, inductors, power supplies, and filtering.
  • Texas Instruments, Power Supply Layout Guidelines for Step-Down Converters.
  • Analog Devices tutorials on decoupling, ADC driving, and reference bypassing.
  • Murata and TDK application notes on ceramic capacitor DC bias and ferrite bead selection.
  • IEC 60384 and manufacturer datasheets for capacitor safety and reliability data.

Mind Map

mindmap root((Capacitors and Inductors)) Core Capacitor resists voltage change Inductor resists current change Passives stabilize real hardware Formulas EC equals one half C V squared EL equals one half L I squared Xc equals 1 over 2 pi f C Xl equals 2 pi f L tau equals R C f0 equals 1 over 2 pi root L C Applications IC decoupling Bulk hold up ADC filtering Buck and boost converters EMI filtering Design rules Place caps at pins Check voltage derating Check ripple current Avoid inductor saturation Damp LC filters Practical checks Probe at load pins Inspect current loops Verify flyback path Measure startup droop Common mistakes Caps too far away Wrong polarity Ignoring DC bias Inductor saturates No damping