Electricity & magnetism

Resonance Frequency Sweep Lab

A series RLC loop measured across the resistor, the capacitor or the coil, or a parallel tank, swept over a band of 11 to 81 logarithmic or linear frequencies: the lab reads the circuit only at the sweep's points and gives the measured peak (the first of tied readings), the half-power crossings interpolated between the bracketing readings, the measured bandwidth and Q, an optional zoom sweep around the best reading and a three-point parabola, beside the exact closed-form resonance frequency, quality factor, peak, half-power points and bandwidth, a 201-point exact curve, the stored and dissipated energy, and the scope and head-to-tail phasors at a marker frequency. A peak outside the band, a capacitor or coil voltage with no peak, or a tie reads CHECK; Q above 200 is not valid. Five challenges are scored by the lab. For learning how a bounded frequency sweep measures a resonance and why the points' placement matters.

Last updated

Calculator overview

Inputs and outputs

This summary comes from the calculator's published input and output contract.

Inputs

Source voltage amplitude (required)
About this input

The amplitude V0 of the series loop's sine source, from 0.1 V to 10 V.

Unit V Default 1 Range 0.1 to 10
Sweep end (required)
About this input

The upper edge of the sweep band, from 10 Hz to 1 MHz and above the start. Drag the band's right edge.

Unit Hz Default 10000 Range 10 to 1000000
Circuit (required)
About this input

The circuit: Series loop (a sine voltage source driving a resistor, a coil and a capacitor in a ring) or Parallel tank (a sine current source feeding the three parts side by side). Chosen with the chips on the stage at Experiment.

Default Series loop Allowed Series loop, Parallel tank
Source current amplitude (required)
About this input

The amplitude I0 of the parallel tank's sine current source, from 0.1 mA to 100 mA (entered in amperes, 0.0001 to 0.1).

Unit A Default 0.001 Range 0.0001 to 0.1
Sweep start (required)
About this input

The lower edge of the sweep band, from 10 Hz to 1 MHz. Drag the band's left edge on the frequency axis.

Unit Hz Default 100 Range 10 to 1000000
Zoom sweep (required)
About this input

On adds a second sweep with the same number of points, evenly spaced between the readings either side of the best one.

Default Off Allowed Off, On
Sweep points (required)
About this input

How many frequencies the sweep reads: 11, 21, 41 or 81 points, the first and last on the band edges.

Default 81 points Allowed 11 points, 21 points, 41 points, 81 points
Sweep spacing (required)
About this input

How the sweep points are spread: Logarithmic (even ratios) or Linear (even steps).

Default Logarithmic Allowed Logarithmic, Linear
Your prediction: where the capacitor peak sits (required)
About this input

Challenge 5 only: where the capacitor's voltage peaks compared with the current's peak: Lower frequency, Same frequency or Higher frequency. Not yet chosen until you pick one.

Default Not yet chosen Allowed Not yet chosen, Lower frequency, Same frequency, Higher frequency
Probe across (required)
About this input

