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

Low pass and high pass filter calculator (RC, RL, LC)

Pick low pass or high pass and the parts: RC, RL, or an LC ladder as a Pi or a T. For RC and RL, enter any two of the resistor, the capacitor or inductor and the cutoff frequency, and the third follows from fc = 1 / (2πRC) or fc = R / (2πL).

Ladder filters are designed from the cutoff and the line impedance, Butterworth or Chebyshev 0.5 dB, order 2 to 7, from the prototype values of Matthaei, Young and Jones (1964). Part values can stay exact or snap to the nearest E12 or E24 value, and the plot and the −3 dB point are worked out from the values shown, the way the AC analysis does it.

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.

RC filter formulas

  • fc = 1 / (2πRC)
  • C = 1 / (2πRfc)
  • R = 1 / (2πCfc)

RL filter formulas

  • fc = R / (2πL)
  • L = R / (2πfc)
  • R = 2πLfc

LC ladder (Pi or T), prototype values gk

  • Ck = gk / (2πfcZ0)
  • Lk = gkZ0 / (2πfc)

Sources. RC and RL: first-order sections into an open output. Ladders: prototype values of Matthaei, Young and Jones (1964), between a source and a load of the line impedance. The plot and the −3 dB point come from the parts as placed.

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: Low pass / high pass filter.