Rs2 VL2C1C3RL–1from scipy import signal as sg2sg.buttord(1, 2, 1, 20, analog=True)3sg.cheb1ord(1, 2, 1, 20, analog=True)4sg.cheby1(3, 1, 1, analog=True, output='zpk')tone intone out
loss > 1 dBloss < 20 dB00.511.522.5300.10.50.8911Ω = f / 1 kHz|H|GAIN |H| AGAINST ΩButterworth N=3Butterworth N=5Chebyshev N=3-2-10-101real part σimag. part Ωs-PLANE (POLES ×)jΩpoles–––circle: Butter.ellipse: Cheby.
Coloured parts: what the current step is about; everything else rests in whiteBlocks: tone generator, Rs, C1, L2, C3, RL, the voltmeter and a Python card with SciPyPills: the tone going in and coming out; the meter reads the output amplitude, |H| voltsPlots: the gain against Ω with the spec's forbidden zones, and the poles in the s-planeA third-order LC ladder realises the prototype. Spec: pass up to 1000 Hz with at most 1 dB loss, cut 2000 Hz and up by at least 20 dB. The ladder values for Chebyshev come from the standard Matthaei, Young and Jones recursion; odd orders work with equal source and load resistors, even orders do not.

The spec

  1. Our job: a low-pass filter. Tones up to 1 kHz must pass, losing at most 1 dB. Tones from 2 kHz up must be cut by at least 20 dB. The shaded zones on the gain plot are forbidden.

Butterworth

Chebyshev

Real parts and code

The working

# step 1/10 · spec

spec (a chosen example)
  passband  0 .. 1000 Hz   loss ≤ 1 dB
  stopband  ≥ 2000 Hz      loss ≥ 20 dB

loss in dB = −20·log10(gain)
  1 dB  -> gain ≥ 0.891
  20 dB -> gain ≤ 0.100

normalised frequency  Ω = f / 1000 Hz
  passband edge Ω = 1, stopband edge Ω = 2

The spec (1 kHz, 1 dB, 2 kHz, 20 dB) and the 1 kΩ resistors are a chosen example. Every gain, pole and part value in the figure is computed from the formulas in this lesson; the test file checks the ladder's response against them. The generator gives 2 V peak. With equal source and load resistors the load can get at most half of it, 1 V, so the meter reads |H| in volts.