Where the probe is clipped in the series loop: Resistor (the current's shape), Capacitor or Coil. Tap a part on the circuit to move the probe. The parallel tank is always measured as its voltage.

Default Resistor Allowed Resistor, Capacitor, Coil
Challenge number (required)
About this input

0 for free play; 1 to 5 load one of the five challenges.

Default 0 Range 0 to 5
Marker frequency (required)
About this input

The frequency the scope and the phasor diagram show, from 10 Hz to 1 MHz. Drag the marker line on the frequency axis.

Unit Hz Default 1000 Range 10 to 1000000
Coil (inductance) (required)
About this input

The coil L, from 0.1 mH to 1 H. Drag its value badge; each step is 1%.

Unit H Default 0.01 Range 0.0001 to 1
Resistor (resistance) (required)
About this input

The resistor R, from 0.1 ohms to 10 kilohms. In the series loop a larger R lowers Q and widens the peak; in the tank it raises Q. Q above 200 is outside this lab's range.

Unit Ω Default 10 Range 0.1 to 10000
Your prediction: the resonance frequency
When omitted Blank
About this input

Challenge 1 only: your prediction of the frequency at which the circuit resonates, from 10 Hz to 1 MHz. Blank until you place the dashed line.

Unit Hz Default Not set Range 10 to 1000000
Capacitor (capacitance) (required)
About this input

The capacitor C, from 1 nF to 1,000 microfarads. Drag its value badge; each step is 1%.

Unit F Default 1E-06 Range 1E-09 to 0.001

Outputs

Energy lost per cycle at resonance
About this output

The energy the resistor turns into heat in one cycle at resonance, in microjoules.

Unit µJ
Probe across used
About this output

Where the probe is clipped in the results. Blank for the parallel tank, a hidden circuit or inputs that are not valid.

No unit declared
Points read in this run
About this output

The number of frequencies read in this run: the sweep's points, doubled when the zoom sweep is on.

No unit declared
Energy stored at resonance
About this output

The energy stored in the circuit at resonance, in microjoules: one half L times the current amplitude squared for the series loop, one half C times the voltage amplitude squared for the tank.

Unit µJ
Resistor (resistance) used
About this output

The resistor the results use, in ohms. Blank for a hidden circuit or inputs that are not valid.

Unit Ω
Coil (inductance) used
About this output

The coil the results use, in H. Blank for a hidden circuit or inputs that are not valid.

Unit H
Capacitor (capacitance) used
About this output

The capacitor the results use, in F. Blank for a hidden circuit or inputs that are not valid.

Unit F
Phasor diagram radius
About this output

The radius of the phasor diagram: 1.15 times the largest arrow end, in V for the series loop or mA for the tank.

No unit declared
Three-point parabola peak frequency
About this output

The top of a parabola through the best reading and its two neighbours, in Hz (fitted to the amplitude against the logarithm of the frequency). Blank when the best reading is at an end of the sweep or the three readings are flat.

Unit Hz
Parabola peak frequency error
About this output

The parabola's peak frequency error against the true peak frequency, in percent (signed).

Unit %
Natural resonance frequency
About this output

f0 = 1 / (2 pi square root of L C), the frequency at which the coil's and the capacitor's reactances cancel, in Hz.

Unit Hz
Measured peak frequency error
About this output

The measured peak frequency's error against the true peak frequency, in percent (signed).

Unit %
The phasors at the marker, head to tail (series: voltages in V; tank: currents in mA)
About this output

The phasor diagram at the marker frequency, head to tail: each arrow's real and imaginary parts, its name, and where it starts and ends. The resistor, coil and capacitor arrows add up to the source arrow.

No unit declared
Where the measured voltage peaks
About this output

Where the measured voltage peaks compared with the resonance: Same frequency (resistor, tank), Lower frequency (capacitor) or Higher frequency (coil).

No unit declared
Measured peak as a share of the true peak
About this output

The highest reading as a percentage of the true peak: how close the sweep's points came to the top.

Unit %
Sweep spacing used
About this output

The spacing the results use.

No unit declared
Sweep rows shown
About this output

How many rows of the sweep table hold readings (0 while a prediction is awaited).

No unit declared
Sweep points used
About this output

The point count the results use.

No unit declared
Sweep start used
About this output

The sweep's lower edge the results use, in Hz (a challenge may fix it).

Unit Hz
Zoom sweep used
About this output

Whether the results use the zoom sweep.

No unit declared
Zoom rows shown
About this output

How many rows of the zoom table hold readings (0 when the zoom sweep is off or a prediction is awaited).

No unit declared
The zoom sweep: linear between the readings either side of the best wide reading (blank when off)
About this output

The zoom sweep, in the same columns as the wide sweep. Blank when the zoom sweep is off.

No unit declared
The wide sweep: one reading per point (rows beyond the point count are blank)
About this output

The wide sweep, one row per point: the frequency in Hz, the amplitude in V, the phase in degrees, 1 where the reading is above the half-power level and 1 on the best reading. Rows beyond the point count are blank.

No unit declared
The scope at the marker over two periods: 65 frames
About this output

The scope at the marker frequency over two periods, 65 frames: time in periods, the source voltage in V (series loop), the measured voltage in V and the current in mA.

No unit declared
Scope current axis upper bound
About this output

The top of the scope's current axis, in mA: 1.15 times the current amplitude.

Unit mA
Circuit used
About this output

The circuit the results use. Blank when the circuit is hidden (challenges 3 and 4) or the inputs are not valid.

No unit declared
Scope voltage axis upper bound
About this output

The top of the scope's voltage axis, in V: 1.15 times the larger of the source and the measured amplitude.

Unit V
Sweep end used
About this output

The sweep's upper edge the results use, in Hz.

Unit Hz
Source voltage amplitude used
About this output

The series source amplitude the results use, in V. Blank for the parallel tank, a hidden circuit or inputs that are not valid.

Unit V
Source current amplitude used
About this output

The tank source amplitude the results use, in A. Blank for the series loop or inputs that are not valid.

Unit A
True half-power bandwidth
About this output

The true half-power bandwidth, the upper minus the lower half-power frequency, in Hz (f0/Q across the resistor or for the tank).

Unit Hz
Quality factor from energy
About this output

Q from energy: 2 pi times the stored energy over the energy lost per cycle. It equals the circuit's Q.

No unit declared
Quality factor Q
About this output

The quality factor Q: square root of L/C over R for the series loop, R times the square root of C/L for the tank. A high Q gives a tall, narrow peak.

No unit declared
The exact response at 201 frequencies, closer together near the true peak
About this output

The exact response at 201 frequencies across the band, closer together near the true peak: frequency in Hz, amplitude in V, phase in degrees.

No unit declared
True peak frequency
About this output

The true peak's frequency, in Hz: f0 across the resistor or for the tank, below f0 across the capacitor and above it across the coil. Blank when there is no peak.

Unit Hz
True peak amplitude
About this output

The true peak's height, in V. Blank when there is no peak.

Unit V
True lower half-power frequency
About this output

The true frequency below the peak where the amplitude falls to the peak divided by the square root of 2 (half the power), in Hz. Blank when it does not exist.

Unit Hz
Challenge result
About this output

No challenge selected, MET or NOT MET.

No unit declared
Bandwidth note
About this output

Whether the bandwidth could be measured: Measured, Lower half-power point outside the sweep, Upper half-power point outside the sweep, Both half-power points outside the sweep, or No reading of the wide sweep reaches the half-power level.

No unit declared
Measured bandwidth error
About this output

The measured bandwidth's error against the true bandwidth, in percent (signed).

Unit %
Amplitude chart upper bound
About this output

The top of the amplitude chart, in V: 1.15 times the largest amplitude shown.

Unit V
Challenge feedback
About this output

A prompt while a prediction is awaited, then what the result shows.

No unit declared
Challenge score
About this output

100 when the challenge is met, else 0.

No unit declared
Challenge: the value scored
About this output

The value the challenge scores: challenge 1 your prediction's percent from the resonance, challenge 2 the resonance frequency in Hz, challenges 3 and 4 the measured error in percent once met.

No unit declared
Challenge goal
About this output

What the selected challenge asks you to do.

No unit declared
Measured quality factor
About this output

The measured peak frequency over the measured bandwidth: Q read from the sweep.

No unit declared
Measured peak frequency
About this output

The frequency of the highest reading of the sweep (the zoom sweep when it is on), in Hz. When readings tie, the first of them.

Unit Hz
Measured peak amplitude
About this output

The highest reading of the sweep (the zoom sweep when it is on), in V.

Unit V
Measured upper half-power frequency
About this output

Where the wide sweep crosses the half-power level above its best reading, interpolated the same way, in Hz. Blank when no point above the best reading is at or under the level.

Unit Hz
Formula module versions
About this output

The versions of the formula modules this model is built from.

No unit declared
Model version
About this output

The version of this model.

No unit declared
Model Status
About this output

OK when the results are reliable within the model; CHECK with the reason when they need care (no peak across the capacitor or coil, the true peak outside the band, or a tie for the highest reading); NOT VALID with the reason when an input cannot be used.

No unit declared
Measured lower half-power frequency
About this output

Where the wide sweep crosses the half-power level below its best reading, by straight-line interpolation of the squared readings between the two points either side, in Hz. Blank when no point below the best reading is at or under the level.

Unit Hz
Measured amplitude at the marker
About this output

The measured amplitude at the marker frequency, in V.

Unit V
Half-power level
About this output

The half-power level for the chart's dashed line: the highest reading divided by the square root of 2, in V.

Unit V
True upper half-power frequency
About this output

The true frequency above the peak where the amplitude falls to the peak divided by the square root of 2, in Hz. Blank when it does not exist.

Unit Hz
Current amplitude at the marker
About this output

The current amplitude at the marker frequency, in mA: the loop current for the series loop, the source current for the tank.

Unit mA
Measured half-power bandwidth
About this output

The measured upper minus the measured lower half-power frequency, in Hz. Blank unless both crossings were found.

Unit Hz
Measured phase at the marker
About this output

The measured voltage's phase at the marker frequency, in degrees, relative to the source voltage (series loop) or the source current (tank).

Unit degrees
Marker frequency used
About this output

The marker frequency the results use, in Hz.

Unit Hz
This page is provided by LogicCommons for informational purposes only. Results are analysis outputs computed from the inputs you supply and are not professional advice. Verify all inputs and results independently.

LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.

Methodology

Purpose and model boundary

This lab measures the resonance of a resistor R, a coil L and a capacitor C driven by a sine source, either as a series loop (a sine voltage source, measured across the resistor, the capacitor or the coil) or as a parallel tank (a sine current source, measured as the tank's voltage). It measures the way an instrument does: with a bounded sweep of 11, 21, 41 or 81 frequencies between two band edges, spaced by even ratios or even steps. The model reads the circuit only at those frequencies and reports the peak and the half-power bandwidth as measured from the readings, beside the exact resonance frequency, quality factor, peak, half-power points and bandwidth in closed form. An optional zoom sweep and a three-point parabola refine the measured peak. The model also returns a 201-point exact curve, the energy stored and lost at resonance, and the scope traces and head-to-tail phasors at a marker frequency. Five scored challenges go with it.

It is a lab for learning how a bounded frequency sweep measures a resonance: why the placement of the points decides how close the highest reading comes to the true peak, why a bandwidth can be measured only when the points cover both half-power points, how the parts set where the peak sits and how wide it is, and why the voltage across the capacitor or the coil peaks away from resonance. It is not a circuit design or test method. The parts are ideal: real coils and capacitors have tolerances, resistance and stray capacitance, and real instruments load the circuit, none of which the lab models.

The model is the calculation authority. The page sends the values you set to the model and draws only what it returns: the readings, the half-power line and crossings, the exact curve and peak, the scope traces and the phasor arrows all come from the model's own tables. The page computes no frequency, amplitude, crossing or bandwidth itself.

Inputs and units

Inductance is in henries (H), capacitance in farads (F), resistance in ohms (Ω), frequency in hertz (Hz), voltage in volts (V), phase in degrees and energy in microjoules (µJ). The source current is entered in amperes (A); currents in the results are in milliamperes (mA).

Input Meaning and unit
Circuit Series loop (default): a sine voltage source driving the three parts in a ring. Parallel tank: a sine current source feeding them side by side.
Probe across Resistor (default), Capacitor or Coil: where the probe is clipped in the series loop. Across the resistor it reads the current's shape; the tank is always measured as its voltage.
Coil (inductance) L, from 0.1 mH to 1 H (default 10 mH).
Capacitor (capacitance) C, from 1 nF to 1,000 µF (default 1 µF).
Resistor (resistance) R, from 0.1 Ω to 10 kΩ (default 10 Ω). In the series loop a larger R lowers Q and widens the peak; in the tank it raises Q.
Source voltage amplitude V₀, the series loop's source, from 0.1 V to 10 V (default 1 V).
Source current amplitude I₀, the tank's source, from 0.1 mA to 100 mA, entered as 0.0001 to 0.1 A (default 0.001 A).
Sweep start and sweep end The band's edges, each from 10 Hz to 1 MHz, the end above the start (defaults 100 Hz and 10,000 Hz).
Sweep points 11, 21, 41 or 81 points (default 81), the first and last on the band edges.
Sweep spacing Logarithmic (default, even ratios) or Linear (even steps).
Zoom sweep Off (default) or On: a second sweep of the same number of points between the readings either side of the best one.
Marker frequency The frequency the scope and the phasors show, from 10 Hz to 1 MHz (default 1,000 Hz).
Challenge number 0 for free exploration, or 1 to 5 to load a challenge.
Your prediction: the resonance frequency Blank, or 10 Hz to 1 MHz: your answer for challenge 1. Blank means not yet predicted.
Your prediction: where the capacitor peak sits Not yet chosen (the start), Lower frequency, Same frequency or Higher frequency: your answer for challenge 5.

An input is checked and used only when it applies: the circuit and the three parts except in challenges 3 and 4, where the circuit is hidden; the probe and the source voltage for the series loop; the source current for the tank; each prediction in its own challenge. In its place the model uses the input's default.

Where each input is set:

  • On the canvas only: every input except the challenge number. The coil, the capacitor and the resistor are set by dragging their value badges on the circuit, in 1% steps, and the source by its badge (the voltage in 0.1 V steps, the current in 1% steps). The band edges and the marker are dragged on the frequency axis, from 10 Hz to 1 MHz; the arrow keys step them by 1%, while a drag or an exact entry keeps the 0.01 Hz step. Chips set the points, the spacing (Even ratios or Even steps), the zoom sweep and, from Experiment, the circuit. From Experiment a tap on a part, or its chip, clips the probe there; at Explore the probe stays across the resistor. The challenge 1 prediction is a dashed line on the frequency axis and the challenge 5 prediction a row of three chips, each shown only in its challenge.
  • In the input panel: the challenge picker only.

Governing relationships

Resonance and the quality factor. The coil's and the capacitor's reactances cancel at the natural resonance frequency f₀ = 1 / (2π·√(L·C)). The quality factor is Q = √(L/C) / R for the series loop and Q = R·√(C/L) for the tank. A high Q gives a tall, narrow peak.

The response at a frequency. With u = f/f₀, the model writes the detuning as D = (u - 1)·(u + 1)/u, which equals u - 1/u but avoids subtracting two nearly equal reactances near resonance. With g = 1/√(1 + (Q·D)²), the amplitude of the steady sine response is V₀·g across the resistor, V₀·g·Q/u across the capacitor, V₀·g·Q·u across the coil and I₀·R·g for the tank. The phase is arctan(-Q·D) in degrees, plus 0 across the resistor and for the tank, -90 across the capacitor and +90 across the coil, against the source voltage (series loop) or the source current (tank). The same form gives every reading, every point of the exact curve and the marker values.

The exact peak. Across the resistor and for the tank the peak sits at f₀, with height V₀ (or I₀·R). Across the capacitor or the coil a peak exists only when 2·Q² - 1 is positive, that is for Q above about 0.707. The capacitor's voltage then peaks below resonance, at f₀·√(1 - 1/(2·Q²)), and the coil's above it, at f₀/√(1 - 1/(2·Q²)), both with height V₀·Q/√(1 - 1/(4·Q²)). The peak-shift direction is Same frequency across the resistor and for the tank, Lower frequency across the capacitor and Higher frequency across the coil.

The exact half-power points. A half-power point is where the amplitude falls to the peak divided by √2. Across the resistor and for the tank they solve u - 1/u = ±1/Q: u₂ = (1/Q + √(1/Q² + 4))/2 and u₁ = 1/u₂, so the bandwidth is exactly f₀/Q, which for the series loop is R/(2π·L). Across the capacitor, with y = u², the condition is y² + (1/Q² - 2)·y + c = 0, with c = 1 - 2/Q² + 1/(2·Q⁴). The model takes the larger root y₊ = (2 - 1/Q² + √(4·Q² - 1)/Q²)/2 directly and the smaller as y₋ = c/y₊, so neither is found by subtracting nearly equal numbers. The capacitor's points are f₀·√y₋ and f₀·√y₊; the coil's are f₀/√y₊ and f₀/√y₋. The lower capacitor point (and the upper coil point) exists only when c is positive; otherwise the curve never falls to half power on that side, and the exact bandwidth is blank.

Energy at resonance. For the series loop, with the current amplitude I = V₀/R, the stored energy is ½·L·I² and the energy the resistor turns into heat in one cycle is ½·I²·R/f₀. For the tank, with V = I₀·R, they are ½·C·V² and ½·V²/(R·f₀). Two pi times the stored energy over the energy lost per cycle equals the circuit's Q.

The sweep. With N points from f_lo to f_hi, row k (k = 0 to N - 1) reads f_lo·(f_hi/f_lo)^(k/(N - 1)) with even ratios, or f_lo + (f_hi - f_lo)·k/(N - 1) with even steps; the first and last rows sit exactly on the band edges. The best reading is the largest amplitude; readings within one part in 10¹² of it count as tied, and the first of them is the measured peak.

The zoom sweep. When it is on, a second sweep of the same N points runs with even steps between the wide sweep's readings either side of its best one (a best reading at an end of the band uses itself as that end). The active sweep, whose best reading is the measured peak, is the zoom sweep when it is on and the wide sweep otherwise. The points used are N, or 2·N with the zoom.

The half-power crossings. The level comes from the active sweep's highest reading M: S = M²/2 on the squared readings, drawn as M/√2. The crossings are found on the wide sweep only, by one rule on both sides of its best reading: scanning away from it, the first reading whose square is at or below S (q) and the reading before it (p) bracket the crossing, interpolated linearly in the squared readings s: f = f_p + (f_q - f_p)·(s_p - S)/(s_p - s_q). No such reading on a side means that point lies outside the sweep; if the wide sweep's best reading is itself at or below the level (only the zoom's higher peak can cause this), neither crossing exists. The measured bandwidth is the upper crossing minus the lower when both exist, and the measured Q is the measured peak frequency over it.

The three-point parabola. A parabola through the active sweep's best reading and its two neighbours, with x = ln f and y the amplitude, gives the frequency of its vertex. It is blank when the best reading is the first or last of the sweep, or when the three readings are too flat to define a vertex (the vertex's denominator no larger than 1×10⁻⁹ of the sum of the sizes of its two terms). No challenge scores it.

The exact curve. The 201 points span the band, closer together near the true peak (or near f₀ when there is no peak), with that centre held inside the band. Their spacing in ln f is stretched by a hyperbolic sine of strength max(1, ln(1 + 20·Q)), so even at a Q of 200 on a band of five decades about ten points fall across the bandwidth. When the true peak lies inside the band, the middle point is the peak itself.

The scope and the phasors. At the marker frequency the scope covers two periods in 65 frames, 1/32 of a period apart: the source voltage (series loop), the measured voltage, and the current in mA (the loop current, or the tank's source current). The phasor diagram draws the resistor, coil and capacitor arrows head to tail (voltages for the series loop, currents in mA for the tank), ending at the tip of the source arrow.

Calculation sequence

  1. Check the inputs that apply, in the order of the list under Errors and warnings, on the values entered.
  2. In a challenge, replace the inputs the challenge fixes with its own values; challenges 3 and 4 take their hidden circuit from the challenge alone. An input that does not apply takes its default.
  3. Compute f₀, Q, the exact peak, half-power points and bandwidth, the peak-shift direction and the energies in closed form; refuse a Q above 200.
  4. Read the wide sweep and find its best reading; with the zoom on, read the zoom sweep around it.
  5. Read the measured peak from the active sweep, set the half-power level, find the crossings on the wide sweep, and compute the measured bandwidth and Q, the bandwidth note, the percent errors and the parabola.
  6. Compute the exact curve, the scope frames and the phasors at the marker.
  7. Set the status and, in a challenge, score it and hold back what the challenge keeps back.

Outputs and interpretation

  • Measured peak frequency (Hz) and measured peak amplitude (V): the highest reading of the active sweep, the first of tied readings.
  • Measured lower and upper half-power frequencies and measured bandwidth (Hz), and the bandwidth note: Measured, Lower half-power point outside the sweep, Upper half-power point outside the sweep, Both half-power points outside the sweep, or No reading of the wide sweep reaches the half-power level.
  • Points used: the frequencies read in this run, doubled with the zoom sweep.
  • Natural resonance frequency f₀ (Hz) and quality factor Q.
  • Exact peak frequency (Hz) and amplitude (V), blank when there is no peak; exact lower and upper half-power frequencies and exact bandwidth (Hz), each blank when it does not exist.
  • Peak reading (% of the true peak), and the peak frequency error and bandwidth error (%, signed), the measured values against the exact ones.
  • Peak-shift direction: Lower frequency, Same frequency or Higher frequency.
  • Parabola peak frequency (Hz) and its error (%, signed); the measured quality factor.
  • Stored energy and energy lost per cycle at resonance (µJ), and the quality factor from energy.
  • Marker amplitude (V), marker phase (degrees) and marker current (mA).
  • Settings used: the values in effect (a challenge may fix them); the parts, circuit, probe and source are blank for a hidden circuit or an input that does not apply. Also the model and module versions.
  • Tables: the wide and zoom sweeps (81 rows each: frequency, amplitude, phase, 1 above the half-power level, 1 on the best reading; rows past the point count blank, the zoom table blank with the zoom off), the exact curve (201 rows), the scope (65 frames) and the four phasor arrows.

Reading the canvas: the overview axis, 10 Hz to 1 MHz on a logarithmic scale, holds the shaded band, the marker line and the readings as small dots. The detail chart spans the band, logarithmic or even to match the spacing, up to 1.15 times the largest amplitude shown; the readings are rings, filled above the half-power level, the best one ringed, the zoom readings filled, and a dashed line marks the half-power level. From Experiment the measured crossings appear as ticks and the zoom readings and phasor diagram are drawn; at Advanced the exact curve and peak point are added. The scope's play head runs over the 65 frames. In challenges 3 and 4 the parts are drawn faint under a rectangle labelled Hidden circuit.

What to take from the lab: a sweep sees the circuit only at its points, so a coarse sweep can read well below the true peak, and a narrow band or a zoom sweep around the best reading pins it down. To measure a bandwidth the band must cover both points where the reading falls to about 71% of the peak, with points close together there. The coil and the capacitor set where the peak sits; the resistor and the coil set how wide it is. The current peaks at resonance, but the capacitor's voltage peaks below it and the coil's above it, further the lower Q is. Q can be read from the parts, from the measured sweep and from the energy; the first and the last agree exactly.

Challenges

Each challenge fixes its own circuit and sweep and leaves only some inputs to you. The model scores each one MET (100) or NOT MET (0) and gives a one-line hint while it is not met. Challenges 1 and 2 are listed from Explore, 3 to 5 from Experiment.

  1. Predict the resonance. The coil is 10 mH and the capacitor 1 µF: predict the frequency at which the circuit resonates by placing the dashed line on the frequency axis. The value scored is your prediction's difference from f₀, in percent. Met when it is within 3% of f₀.
  2. Tune the receiver. Set the coil, the capacitor and the resistor so the circuit resonates at 1,000 Hz with a bandwidth of 100 Hz. The value scored is f₀. Met when f₀ is within 10 Hz of 1,000 Hz and the exact bandwidth within 5 Hz of 100 Hz.
  3. Find the hidden peak on a budget. The parts are hidden in the box. Using at most 42 sweep points in one run (the zoom sweep doubles the count), measure the peak frequency within 0.5% of the true one. Met when the points used are at most 42 and the peak frequency error is within 0.5%.
  4. Measure the bandwidth. Another hidden circuit: measure its half-power bandwidth within 5% using at most 82 sweep points in one run. Met when the points used are at most 82, the measured bandwidth exists and its error is within 5%.
  5. Which way does the peak move? The probe now measures the voltage across the capacitor. Predict where its peak sits compared with the peak of the current. Met when your choice matches the model's peak-shift direction.

Challenges 1 and 5 hold back the answer until you predict. While the challenge 1 prediction is blank, f₀, Q, every exact and measured result, the energies, the marker values and every table are blank, and the challenge reads NOT MET with the prompt to predict first; the status, the points used, the settings used and the challenge texts stay, and the marker is locked, since the scope would let you scan for the peak. While the challenge 5 choice reads Not yet chosen, the same results are held back, except that f₀, Q and the energies stay as context. Once you predict or choose, every result appears and the challenge is scored, met or not.

Challenges 3 and 4 hold back the answer until they are met: f₀, Q, every exact value, the peak reading, the percent errors, the energies, the marker values, the exact curve, the scope, the phasors and the value scored stay blank. The readings, the measured peak and half-power values, the bandwidth note, the points used, the peak-shift direction, the parabola's frequency and the measured Q stay: the readings are the instrument the challenge asks you to use. The hidden parts come from the challenge alone; the page's part values are not used. Challenge 2 holds nothing back: f₀, Q and the exact bandwidth are the tools for tuning.

Validation and status logic

The status reads the first match in the list under Errors and warnings. The input checks read the values you entered, and only for the inputs that apply. The quality-factor limit and the CHECK messages read the values in effect after a challenge has fixed its own, and the CHECK messages apply inside challenges too. An invalid challenge number reads No challenge selected with no challenge texts; any other NOT VALID message in a selected challenge reads NOT MET with that challenge's goal and hint.

Assumptions and limitations

  • Ideal parts, with no coil resistance, stray capacitance or tolerance, and a probe that does not load the circuit. Every reading is the steady sine response at its frequency, with no noise.
  • The parts within their ranges, frequencies from 10 Hz to 1 MHz, and Q at most 200: a narrower peak would be finer than the finest sweep can show.
  • The measured values come from the readings only, with no curve fitting except the three-point parabola. A sweep has at most 81 points, and the zoom sweep the same count again.
  • The half-power crossings are interpolated linearly in the squared readings between two neighbouring readings, on the wide sweep only, even with the zoom on.
  • Readings within one part in 10¹² of the highest count as tied; the first of them is the measured peak.
  • A value within about 1×10⁻⁹ (relative) of a threshold, such as the Q limit of 200, the existence of a capacitor or coil peak or of the lower capacitor (upper coil) half-power point, or a band edge against the true peak, may fall either side of it.

Restrictions and non-computing states

Under NOT VALID every result, every table, the points used and the settings used are blank, except the model and module versions, the challenge result (No challenge selected, or NOT MET with a challenge selected), a score of 0, and the goal and hint of a selected challenge.

When the voltage across the capacitor or the coil has no peak (Q at or below about 0.707), the exact peak, the exact half-power points and bandwidth, and the peak reading and errors that depend on them are blank; the readings and the measured values are still returned.

In challenges 1, 3, 4 and 5 the results listed under Challenges are held back until the challenge allows them.

Errors and warnings

The status messages, first match wins:

  • NOT VALID: choose a series loop or a parallel tank from the list
  • NOT VALID: choose where the probe is clipped from the list: series loop only.
  • NOT VALID: the coil must be from 0.1 mH to 1 H
  • NOT VALID: the capacitor must be from 1 nF to 1,000 µF
  • NOT VALID: the resistor must be from 0.1 Ω to 10 kΩ
  • NOT VALID: the source voltage must be from 0.1 V to 10 V: series loop only.
  • NOT VALID: the source current must be from 0.1 mA to 100 mA: parallel tank only.
  • NOT VALID: each end of the sweep must be from 10 Hz to 1 MHz
  • NOT VALID: the end of the sweep must be above its start
  • NOT VALID: choose the number of sweep points from the list
  • NOT VALID: choose the sweep spacing from the list
  • NOT VALID: choose whether the zoom sweep is on from the list
  • NOT VALID: the marker frequency must be from 10 Hz to 1 MHz
  • NOT VALID: the challenge number must be a whole number from 0 to 5
  • NOT VALID: the resonance prediction must be blank or a frequency from 10 Hz to 1 MHz: challenge 1 only.
  • NOT VALID: choose your prediction from the list: challenge 5 only.
  • NOT VALID: this circuit's quality factor is above 200, outside this lab's range: its peak would be narrower than the finest sweep can show; change the resistor
  • CHECK: with Q at or below 0.707 the voltage across the capacitor has no peak; it falls steadily as the frequency rises, so the exact peak and half-power results are blank
  • CHECK: with Q at or below 0.707 the voltage across the coil has no peak; it rises steadily toward the source voltage as the frequency rises, so the exact peak and half-power results are blank
  • CHECK: the true peak lies outside the sweep band, so the highest reading sits at the edge of the band and is not the peak; move the band to include it
  • CHECK: two sweep points tie for the highest reading; the first of them is reported as the measured peak: on the active sweep.
  • OK

The page refuses a list choice that is not on its list, and a number outside its range, before the model runs.

References

This laboratory is an educational model of resonance in an ideal series RLC loop driven by a sine voltage source and measured across the resistor, the capacitor or the coil, or in an ideal parallel RLC tank fed by a sine current source. It computes the exact resonance frequency 1/(2 pi sqrt(LC)), the quality factor, the peak, the half-power points and the bandwidth in closed form. Beside them it shows what a bounded sweep of 11 to 81 logarithmic or linear frequencies measures: the circuit is read only at the sweep's points, the measured peak is the first of the highest readings, and each half-power crossing is interpolated between the two readings that bracket it. An optional zoom sweep around the best reading and a three-point parabola refine the measured peak.

Sources and further reading

  • Series and parallel resonance, the quality factor and the half-power bandwidth: C. K. Alexander and M. N. O. Sadiku, Fundamentals of Electric Circuits, 7th edition, 2026 release, McGraw Hill, chapter 14, Frequency Response. McGraw Hill
  • Frequency response and resonance: W. H. Hayt, J. E. Kemmerly, J. D. Phillips and S. M. Durbin, Engineering Circuit Analysis, 10th edition, McGraw Hill, 2024, chapter 15, Frequency Response.
  • The resonant frequency, the quality factor and the bandwidth of a series RLC circuit, at an introductory level: S. J. Ling, J. Sanny and W. Moebs, University Physics Volume 2, OpenStax, 2016, section 15.5, Resonance in an AC Circuit. OpenStax

No table or text from any of these publications is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.

This laboratory is for learning. Its results hold only within its stated ranges; real coils and capacitors have tolerances, resistance and stray capacitance, and real instruments load the circuit, none of which it models.

Results are informational and not professional advice. See our Terms of Use. Powered by SpreadsheetWeb · About · Privacy · Terms