5.2.12. Active Analog Filters¶
In a previous section we already have shown a low pass filter build from passive components. We repeat the passive circuit below.
The advantage of such a passive speaker is that it can handle a lot of power (100-200 Watt speaker drivers are not uncommon). A disadvantage is that the speaker parameters (the speaker impedance in this case) are important in the transfer function. Also passive elements that are capable of handling a lot of power are expensive.
In the design of active filters most often capacitors are used, so let’s first show a passive filter using a capacitor. First we show the filter without the load.
This is a simple voltage divider but with a complex impedance \(Z_\text{capacitor}=1/(j\w C)\). We thus have
That is the frequency response of this filter is:
and plotted in the figure below.
Show code for figure
1import numpy as np
2import matplotlib.pyplot as plt
3
4plt.clf()
5w = np.logspace(-3, 2)
6Hw = 1 / (1 + 1j * w)
7fig, (axreal, aximag) = plt.subplots(nrows=2, sharex=True);
8axreal.plot(w, np.abs(Hw) );
9axreal.set_xscale('log')
10axreal.set_yscale('log')
11axreal.set_xlabel('$\omega$');
12axreal.set_ylabel(r'$|H(\omega)|$');
13
14aximag.plot(w, np.angle(Hw));
15aximag.set_xscale('log')
16aximag.set_xlabel('$\omega$');
17aximag.set_ylabel(r'$\angle H(\omega)$');
18plt.savefig('source/figures/lowpassfreqresp.png')
Comparing this with the low-pass filter from a previous section we see that this is indeed the transfer function of a low-pass filter but know with cut-off frequency \(\w_c = 1/(RC)\). But in case we would have low impedance speaker at the output (speakers are most often in the range from 4 to 16 Ohm’s) the speaker impedance will greatly influence the transfer function. A simple unity gain opamp circuit (with a very high input impedance) will act as a buffer and will make the transferfunction independent of the load (i.e. the circuit at the output).
For the circuit above we still have that \(u_o=u_i\) but for this circuit this is (almost) independent of the load. The unity gain amplifier in the circuit above can be replaced with a non-inverting amplifier as sketched in the figure below.
The frequency response of this filter is
The proof is left as an exercise for the reader in this chapter.
Finally we give an OpAmp circuit that is used a lot in analog signal processing: the Sallen-Key topology.
The transfer function for this filter is:
Depending on the types of impedance (complex or not) different frequency responses can be realized. A second order unity gain high-pass filter can be realized with the filter shown below.
The resulting filter is a second order high-pass filter. The frequency response of such a filter is determined by two parameters, its cut-off frequency and its \(Q\)-factor (see the chapter on filters). From the figure of the filter circuit it’s clear that we have 4 parameters (2 capacitances and 2 resistances). The choice for the values of this redundant set of parameters (redundant as far as its frequency response is concerned) is up to electrical engineers (see Wikipedia or the book The Art of Electronics by Horowitz and Hill, the bible for classic electronic engineers).
The transfer function of the unity gain high pass filter in the s-domain (see the chapter on the s-domain):
where