LC Circuit Oscillation Simulator Back
Electric Circuits

LC Circuit Oscillation Simulator

Adjust L, C, and R to instantly visualize the damped voltage waveform and impedance resonance curve of an RLC circuit. Resonant frequency, Q factor, and decay time constant are calculated automatically.

Parameters
Inductance L 10 mH
Capacitance C 10 μF
Resistance R 5.0 Ω
Initial Voltage V₀ 10.0 V
Results
Underdamped (oscillatory)
Resonant freq. f₀
Q Factor
Resonant impedance
Decay constant τ

Theory

Angular resonant frequency: $\omega_0 = \dfrac{1}{\sqrt{LC}}$
Resonant frequency: $f_0 = \dfrac{1}{2\pi\sqrt{LC}}$
Damping coefficient: $\alpha = \dfrac{R}{2L}$
Q factor: $Q = \dfrac{\omega_0 L}{R}$
Underdamped voltage: $V(t) = V_0 e^{-\alpha t}\cos(\omega_d t)$
where $\omega_d = \sqrt{\omega_0^2 - \alpha^2}$
Voltage Waveform V(t)
Impedance |Z(f)|

What is an LC Circuit Oscillation?

🧑‍🎓
What exactly is happening in this simulator? I see a wavy voltage that eventually dies out.
🎓
Basically, you're watching energy slosh back and forth between the inductor (L) and capacitor (C). The capacitor starts charged, releasing energy as current into the inductor, which then pushes it back to the capacitor. Try moving the 'Resistance R' slider to zero in the simulator—you'll see it oscillate forever because there's no energy loss!
🧑‍🎓
Wait, really? So the resistance is what makes the wave "dampen" and fade away? What's that resonant frequency number at the top?
🎓
Exactly! The resistance (R) dissipates energy as heat, causing the damping. The resonant frequency, $f_0$, is the natural rate of this energy exchange. In practice, it's set by just L and C: $f_0 = 1/(2\pi\sqrt{LC})$. A common case is a radio tuner. Try adjusting the L and C sliders and watch how $f_0$ updates instantly—you're tuning your circuit!
🧑‍🎓
So if I want a sharp, strong oscillation that lasts a long time, I need a high Q factor. How do I get that with these controls?
🎓
Great intuition! The Quality factor $Q = \frac{\omega_0 L}{R}$. For a sharp resonance, you want high L, low R, and a specific C to get your desired $f_0$. In the simulator, set R very low, L high, and find a C that gives you a frequency you want. You'll see the waveform ring for many cycles and the resonance peak in the impedance plot become very narrow and tall.

Physical Model & Key Equations

The core behavior is described by a second-order differential equation for the charge $q(t)$ on the capacitor, derived from Kirchhoff's voltage law.

$$L\frac{d^2q}{dt^2}+ R\frac{dq}{dt}+ \frac{1}{C}q = 0$$

Where $q$ is the charge, $\frac{dq}{dt}=i$ is the current, $L$ is inductance (H), $R$ is resistance (Ω), and $C$ is capacitance (F). This is the equation of a damped harmonic oscillator.

The solution for the underdamped case (most common oscillatory behavior) gives the decaying voltage waveform you see in the simulator.

$$V(t) = V_0 e^{-\alpha t}\cos(\omega_d t + \phi)$$

Here, $V_0$ is the initial voltage, $\alpha = R/(2L)$ is the damping coefficient, and $\omega_d = \sqrt{\omega_0^2 - \alpha^2}$ is the damped natural frequency. The exponential term $e^{-\alpha t}$ is the envelope of decay controlled by R and L.

Real-World Applications

Radio Tuners and Filters: LC circuits are the heart of analog radio receivers. By adjusting the capacitor (tuning), the circuit resonates at the frequency of a specific radio station, amplifying its signal while rejecting others. The sharpness (Q) of the resonance determines the selectivity of the tuner.

Switch-Mode Power Supplies: LC "tank" circuits are used to store and transfer energy efficiently at high frequencies in power converters. The oscillation is carefully controlled to minimize energy loss (requiring high Q) when switching transistors on and off, leading to compact and efficient power adapters.

Wireless Power Transfer: Systems like Qi chargers for phones use a pair of magnetically coupled LC resonators. The transmitter and receiver coils are each part of an LC circuit tuned to the same resonant frequency, enabling efficient energy transfer over a small air gap.

