Ci it II Circuits II EE221

advertisement
Circuits
Ci
it II
EE221
Unit 7
Instructor: Kevin D
D. Donohue
Active Filters, Connections of Filters, and
Midterm Project
Useful Circuits:
Describe the transfer functions of these circuits:
Non-Inverting Op Amp: gain = (1 + Rf / R1)
Inverting Op Amp: gain = (- Rf / R1)
+
-
+
vo
vi
+
vi
+
vo
-
Voltage Follower: gain = 1
+
-
vi
-
-
Rf
R1
Rf
R1
+
vo
-
Cascading Filter Stages: no Loading Effects:
Given two active f
filter
l
circuits with
h transfer
f f
functions Hˆ 1 ( s )
and Hˆ 2 ( s) , their series combination has a transfer function equal
to the product of the individual transfer functions:
Hˆ T ( s )  Hˆ 1 ( s ) Hˆ 2 ( s )
provided that the connection between these circuits does not
significantly alter the output resistance of the first circuit or
the input
p resistance of the second circuit (i.e.
(
no loading
g
effects).
V1o = V2i
VTi = V1i
V2o= VTo
Hˆ 1 ( s)
Ĥ 2 ( s )
H
ˆ
ˆ  Vˆ 

V
V
To
Hˆ T ( s ) 
  1o  2 o   Hˆ 1 ( s ) Hˆ 2 ( s )
VˆTi  Vˆ1i  Vˆ2i 
Homework (1): In Matlab create bode p
plots for a first-order high-pass
g p
filter (with G = 2 and fc = 1 kHz) in series with a second order bandreject filter (with f0 = 5000 Hz, B = 500 Hz, and GDC = G = 1 ).
Other Useful Circuits
The summing amp:
Rf
R1
vi1
The differential amp:
R2
vi2
+
R2
R1
-
+
vo
vi1
R1
-
+
RN
vi2
R2
viN
Rf
Rf
 Rf

vo   vi1 
vi 2   
viN 
R2
RN 
 R1
vo 
R2
vi 2  vi1 
R1
+
vo
-
Adding Outputs of Filter Stages
Ĥ1 ( s)
Given two active f
G
filter
l
circuits with
h transfer
f f
functions H
and Hˆ 2 ( s ) , the TF resulting from their parallel connection is the
sum of the TF (the complex TF values, not simply the
magnitudes) provided that the connection of these circuits
magnitudes),
does not significantly alter the output resistance of the first
circuit or the input resistance of the second circuit (i.e. no
loading effects). If the outputs are connected through a
summing
i amp with
i h gains
i 1 and
d 2 the
h combined
bi d TF become:
b
Hˆ 1 ( s)
VTi
Hˆ 2 ( s )
V1o

  Vˆ 
2
i
io
i 1
V2o
VˆTo   1 Hˆ 1 ( s )VˆTi   2 Hˆ 2 ( s )VˆTi
ˆ
V
Hˆ T ( s )  To   1 Hˆ 1 ( s )   2 Hˆ 2 ( s )
VˆTi
VTo
Adding Outputs of Filter Stages
Homework
H
k ((2):
) In Matlab
l b create Bode
B d plots
l
f
for 2 second
d order
d
bandpass filters (BPF1 with Go = 10dB and fo = 9 kHz, B = 3kHz, and
BPF2 with Go = 7dB and fo = 6 kHz, B = 800Hz) connected in parallel
through a summing amp with a gain of -0.5
0.5 for the output of BPF1 and
a gain of -3.5 for the output of BPF2. For the magnitude plots, plot
them in both dB (typical Bode plot) and linear (without the 20Log10
scaling).
Homework (3): Repeat Problem 2, with different gains for the
summing amp. Change the summer gain for the BPF1 node to -3 and
the gain for the BPF2 node to -0.5.
0 5 Compare he Bode plots with those
in Homework Problem 2.
Homework (4): Compute the threshold of hearing curve for your ear
at the frequency points indicated in the hearing-aid project and scale
it as described in the project (and on the web page) and plot it against
the normal threshold of ear. Describe the environment where you did
the
h hearing
h
i test at (quiet
( i office
ffi using
i speakers,
k
… noisy
i lab
l b with
i h
headphones ….)
Midterm Project



In this project you will design a hearing aid to correct
your "client's" hearing to normal at the threshold of
hear ng.
hearing.
This project will combine your study of the AC circuit
frequency response
response, transfer functions
functions, passive and active
filters, and filter combining to design a filters with a
transfer function magnitude of a specified shape.
The outcomes of this project involve the following
components:




Implementing a "Design Process"
Using a top
top-down
down approach to solve complex designs
Extending knowledge of filter design
Developing plans for efficient/effective teamwork
General Design Process
1.
2.
3.
4.
5.
6.
7.
Develop a set of specifications to formulate a clear and precise
problem statement.
Propose
p
a set of potential
p
solutions at the top-level.
p
Decide on the most feasible or promising design.
Develop solution(s) (build circuit protopypes or create computer
simulations for testing).
Optimize critical parameters of the design(s).
Test design(s) against specifications.
If design performance is not satisfactory, return to steps 2
through 6 (depending on the amount redesign necessary to
achieve satisfactory performance). If design performance is
satisfactory, complete documentation on the design process,
technical description of critical components,
components and performance
analysis.
General Design Process


The proposal report involves completing steps 1 through 3 and
creating a time table for accomplishing steps 4 through 7.
The final documentation should be complete enough for someone
else to clearly compare the designed circuit’s performance with
the criterion in the problem statement, build your circuit, and
verify performance results.
Top-Down Design



The top-down method develops a solution by initially proposing a design in
terms of functional blocks. This first and most general block diagram is
called the top level. Then each functional block in the top level is broken
down into more detailed and specific functional blocks to create the
second level. Once the functional blocks are detailed enough so that a
circuit to perform the function is easily determined, the process is
finished.
E
Example:
l
B ild a h
Build
hearing
i aid
id with
ith th
the f
following
ll i specifications
ifi ti
.....
The necessary functions (convert sound waves to electric signal,
preamplify signal, filter signal, convert amplified and filtered signal back
into sound waves).
) This suggests
gg
the following
g top-level
p
Microphone


