jupytext | kernelspec | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
+++ {"slideshow": {"slide_type": "slide"}}
(ft4)=
+++ {"slideshow": {"slide_type": "skip"}}
An annotatable worksheet for this presentation is available as {ref}ws9
.
-
The source code for this page is fourier_transform/4/ft4.md.
-
You can view the notes for this presentation as a webpage ({ref}
ft4
). -
This page is downloadable as a PDF file.
+++ {"slideshow": {"slide_type": "subslide"}}
This section is Based on the section Filtering from Chapter 5 of Benoit Boulet, Fundamentals of Signals and Systems{cite}boulet
from the Recommended Reading List.
This material is an introduction to analogue filters. You will find much more in-depth coverage on Pages 11-1—11-48 of {cite}karris
.
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "fragment"}}
- Frequency Selective Filters
+++ {"slideshow": {"slide_type": "fragment"}}
- Ideal low-pass filter
+++ {"slideshow": {"slide_type": "fragment"}}
- Butterworth low-pass filter
+++ {"slideshow": {"slide_type": "subslide"}}
- High-pass filter
+++ {"slideshow": {"slide_type": "fragment"}}
- Bandpass filter
+++ {"slideshow": {"slide_type": "slide"}}
- Filter design is an important application of the Fourier transform
- Filtering is a rich topic often taught in graduate courses so we give only an introduction.
- Our introduction will illustrate the usefulness of the frequency domain viewpoint.
- We will explore how filters can shape the spectrum of a signal.
Other applications of the Fourier transform are sampling theory (introduced next week) and modulation.
+++ {"slideshow": {"slide_type": "slide"}}
An ideal frequency-selective filter is a system that let's the frequency components of a signal through undistorted while frequency components at other frequency are completely cut off.
+++ {"slideshow": {"slide_type": "subslide"}}
- The range of frequencies which are let through belong to the pass Band
- The range of frequencies which are cut-off by the filter are called the stopband
- A typical scenario where filtering is needed is when noise
$n(t)$ is added to a signal$x(t)$ but that signal has most of its energy outside the bandwidth of a signal.
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "subslide"}}
See the video and script on Canvas Week 6.
+++ {"slideshow": {"slide_type": "slide"}}
(ft4:ideal_lp_filter)=
An ideal low pass filter cuts-off frequencies higher than its cut-off frequency,
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "fragment"}}
+++ {"slideshow": {"slide_type": "subslide"}}
The output of an LTI system with impulse response
subject to an input signal
is given by
+++ {"slideshow": {"slide_type": "subslide"}}
This is the step response:
(reproduced from {cite}boulet
Fig. 5.23 p. 205)
Ripples in the impulse resonse would be undesireable, and because the impulse response is non-causal it cannot actually be implemented.
+++ {"slideshow": {"slide_type": "slide"}}
N-th Order Butterworth Filter
+++ {"slideshow": {"slide_type": "subslide"}}
Remarks
-
DC gain is
$$|H_B(j0)|=1$$ -
Attenuation at the cut-off frequency is
$$|H_B(j\omega_c)|=1/\sqrt{2}$$ for any
$N$
More about the Butterworth filter: Wikipedia Article
+++ {"slideshow": {"slide_type": "slide"}}
The second-order butterworth Filter is defined by is Characteristic Equation (CE):
Calculate the roots of
+++ {"slideshow": {"slide_type": "notes"}}
Note: This has the same characteristic as a control system with damping ratio
+++ {"slideshow": {"slide_type": "slide"}}
Derive the differential equation relating the input
+++ {"slideshow": {"slide_type": "slide"}}
Determine the frequency response
+++ {"slideshow": {"slide_type": "subslide"}}
---
slideshow:
slide_type: subslide
---
wc = 100;
+++ {"slideshow": {"slide_type": "subslide"}}
Transfer function
---
slideshow:
slide_type: fragment
---
H = tf(wc^2,[1, wc*sqrt(2), wc^2])
+++ {"slideshow": {"slide_type": "subslide"}}
Poles of
---
slideshow:
slide_type: fragment
---
[poles] = pole(H)
Natural frequency
---
slideshow:
slide_type: subslide
---
[mag,phase] = damp(H)
Phase of the poles
phase = angle(poles)*180/pi % degrees
+++ {"slideshow": {"slide_type": "subslide"}}
Magnitude frequency response
---
slideshow:
slide_type: subslide
---
w = -400:400;
mHlp = 1./(sqrt(1 + (w./wc).^4));
plot(w,mHlp)
grid
ylabel('|H_B(j\omega)|')
title('Magnitude Frequency Response for 2nd-Order LP Butterworth Filter (\omega_c = 100 rad/s)')
xlabel('Radian Frequency \omega [rad/s]')
text(100,0.1,'\omega_c')
text(-100,0.1,'-\omega_c')
hold on
plot([-400,-100,-100,100,100,400],[0,0,1,1,0,0],'r:')
hold off
+++ {"slideshow": {"slide_type": "subslide"}}
Bode plot
---
slideshow:
slide_type: subslide
---
bode(H)
grid
title('Bode-plot of Butterworth 2nd-Order Butterworth Low Pass Filter')
+++ {"slideshow": {"slide_type": "notes"}}
Note that the attentuation of the filter is flat at 0 dB in the pass-band at frequencies below the cut-off frequency
In this case,
The phase is
+++ {"slideshow": {"slide_type": "slide"}}
Determine the impulse and step response of a butterworth low-pass filter.
You will find this Fourier transform pair useful:
+++ {"slideshow": {"slide_type": "subslide"}}
Impulse response
---
slideshow:
slide_type: subslide
---
impulse(H,0.1)
grid
title('Impulse Response of 2nd-Order Butterworth Low Pass Filter')
+++ {"slideshow": {"slide_type": "subslide"}}
Step response
---
slideshow:
slide_type: subslide
---
step(H,0.1)
title('Step Response of Butterworth 2nd-Order Butterworth Low Pass Filter')
grid
text(0.008,1,'s_B(t) for \omega_c = 100 rad/s')
+++ {"slideshow": {"slide_type": "slide"}}
An ideal highpass filter cuts-off frequencies lower than its cutoff frequency,
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "slide"}}
Frequency response
Impulse response
+++ {"slideshow": {"slide_type": "slide"}}
Determine the frequency response of a 2nd-order butterworth highpass filter
+++ {"slideshow": {"slide_type": "subslide"}}
Magnitude frequency response
---
slideshow:
slide_type: subslide
---
w = -400:400;
plot(w,1-mHlp)
grid
ylabel('|H_B(j\omega)|')
title('Magnitude Frequency Response for 2nd-Order HP Butterworth Filter (\omega_c = 100 rad/s)')
xlabel('Radian Frequency \omega [rad/s]')
text(100,0.9,'\omega_c')
text(-100,0.9,'-\omega_c')
hold on
plot([-400,-100,-100,100,100,400],[0,0,1,1,0,0],'r:')
hold off
+++ {"slideshow": {"slide_type": "subslide"}}
High-pass filter
---
slideshow:
slide_type: subslide
---
Hhp = 1 - H
bode(Hhp)
grid
title('Bode-plot of Butterworth 2nd-Order Butterworth High Pass Filter')
+++ {"slideshow": {"slide_type": "slide"}}
An ideal bandpass filter cuts-off frequencies lower than its first cutoff frequency
+++ {"slideshow": {"slide_type": "subslide"}}
+++ {"slideshow": {"slide_type": "subslide"}}
A bandpass filter can be obtained by multiplying the frequency responses of a lowpass filter by a highpass filter.
+++ {"slideshow": {"slide_type": "fragment"}}
+++ {"slideshow": {"slide_type": "fragment"}}
- The highpass filter should have cut-off frequency of
$\omega_{c1}$
+++ {"slideshow": {"slide_type": "fragment"}}
- The lowpass filter should have cut-off frequency of
$\omega_{c2}$
+++ {"slideshow": {"slide_type": "slide"}}
- Frequency-Selective Filters
- Ideal low-pass filter
- Butterworth low-pass filter
- High-pass filter
- Bandpass filter
+++ {"slideshow": {"slide_type": "notes"}}
Solutions to Examples 5-9 are captured as a PenCast in filters.pdf.
To generate all the plots shown in this presentation, you can use butter2_ex.mlx