Signal Conditioning and Clock Generation: Crystal oscillators, which provide precise timing signals for computers and microcontrollers, fundamentally rely on the resonant properties of a piezoelectric crystal, electrically modeled as a very high-Q LC circuit. This provides the stable clock signal that synchronizes all digital operations.

Common Misconceptions and Points to Note

When you start using this simulator, there are a few points that are easy to misunderstand. First, while it's correct that "the resonant frequency is determined solely by L and C," you often forget that whether the oscillation sustains is dominated by R. For example, with L=1mH and C=1μF, the resonant frequency is about 5kHz, but simply changing R from 10Ω to 100Ω drastically changes the oscillation decay from a "beautiful sine wave" to a "curve that decays immediately." In practice, the DC resistance of the coil and wiring resistance are also included in "R," which can cause a discrepancy between ideal simulations and actual measurement results.

Next, it's not always true that "a higher Q factor is better." Certainly, for radio tuning, you want a high Q factor (sharp resonance characteristic). However, in an LC filter for a switching power supply, if the Q factor is too high, the circuit can become unstable and oscillate due to switching noise. If you use the simulator to increase the Q factor by keeping L and C constant and only decreasing R, you'll see the peaks on the graph become sharper and more numerous. That's a visualization of the "sharpness of resonance." It's important to design the optimal amount of damping (i.e., Q factor) according to the application.

Also, be mindful of assumptions about initial conditions. This simulator often starts from a state where the capacitor has an initial charge, right? But in a real circuit, the state the moment a switch is turned on or the influence of noise also become initial conditions. When simulation results don't match textbook examples, try questioning "what are the true initial conditions?"

Related Engineering Fields

Once you understand LC circuit oscillations, you'll realize that phenomena in a surprisingly wide range of fields can be "described by the same equations." This is called analogy and becomes a powerful tool for engineers.

The first that comes to mind is mechanical vibration. A system consisting of a spring with spring constant k (corresponding to capacitor C), a mass m (corresponding to inductance L), and a dashpot with damping coefficient c (corresponding to resistance R) is described by a differential equation of exactly the same form: $$ m \frac{d^2x}{dt^2} + c \frac{dx}{dt} + kx = 0 $$. The analysis of car suspensions or building seismic design is precisely studying the behavior of this "mechanical version of an RLC circuit."

Next is acoustical engineering. The Helmholtz resonator—that thing where you blow across the mouth of a bottle and it goes "pooo"—can also be modeled as an LC resonant circuit, where the mass of air in the neck corresponds to L and the volume of air inside the bottle corresponds to C. This principle is deeply involved in the design of speaker enclosures (boxes).

In more modern applications, it connects directly to the design of RF (high-frequency) circuits and metamaterials. A smartphone antenna needs to resonate at a specific frequency band (e.g., the 2.4GHz band) within a limited small space. Here, L and C are not actual coils and capacitors but are treated as "distributed constants" created by the shape of the wiring pattern itself. Experiencing how the resonant frequency changes when you adjust L and C in the simulator builds the foundational skill to visualize these invisible "equivalent circuits" in your mind.

For Further Learning

Once you're comfortable with this simulator and want to learn more, try moving to the next step. First, deepen your understanding of the mathematical background. Learning that the form of the solution to a second-order linear differential equation is determined by the roots of the characteristic equation $$ s = -\alpha \pm \sqrt{\alpha^2 - \omega_0^2} $$ allows you to clearly understand that the difference between overdamped, critically damped, and underdamped corresponds to the content of the square root being positive, zero, or negative. This "s" is the complex frequency in Laplace transforms, playing a crucial bridging role connecting a circuit's transient response and frequency response.

The next recommendation is expansion to active circuits. The current simulator is a "passive circuit" where energy is only consumed by resistance. By combining this with an "active circuit" that uses op-amps or transistors to supply energy, you can create an "oscillator circuit" that cancels damping and produces sustained oscillation. Quartz clocks and microcontroller clock sources come from this. Conversely, there are also techniques like "active damping," which uses active elements to intentionally increase damping and quickly suppress oscillations.

Finally, learning by advancing how you use the tool itself is also valid. For example, develop the habit of forming your own hypotheses—like "If I change the initial voltage from 1V to 2V, the waveform amplitude doubles, but what about the decay?" or "If I change L and C values by the same factor simultaneously, what happens to the resonant frequency?"—and immediately testing them with the simulator. This is the most powerful learning method for connecting theory and phenomena within yourself.