Pre Amp
Custom
Filter
Power
Amp
Speaker
Specifications for the function and input-output characteristics must be
developed for each block.
Also note that “top”
p is a relative term.
m. This is a top-level
p
design
g if
fy
your
assignment was the whole hearing aid.
Top-Down Design

At the second design level (relative to the hearing aid as first level)
each of above functional blocks are broken down into finer detail.
For example, assume the transfer function of the filter block is
specified. The top-level design for the filter can be specified as
(parallel approach - something in the specifications may suggest this
combination):
Band-Pass
Filter 1
Band-Pass
Filter 3
Band-Reject
Filter 2
Band-Pass
Filter 4
Summing Amp
where
 The purpose of band
band-pass
pass filter 1 is to help shape the transfer
function in the frequency range .... with a approximate gain of XX
dB, a resonant frequency near XX Hz, and approximate bandwidth
of XX Hz … (Do this type of description for each block at this
l
level).
l)
Time Tables




Once the top-level diagrams for your circuit have been completed,
work can be assigned to determine the actual circuits, connect
them, optimize performance, test against specifications, redesign,
document, and complete the final report.
The most efficient way to assign the work is to have as many
parallel tasks going on as possible. If someone is doing nothing until
some else finishes his or her task,
task the work should be redistributed.
redistributed
Rather than have someone in the group remain inactive for an
extended time, you can at least assign several people to the same
task, or work independently
p
y on the same thing and take the best
result.
Regular group meetings should be scheduled to keep tabs on the
progress, to educate each other on findings, and make adjustments
if necessary (almost always necessary).
necessary)
You should schedule to complete and test the design about a week
before the due date, so the last week can be devoted to minor
modifications (if needed) and completing the final report.
Engineering Notebooks
It is important to develop organized work habits. As tasks become more
complex, it is more difficult to remember results determined along the
way. Write down all details, even documenting a bad approach helps
organize your thinking and improve. This is also a critical record for
establishing patents and getting various types of approval. The notebook
should:
 Verify what you have accomplished and when
 Summarize the important results for future reference
 Record work useful for debugging and completing final
documentation
The notebook should be a regular bound book. Each time you work on the
project individually or as a group, you should enter the date into the
notebook, what y
you did and the results. Thus, all work that you
y do
regarding the project should appear in the notebook in chronological order.
If errors are made, don't tear out the page. Just put a line through it and
correct it in a later entry. Loose pages can be attached to pages in your
notebook if work was done on different paper or printed out from a
notebook,
computer.
Specifications and Problem Statement:



Unlike homework and test problems, design problems are typically
under-specified. This implies there can be many solutions. It
becomes difficult to judge a design in terms of right and wrong, but
instead the judgment is in more vague terms such as bad, good, and
better (best is often difficult to prove even for simple problems).
The given
Th
i
specifications
ifi ti
should
h ld b
be organized
i d att th
the b
beginning
i i of
f th
the
project and stated in such a way that they can be measured when
the final design is tested. Sometimes the specifications are given in
terms
m of
f errors that should
u be m
minimized
m z ((or g
goodness maximized)
m mz )
or bounds on the error that should be satisfied.
The p
problem statement should be as short as possible,
p
while clearly
y
stating all the specified criteria, along with some additional criteria,
if necessary, to limit possibilities or create a useful way of
computing the error.
Order of Events


October 13 – Project assigned. Groups formed, notebook entries
started
October 13 - October 27






Meet as a team, identify tasks and time-table
Identify the design criteria
Come up with your preliminary top-level design for your client
Complete your preliminary report
Project Proposal is due October 27
October 27 – November 22







Validate your top level design
O ti i your ttransfer
Optimize
f f
function
ti with
ith Matlab.
M tl b
Finalize your analyses and validate design approach with an error
analysis based on ideal transfer functions of proposed filters
Implement SPICE model for your optimized top-level design
Realize design
design, use off
off-the-shelf
the shelf components.
components
Present final error and discuss how well design meets specifications.
Final Report due & Engineering notebooks due November 22
Download