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

C4 · Lesson 26 · Butterworth design lab

From an order and a corner to poles, a response and capacitor values

Filter design software takes a specification and returns component values, and the steps in between aren't mysterious. A Butterworth filter's poles sit evenly spaced on a semicircle; the response follows from the poles by multiplying distances (lesson 18); and each pair of poles becomes one second-order active stage whose Q is set by the pair's angle. In this lab you'll write each of those steps in NumPy and end with the capacitor values for a cascade of Sallen-Key stages.

  • A fourth-order Butterworth filter's poles on the s-plane (in units where ωc is the slider's radius): four of them, spaced evenly on a semicircle in the left half-plane, 45° apart.
  • Higher orders put more poles on the same semicircle, so the ones at the ends crowd closer to the jω axis, with higher Q.
  • Each conjugate pair becomes one second-order stage, with Q=12cos⁡θ where θ is the pair's angle from the negative real axis.

Predict

The poles of a fourth-order Butterworth filter come in two conjugate pairs. What Q does the pair nearer the jω axis have?

Name it

The poles

An order-n Butterworth low-pass with corner ωc has its poles at

pk=ωcejπ(2k+n−1)/2nk=1,…,n

evenly spaced on the left half of a circle of radius ωc. Odd orders have one real pole at −ωc.

The response

With unity DC gain,

H(jω)=∏k−pkjω−pk

so in NumPy, start with an array of ones and multiply in one factor per pole. At ωc every Butterworth filter is down exactly 3 dB.

Stages

Pair each pole with its conjugate. A pair at distance ω0 from the origin and angle θ from the negative real axis is a second-order section with

ω0=|p|Q=|p|−2Re(p)=12cos⁡θ

For a Butterworth filter every ω0=ωc. With the unity-gain, equal-resistor Sallen-Key stage (lesson 13), Q=12C1/C2 and ω0=1RC1C2, so

C1=2Qω0RC2=12Qω0R

A real pole, for odd orders, is a plain RC section.

Worked example

Find the stage capacitors for a fourth-order Butterworth low-pass at 1 kHz with R = 10 kΩ.

Show the solution
  1. Scale factor. ωc=6283rad/sωcR=6.283×107
  2. Stage with Q = 0.541. C1=1.0826.283×107=17.2nFC2=14.7nF
  3. Stage with Q = 1.307. C1=41.6nFC2=6.09nF

Answer 17.2 nF and 14.7 nF for the Q = 0.541 stage, and 41.6 nF and 6.09 nF for the Q = 1.307 stage.

Worked example

How far down is that fourth-order filter at 10 kHz?

Show the solution
  1. Attenuation at 10 kHz. A=10log10⁡(1+108)=80dB
  2. Check with the pole product. The pole product gives exactly that too: 80 dB per decade, a decade above the corner.

Answer 80 dB down.

Check

At what angle (measured from the positive real axis) is pole k = 1 of an order-4 Butterworth filter?

Check

What is the highest stage Q in an order-4 Butterworth filter?

Check

An equal-resistor unity-gain Sallen-Key stage needs Q = 0.707 at 1 kHz with R = 10 kΩ. What is C1?

Write units the way you normally would: 1.5 nF, 1500 pF and 0.0015 µF are the same answer.

Check

For the same stage (Q = 1.307, 1 kHz, R = 10 kΩ), what is C2?

Write units the way you normally would: 1.5 nF, 1500 pF and 0.0015 µF are the same answer.

Check

Write butter_poles(n, wc) returning the n complex poles of a Butterworth low-pass with corner wc (rad/s), and response(poles, f) returning the complex H at the frequencies f (Hz, an array), with unity DC gain.

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

Check

Write sallen_key(n, fc, R) for even n: return a list of (C1, C2) pairs in farads, one per equal-resistor unity-gain Sallen-Key stage, in order of increasing Q.

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

Explain why

Why can't a fourth-order Butterworth filter be made by cascading two second-order Butterworth stages?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.