S625 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S6 · Lesson 25 · Filter lab

Ladder responses from ABCD matrices, the bandpass transformation and Richards' stub filters, in Python

Lessons 21 to 24 synthesized filters from prototype tables and transformations, each step justified by algebra. This lab checks the whole chain by simulation: it builds the ladder from its element values, multiplies the elements' ABCD matrices and reads the insertion loss, then does the same for the bandpass filter's actual inductors and capacitors and for the Richards stub filter, whose response must equal the prototype's at Richards' frequency variable and repeat every four cutoff frequencies.

  • The curves are a third-order Butterworth stub filter's insertion loss against frequency, 10log10⁡(1+Ω6) with Ω=tan⁡(π4ffc), and its lumped prototype's, 10log10⁡(1+(f/fc)6).
  • Below cutoff the two nearly agree; the stub filter's loss climbs faster and becomes infinite at 2fc, where the stubs are a quarter wave.
  • Beyond 2fc it falls again and passes near 4fc: the spurious passband of every distributed filter.

Predict

A 0.5 dB, N = 3 Chebyshev bandpass filter at 1 GHz with 10% bandwidth in 50 Ω is built from the transformed inductors and capacitors. What loss does it give at 1.1 GHz?

Name it

Simulating a ladder

With 1 Ω terminations and a ladder that starts with a shunt capacitor g1, alternating with series inductors:

  • a shunt element of admittance Y is [[1, 0], [Y, 1]]; a series element of impedance Z is [[1, Z], [0, 1]];
  • the product of all of them, A B C D, gives S21=2A+B/R0+CR0+D for equal terminations R0, and the insertion loss is −20log10⁡|S21|.

Bandpass elements

At center ω0 and fractional bandwidth Δ in R0: a shunt prototype capacitor g becomes a parallel LC with C=gR0ω0Δ, L=ΔR0ω0g; a series inductor g becomes a series LC with L=gR0ω0Δ, C=Δω0gR0.

Stub filters

Richards' filter replaces each shunt capacitor g with an open stub of admittance g (in units of Y0) and each series inductor with a short-circuited stub of impedance g, both λ/8 long at fc. A shunt open stub adds Y=jgtan⁡θ; a series short stub adds Z=jgtan⁡θ, with θ=π4ffc.

Check

Write butter_g(N) and ladder_db(g, w): the insertion loss at normalized frequency w of a ladder with 1 Ω terminations and elements g (shunt C first, alternating), from ABCD matrices.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write bandpass_db(g, f, f0, fbw, R0): the insertion loss of the bandpass filter built from prototype g (shunt first) by the transformation, at frequency f, from its actual L and C values.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write richards_db(g, r): the loss of a Richards stub filter (shunt open stubs of admittance g, series short stubs of impedance g, all λ/8 at cutoff) at r times the cutoff frequency.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why is a bandpass filter's passband geometrically, not arithmetically, centered on its center frequency?