Welcome back to electronics, this is Dr. Robinson. In this lesson, we are going to look at second-order filter circuits. In the previous lesson, you were introduced to second-order transfer functions. And our objectives, for today's lesson, are to introduce second-order filter circuits, circuits that could be used to implement second-order transfer of functions. And we're going to look at how you design a second-order filter. Here I've drawn the circuit schematic for what is known as a Sallen-Key low-pass filter circuit. Sallen-Key refers to this topology, this interconnection of resistors, capacitors, and this op-amp. Now you can identify this portion of the circuit, as a non inverting op-amp amplifier that you've seen before, where the gain from the non inverting terminal to the output, is equal to 1 plus R4 over R3. Now if you used whatever circuit analysis techniques you preferred to solve for the ratio of V out to V in, in the circuit, you would find that, that ratio has the form of a second-order low-pass transfer function. And one way to arrive at this transfer function, is to use a node analysis, writing node equations here at this node A and this node B. And you also use what you know about ideal op-amps, that the voltage at this terminal, is equal to the voltage at this terminal, because we have negative feedback. And we can solve for the voltage at this terminal using voltage division. V out time R3 over R4 + R3 is this voltage, because there's no current into this terminal. And this voltage is equal to the voltage at node B. Then with a lot of algebra, and some algebraic manipulation, you could put that ratio of V out to V in into this form. And in doing that, you have one, proven that this circuit topology implements a second-order low-pass transfer function. And you've also in the process, determined the design equations, because in your transfer function, the quantity sitting here in this position, would be written in terms of the circuit element component values. So we would have an equation for f naught in terms of the component values. We would also have an equation for Q, in terms of the component values, and they're given by these three expressions, where K is equal to 1 plus R4 over R3, because of this non inverting op-amp. F naught is given by this expression. And Q is given by this expression. So if you wanted to design a filter with the given f naught, K, and Q, you could use these three equations to solve for the component values necessary to implement that transfer function. Now these expressions are reasonably complicated. So what's often done is some assumptions are made, about the parameters in the transfer function, or the component values in the circuit. So here I've listed three special cases, where we make certain assumptions to simplify those equations that we saw in the previous slide. In this case here, I'm calling it special case 1, we have fixed K, the gain at a value of 1. And we're solving for the two capacitors in the circuit. Now an easy way to fix the gain at 1, is to let R3 be equal to infinity and R4 to be equal to 0. In other words, we make R4 a short circuit, and we make R3 an open circuit. So under these assumptions, we get two equations that give us the values of the capacitors, in terms of the other parameters. Q and omega naught, the transfer function parameters, and R1 and R2, the circuit element parameters. And you can further simplify these equations, if you assume that R1 is equal to R2. Now a second case is we again let K be equal to 1. But, we solve for the resistor values, rather than for the capacitor values. And the reason for this, is, in a typical electrical engineering laboratory, filled with bins of resistors, and capacitors, you typically have resistors with tolerances of 5% and capacitors with tolerances of 20%. So it's often easier to choose the capacitor values, capacitor values that you know that you have, and then find the nearest resistor values. So by putting in this from, you can do that. The only restriction here, on this equation is that this quantity, under the square root, must be positive. And I've drawn that condition here. And you can also see that, the way this equation is written R1 and R2 are interchangeable. You solve for one by letting this be a plus sign, you solve for the other by letting this be a minus sign. But in the circuit, you can interchange the values. Special case 3, is where we let the Rs both be equal to each other. And we let the Cs be equal to each other. So R1 = R2 = R, and C1 = C2 = C. We get these two simple equations. So for a given Q, K is determined. Then for a given omega naught, we can pick a capacitor and solve for the resistor, then we can determine R4 and R3, with this equation. Here I have drawn the circuit diagram for what's known as a Sallen-Key highpass filter. You can see the typologys the same, the inner connections. But in this circuit, where we had resistors here, we now have capacitors. And where we had capacitors here, we now have resistors. And again, if you solve for the transfer function, node analysis would again work in this case, you arrive at a transfer function that has the form of a second-order high pass filter. Where K, f naught, and Q are given by these expressions. Here I have simplified the equations of the previous slide, using two special cases. Special case 1, where we fix the gain K at 1 and we let the two capacitors be equal to each other in the circuit, we arrive at these two equations, for R1 and R2. Special Case 2, we let both Rs equal each other, both Cs equal to each other, and we get these simplified equations, where if Q is given, we now have K. Then we can choose an R, knowing omega naught to get C, and then we can find the values of R4 and R3 from this equation. Now these special cases, do simplify the equations. But you're restricted in your circuit implementation. For example, this equation, it's a very simple equation, but once Q is chosen for the filter, K is fixed at the value of three minus one over Q, and that might not be desirable for your application. Here is a Sallen-Key Bandpass filter circuit, the typology is similar, but there's been an additional component added from this node to ground, this capacitor C1. These two values are resistors like they were for the lowpass typology. But here we have mixed a resistor and a capacitor. If you solved for the ratio of V out to V in, you would find that the transfer function has this form, a second-order band pass filter transfer function, where K, f naught, and Q, are given by these three expressions. And to make these expressions somewhat simpler, an additional parameter, K naught has been introduced, where K naught is equal to the gain of the non-inverting op-amp amplifier 1 + R5/R4. I'm just giving you one special case here for the bandpass design, letting all the resistors be equal to each other, equal to a value R and all the capacitors equal each other, and equal to a value C, and you get these simplified design equations. This is the transfer function for a second-order notch or band reject filter. It has the property that its bode magnitude plot ideally Looks like this, where it rejects frequencies in this band, and passes frequencies outside of this band. So two pass bands and a stop band here. You can see that it's denominator is a standard second-order denominator. But the transfer function is formed, by moving both the highest order term, and the lowest order term, to the numerator, and summing them. Now this transfer function, there's no Sallen-Key notch filter topology. But it can be implemented, using what's called a biquad, or a biquadratic circuit. This transfer function, has both a quadratic polynomial in the numerator, and a quadratic polynomial in the denominator. In a biquadratic circuits, transfer function has this form. But rather than introduce a biquad circuit, what I want to do is show you how you can implement this transfer function using the filters that we've looked at earlier in the lesson. This transfer function can actually be thought of as the sum of two separate transfer functions. We have one transfer function here. And we have another transfer function here. So we can write this is equal to K times jf over f naught squared over the denominator plus 1 over the denominator. Now, what type of transfer function is this? And what type of transfer function is this? This would be a second-order high pass. And this would be a second-order low pass transfer function. So, a notch filter transfer function can be obtained, by adding a second-order high pass to a second-order low-pass filter. And you can see that, what if we look at the bode magnitude plots of an ideal high-pass and low-pass filter. So here is an ideal low-pass filter. Here is an ideal high-pass filter. Let's add these two transfer functions together. In this region here, we have one plus zero, is equal to one. And in this region here, we have zero plus zero is equal to zero. So overall the sum of these two bode magnitude plots, give us a bode magnitude plot that looks like this, that of a notch filter. So to form this, we use, or we can use our Sallen-Key low-pass filter, our Sallen-Key highpass filter, and we can apply these both to an op-amp summing circuit to produce the output, where the input, vi, is applied to both the low-pass filter input and the high-pass filter input. This ratio of vo to vi would implement a notch filter transfer function. So, in summary, during this lesson, we introduced, second-order Sallen-Key filter circuits, and the equations that you use to design these circuits. In our next lesson, we will use those equations to design a second-order low pass filter. So thank you and until next time.