Source code coming soon. The GitHub repository is private for now and opens to everyone very soon.
BetterSPICE Beta 0.8.1 Join the beta Download soon

Calculators Circuit

LC resonance and Q calculator

Enter any two of the inductance, the capacitance and the resonant frequency, and the third follows from f0 = 1 / (2π√(LC)). The calculator also gives the characteristic impedance Z0 = √(L/C).

Add a resistance to get the Q and the bandwidth. In a series circuit Q = Z0 / R; in a parallel tank the resistance is across the tank and Q = R / Z0. The bandwidth is f0 / Q in both. These are the textbook second-order formulas.

The calculator

The app's own calculator window, built from the BetterSPICE 0.8.1 source. What needs a schematic is greyed out here: placing the circuit, running it, applying values to parts and picking parts from the library. Open it in its own window.

The formulas it uses

These are the formulas the calculator shows, copied from its source code. The results in the window above come from the same code as the app.

Series resonance

  • f0 = 1 / (2π√(LC))
  • Z0 = √L / (√C)
  • Q = Z0 / R
  • BW = f0 / Q

Parallel tank

  • f0 = 1 / (2π√(LC))
  • Z0 = √L / (√C)
  • Q = R / (Z0)
  • BW = f0 / Q

Sources. Second-order resonance: textbook formulas (any circuit theory text, e.g. Hayt and Kemmerly). The plot is the response of the circuit placed by the buttons.

Simple and Advanced

Simple is the main values, one set of results and a plot. Advanced is the full design view: the operating range with its corners, tolerance and temperature, checks with their margin (a green tick, an amber warning or a red cross), the parts to order with the ratings they need, warnings that give the fact, the number and the fix, and plots over the whole range. A value typed in one view is the same in the other.

In the app it also places the circuit and checks it

In the app, the buttons under the result act on your circuit: Place as circuit, Place and run AC analysis. The circuit is drawn with library symbols, wires, a source and probes, placed at a free spot in the view, and the analysis that checks it runs at once. With parts selected, Apply to the selected parts writes the result into them, as one undo step.

The last tab of the Advanced view, Verify in simulation, places the calculator's circuit and runs it, with measurements whose pass limits are the calculator's own numbers. A row the simulator cannot check says so and why. More in the manual: LC resonance and Q.