跪拜 Guibai
← All articles
Front-end

From Ohm's Law to LC Resonance: The Circuit Math That Tunes Your Radio

By 用户老李 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

This tutorial gives a developer a single, code-reproducible path from Ohm's law to a working radio design, with every formula verified numerically. For anyone touching RF, antennas, filters, or impedance matching, the Q and resonance math here is the foundation, and the included Python lets you rerun all the calculations as you build.

Summary

The chapter opens with the tuning knob on an old radio: it turns a variable capacitor inside an LC tank that selects one frequency from the thousands arriving at the antenna. From there it builds up the full circuit toolkit. Ohm's and Kirchhoff's laws, maximum power transfer (matching at 50% efficiency, conjugate matching for reactive sources), capacitor and inductor behavior with time constants, and the Wheeler formula for air-core coils all get worked out with numerical tables. Complex impedance makes AC circuits as straightforward as DC, and an RC low-pass filter shows where the -3 dB cutoff and -20 dB/decade rule come from.

Series and parallel resonance are treated in depth: resonant frequency, quality factor Q, bandwidth B = f0/Q, and the voltage magnification across reactive elements. The energy definition of Q ties to free oscillation decay, and a numerical RK4 simulation measures Q from the logarithmic decrement. The chapter ends by designing a real tuning circuit for a medium-wave crystal radio: a 240 μH inductor and a 365 pF variable capacitor cover 530-1600 kHz, with coil turns computed via Wheeler's formula. Python code in the appendix reproduces every number.

Takeaways
— Maximum power transfer occurs when load resistance equals source resistance, at 50% efficiency; conjugate matching (ZL = Zs*) is required for reactive sources.
— RC time constant τ = RC; after 5τ a capacitor reaches 99.3% of final voltage.
— Wheeler's formula estimates single-layer air-core coil inductance: L[μH] = r^2 N^2 / (9r + 10l), with dimensions in inches, accurate to ~1% when l > 0.8r.
— Series resonant frequency f0 = 1/(2π√(LC)); at resonance impedance is minimum (=R) and reactive voltages are Q times the drive.
— Quality factor Q = ω0L/R = 2π × (stored energy / energy lost per cycle); bandwidth B = f0/Q.
— A Q=200 series-resonant circuit driven by 10 V RMS develops 2000 V RMS across the capacitor.
— For parallel resonance with inductor loss r, the resonant impedance is approximately L/(Cr) = Q²r.
— A 240 μH inductor with a 15-25 pF minimum and 365 pF maximum variable capacitor tunes 538-2055 kHz (or 538-2653 kHz with 15 pF min), covering the medium-wave band except the lowest ~8 kHz.
— The coil for the crystal radio: 67 turns of 0.3 mm enameled wire on a 50 mm diameter former gives ~240 μH.
Conclusions

The tutorial deliberately grounds every theoretical result in a concrete build (the crystal radio), which makes the math stick because each formula maps to a physical choice like a capacitor value or a turn count.

The 50% efficiency at impedance matching is a sharp reminder that matching maximizes power transfer, not efficiency; power systems choose efficiency instead, which is why the same rule applies differently in RF versus mains distribution.

The energy definition of Q is more intuitive than the component-reactance formula; it explains why quartz crystals with Q in the millions make such stable oscillators and narrow filters.

Concepts & terms
Quality factor (Q)
A dimensionless measure of how underdamped an oscillator or resonant circuit is. It equals 2π times the ratio of stored energy to energy lost per cycle, and for a series RLC it is ω0L/R. Q determines bandwidth and voltage magnification.
Complex impedance (Z = R + jX)
A frequency-dependent complex quantity that generalizes resistance to AC circuits, combining resistance (R) with reactance (X) where X>0 is inductive and X<0 is capacitive.
Time constant (τ)
The characteristic time for an RC or RL transient; after τ the quantity reaches about 63.2% of its final value, and after 5τ it is essentially settled.
Impedance matching
Setting a load impedance equal to the source's complex conjugate (for reactive sources) to transfer maximum power; for resistive sources, R_L = R_s gives 50% efficiency.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