0% found this document useful (0 votes)
125 views18 pages

This Homework Is Due On Wednesday, February 26, 2020, at 11:59PM. Self-Grades Are Due On Monday, March 2, 2020, at 11:59PM

This document contains the homework questions and solutions for EECS 16B Spring 2020 HW 4. It involves: 1) Calculating impedances of resistors, capacitors, and inductors in series combinations for different angular frequencies and drawing the corresponding phasor diagrams. 2) Analyzing a low-pass RC filter circuit, deriving its transfer function, and calculating the magnitude and phase of the transfer function for different input frequencies. 3) Expressing the output waveform of the low-pass filter for a given sinusoidal input voltage waveform. 4) Sketching the Bode plot of the magnitude and phase response of the low-pass filter on graph paper.

Uploaded by

Bella Zion
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
125 views18 pages

This Homework Is Due On Wednesday, February 26, 2020, at 11:59PM. Self-Grades Are Due On Monday, March 2, 2020, at 11:59PM

This document contains the homework questions and solutions for EECS 16B Spring 2020 HW 4. It involves: 1) Calculating impedances of resistors, capacitors, and inductors in series combinations for different angular frequencies and drawing the corresponding phasor diagrams. 2) Analyzing a low-pass RC filter circuit, deriving its transfer function, and calculating the magnitude and phase of the transfer function for different input frequencies. 3) Expressing the output waveform of the low-pass filter for a given sinusoidal input voltage waveform. 4) Sketching the Bode plot of the magnitude and phase response of the low-pass filter on graph paper.

Uploaded by

Bella Zion
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

EECS 16B Spring 2020 HW 4

This homework is due on Wednesday, February 26, 2020, at


11:59PM.

Self-grades are due on Monday, March 2, 2020, at 11:59PM.

1 Phasors

a) Consider a resistor (𝑅 = 1.5Ω), a capacitor (𝐶 = 1F), and an inductor


(𝐿 = 1H) connected in series. Give expressions for the impedances
of 𝑍 𝑅 , 𝑍 𝐶 , 𝑍 𝐿 for each of these elements as a function of the angular
frequency 𝜔.

Solution
𝑗
The impedances are as follows: 𝑍 𝑅 = 𝑅 = 1.5, 𝑍 𝐶 = 1
𝑗𝜔𝐶 = 1
𝑗𝜔 = − 𝜔 and
𝐿 = 𝑗𝜔𝐿 = 𝑗𝜔.

b) Draw the individual impedances as “vectors” on the same complex


plane for the case 𝜔 = 12 rad/sec. Also draw the combined impedance
𝑍𝑡𝑜𝑡 𝑎𝑙 of their series combination. Give the magnitude and phase of
𝑍𝑡𝑜𝑡 𝑎𝑙 . A logically sound graphical argument is sufficient justification.

(a) 𝑍 𝑅 (@𝜔 = 0.5) (b) 𝑍 𝐶 (@𝜔 = 0.5) (c) 𝑍 𝐿 (@𝜔 = 0.5) (d) 𝑍𝑡𝑜𝑡𝑎𝑙 (@𝜔 = 0.5)

Figure 1: Impedances at 𝜔 = 0.5.

Solution
Substituting for 𝜔 = 12 in the above answers, we get, 𝑍 𝑅 = 1.5, 𝑍 𝐶 = −2𝑗
and 𝑍 𝐿 = 0.5𝑗. Since the elements are
√ in series, 𝑍𝑡𝑜𝑡𝑎𝑙 = 𝑍 𝐿 + 𝑍 𝐶 + 𝑍 𝑅 =
1.5 − 1.5𝑗. This has magnitude 1.5 2 and phase − 𝜋4 . Following are the
plots:

1
HW 4 @ 2020-02-27 11:12:09-08:00

(a) 𝑍 𝑅 (@𝜔 = 0.5) (b) 𝑍 𝐶 (@𝜔 = 0.5) (c) 𝑍 𝐿 (@𝜔 = 0.5) (d) 𝑍𝑡𝑜𝑡𝑎𝑙 (@𝜔 = 0.5)

Figure 2: Impedances at 𝜔 = 0.5.

c) Draw the individual impedances as “vectors” on the same complex


plane for the case 𝜔 = 1 rad/sec. Also draw the combined impedance
𝑍𝑡𝑜𝑡 𝑎𝑙 of their series combination. Give the magnitude and phase of
𝑍𝑡𝑜𝑡 𝑎𝑙 . A logically sound graphical argument is sufficient justification.

(a) 𝑍 𝑅 (@𝜔 = 1) (b) 𝑍 𝐶 (@𝜔 = 1) (c) 𝑍 𝐿 (@𝜔 = 1) (d) 𝑍𝑡𝑜𝑡𝑎𝑙 (@𝜔 = 1)

Figure 3: Impedances at 𝜔 = 1.

Solution
Following the same method as last time, with 𝜔 = 1, 𝑍 𝑅 = 1.5, 𝑍 𝐶 = −𝑗,
𝑍 𝐿 = 𝑗 and 𝑍𝑡𝑜𝑡𝑎𝑙 = 1.5 Thishas magnitude 1.5 and phase 0.

(a) 𝑍 𝑅 (@𝜔 = 1) (b) 𝑍 𝐶 (@𝜔 = 1) (c) 𝑍 𝐿 (@𝜔 = 1) (d) 𝑍𝑡𝑜𝑡𝑎𝑙 (@𝜔 = 1)

Figure 4: Impedances at 𝜔 = 1.

d) Draw the individual impedances as “vectors” on the same complex


plane for the case 𝜔 = 2 rad/sec. Also draw the combined impedance
𝑍𝑡𝑜𝑡 𝑎𝑙 of their series combination. Give the magnitude and phase of
𝑍𝑡𝑜𝑡 𝑎𝑙 . A logically sound graphical argument is sufficient justification.

2
EECS 16B Spring 2020 HW 4

(a) 𝑍 𝑅 (@𝜔 = 2) (b) 𝑍 𝐶 (@𝜔 = 2) (c) 𝑍 𝐿 (@𝜔 = 2) (d) 𝑍𝑡𝑜𝑡𝑎𝑙 (@𝜔 = 2)

Figure 5: Impedances at 𝜔 = 2.

Solution
Again, following the same method as last time, with 𝜔 = 2, 𝑍 𝑅 = 1.5, √
𝑍 𝐶 = −0.5𝑗, 𝑍 𝐿 = 2𝑗 and 𝑍𝑡𝑜𝑡 𝑎𝑙 = 1.5 + 1.5𝑗. This has magnitude 1.5 2
and phase + 𝜋4 .

(a) 𝑍 𝑅 (@𝜔 = 2) (b) 𝑍 𝐶 (@𝜔 = 2) (c) 𝑍 𝐿 (@𝜔 = 2) (d) 𝑍𝑡𝑜𝑡𝑎𝑙 (@𝜔 = 2)

Figure 6: Impedances at 𝜔 = 2.

e) For the previous series combination of RLC elements, what is the


“natural frequency” 𝜔𝑛 where the series impedance is purely real?

Solution
From our above answers, clearly the natural frequency, 𝜔𝑛 = 1 rad/s .
This is where the imaginary parts of the impedance cancel each other.

2 Low-pass Filter
You have a 1 kΩ resistor and a 1 µF capacitor wired up as a low-pass filter.

a) Draw the filter circuit, labeling the input node, output node, and
ground.

3
HW 4 @ 2020-02-27 11:12:09-08:00

Solution

𝑅
𝑉𝑜𝑢𝑡

𝑉𝑖𝑛 𝐶

Figure 7: A simple RC circuit

b) Write down the transfer function of the filter, 𝐻(𝑗𝜔) that relates the
output voltage phasor to the input voltage phasor. Be sure to use the
given values for the components.

Solution
First, we convert everything into the phasor domain. We have,

𝑍 𝑅 = 𝑅 = 1 × 103 Ω (1)
1 1
𝑍𝐶 = = F (2)
𝑗𝜔𝐶 𝑗𝜔 × 10−6

In phasor domain, we can treat these impedances essentially like we treat


resistors and recognize the voltage divider. Hence,

𝑍𝐶 e
𝑉
e𝑜𝑢𝑡 = 𝑉𝑖𝑛 (3)
𝑍𝐶 + 𝑍𝑅
1
𝑉
e𝑜𝑢𝑡 𝑗𝜔𝐶
= 𝐻(𝜔) = (4)
𝑉
e𝑖𝑛 𝑅+ 1
𝑗𝜔𝐶
1
= (5)
1 + 𝑗𝜔𝑅𝐶
1
= (6)
1 + 𝑗𝜔/ 𝑅𝐶
1

1
= (7)
1 + 𝑗𝜔 × 10−3
(8)

Hence, the corner frequency 𝜔𝐶 = 1


𝑅𝐶 = 1
103 ·10−6
= 103 rad/sec.

c) Write an exact expression for the magnitude of 𝐻(𝑗𝜔 = 𝑗106 ), and give
an approximate numerical answer.

4
EECS 16B Spring 2020 HW 4

Solution
We obtained this expression for the transfer function’s magnitude above:
p
1 + 𝜔2 /𝜔2𝑐
|𝐻(𝜔)| =
1 + 𝜔2 /𝜔 2𝑐

Plugging in for 𝜔 = 106 :


p
6
1 + (106 )2 /(103 )2
|𝐻(𝜔 = 10 )| =
1 + (106 )2 /(103 )2

6 1 + 106
|𝐻(𝜔 = 10 )| =
1 + 106
Approximately:

106 103
6
|𝐻(𝜔 = 10 )| ≈ = = 10−3
106 106
|𝐻(𝜔 = 106 )| ≈ 10−3

d) Write an exact expression for the phase of 𝐻(𝑗𝜔 = 𝑗1), and give an
approximate numerical answer.

Solution
We obtained this expression for the transfer function’s phase above:
𝜔
∠ 𝐻(𝜔) = atan2(− , 1)
𝜔𝑐

Plugging in for 𝜔 = 1:

100
∠ 𝐻(𝜔 = 1) = atan2(− , 1) = tan−1 (−10−3 )
103

By the small angle approximation, this is:

∠ 𝐻(𝜔 = 1) ≈ −10−3 rad

e) Write down an expression for the time-domain output waveform 𝑉𝑜𝑢𝑡 (𝑡)
of this filter if the input voltage is 𝑉(𝑡) = 1 sin(1000𝑡) V. You can assume
that any transients have died out — we are interested in the steady-state
waveform.

5
HW 4 @ 2020-02-27 11:12:09-08:00

Solution

We can find the transfer function at this point:


3 2 1
|𝐻(𝜔 = 10 )| = =√
2 2

∠ 𝐻(𝜔 = 103 ) = atan2(−1, 1) = −45◦

Therefore the output will be:

1
𝑉𝑜𝑢𝑡 (𝑡) = √ sin 1000𝑡 − 45◦

2

f) Use a computer or calculator to help you sketch the Bode plot (both
magnitude and phase) of the filter on the graph paper below.

6
EECS 16B Spring 2020 HW 4

Log-log plot of transfer function magnitude


4
10

103

102

101
|𝐻(𝜔)|

100

10−1

10−2

10−3

10−4 −1
10 100 101 102 103 104 105 106 107
𝜔
Semi-log plot of transfer function phase

80
60
40
20
∠ 𝐻(𝜔)

0
−20
−40
−60
−80
10−1 100 101 102 103 104 105 106 107
𝜔

7
HW 4 @ 2020-02-27 11:12:09-08:00

Solution
Log-log plot of transfer function magnitude
4
10

103

102

101
|𝐻(𝜔)|

100

10−1

10−2

10−3

10−4 −1
10 100 101 102 103 104 105 106 107
𝜔
Semi-log plot of transfer function phase

80
60
40
20
∠ 𝐻(𝜔)

0
−20
−40
−60
−80
10−1 100 101 102 103 104 105 106 107
𝜔

3 Color Organ Filter Design


In the fourth lab, we will design low-pass, band-pass, and high-pass filters for
a color organ. There are red, green, and blue LEDs. Each color will correspond
to a specified frequency range of the input audio signal. The intensity of the
light emitted will correspond to the amplitude of the audio signal.

a) First, you realize that you can build simple filters using a resistor and a

8
EECS 16B Spring 2020 HW 4

capacitor. Design the first-order passive low and high pass filters with
following frequency ranges for each filter using 1 µF capacitors. (“Passive”
means that the filter does not require any power supply.)

• Low pass filter – 3-dB frequency at 2400 Hz = 2𝜋 · 2400 𝑟𝑎𝑑


𝑠𝑒𝑐

• High pass filter – 3-dB frequency at 100 Hz = 2𝜋 · 100 𝑟𝑎𝑑


𝑠𝑒𝑐

Draw the schematic-level representation of your designs and show your


work finding the resistor values. Also, please mark 𝑉in , 𝑉out , and ground
nodes in your schematic. Round your results to two significant figures.

Solution

a) Low-pass filter
1
𝑓3 dB = = 2400 Hz
2𝜋𝑅𝐶
Therefore, we need a 66 Ω resistor.
66 Ω
𝑉in 𝑉out

1 µF

b) High-pass filter
1
𝑓3 dB = = 100 Hz
2𝜋𝑅𝐶
Therefore, we need a 1.6 kΩ resistor.
1 µF
𝑉in 𝑉out

1.6 kΩ

9
HW 4 @ 2020-02-27 11:12:09-08:00

b) You decide to build a bandpass filter by simply cascading the first-order


low-pass and high-pass filters you designed in part (a). Connect the 𝑉out
node of your low-pass filter directly to the 𝑉in node of your high pass
filter. The 𝑉in of your new band-pass filter is the 𝑉in of your old low-pass
filter, and the 𝑉out of the new filter is the 𝑉out of your old high-pass filter.
What is 𝐻𝐵𝑃𝐹 , the transfer function of your new band-pass filter? Use
𝑅 𝐿 , 𝐶 𝐿 , 𝑅 𝐻 , and 𝐶 𝐻 for low-pass filter and high-pass filter components,
respectively. Show your work.

Solution

𝐶𝐻
𝑅𝐿
𝑉in 𝑉out

𝐶𝐿 𝑅𝐻

 

1

1
1
𝑗𝜔𝐶 𝐻 + 𝑅𝐻 1
𝑗𝜔𝐶 𝐿 1 + 𝑗𝜔𝑅 𝐻 𝐶 𝐻
+ 𝑅𝐻 k = =
𝑗𝜔𝐶 𝐻 𝑗𝜔𝐶 𝐿 1
𝑗𝜔𝐶 𝐿 + 1
𝑗𝜔𝐶 𝐻 + 𝑅𝐻 −𝜔2 𝑅 𝐻 𝐶 𝐿 𝐶 𝐻 + 𝑗𝜔(𝐶 𝐻 + 𝐶 𝐿 )

Therefore, the transfer function from 𝑉in of the low pass filter to 𝑉out of
the low pass filter is
 
1
𝑗𝜔𝐶 𝐻 + 𝑅𝐻 k 1
𝑗𝜔𝐶 𝐿 1 + 𝑗𝜔𝑅 𝐻 𝐶 𝐻
𝐻𝐿𝑃𝐹 = =
𝜔2 𝑅 𝐿 𝑅 𝐻 𝐶 𝐿 𝐶 𝐻 + 𝑗𝜔(𝑅 𝐻 𝐶 𝐻 + 𝑅 𝐿 𝐶 𝐿 + 𝑅 𝐿 𝐶 𝐻 )
 
𝑅𝐿 + 1
+ 𝑅𝐻 k 1 1−
𝑗𝜔𝐶 𝐻 𝑗𝜔𝐶 𝐿

And, the transfer function from 𝑉out of the low pass filter to 𝑉out of the
high pass filter is
𝑗𝜔𝑅 𝐻 𝐶 𝐻
𝐻𝐻𝑃𝐹 =
1 + 𝑗𝜔𝑅 𝐻 𝐶 𝐻

The overall transfer function is


𝑗𝜔𝑅 𝐻 𝐶 𝐻
𝐻𝐵𝑃𝐹 = 𝐻𝐿𝑃𝐹 · 𝐻𝐻𝑃𝐹 =
1− 𝜔2 𝑅 𝐿 𝑅 𝐻 𝐶 𝐿 𝐶 𝐻 + 𝑗𝜔(𝑅 𝐻 𝐶 𝐻 + 𝑅 𝐿 𝐶 𝐿 + 𝑅 𝐿 𝐶 𝐻 )

10
EECS 16B Spring 2020 HW 4

c) Plug the component values you found in (a) into the transfer function
𝐻𝐵𝑃𝐹 . Using MATLAB or IPython, draw a Bode plot from 0.1 Hz to 1 GHz.
If you use iPython, you may find the function scipy.signal.bode useful.
What are the frequencies at which the numerator and denumerator of
the transfer function become zero? What is the maximum magnitude of
𝐻𝐵𝑃𝐹 in dB? Is that something that you want? If not, explain why not and
suggest a simple way (either adding passive or active components) to fix
it.

Solution
𝑗𝜔(1.6 · 10−3 )
𝐻𝐵𝑃𝐹 =
1 − 𝜔2 (1.1 · 10−7 ) + 𝑗𝜔(1.7 · 10−3 )
The Bode plot is as below.

There are two roots for denumerator and one root for numerator at 100 Hz,
2.4 kHz, and DC, respectively. The maximum magnitude (around 500 Hz
= 3.14 × 103 rad
s ) is

𝑗(3.14 · 103 )(1.6 · 10−3 )
V
= 0.94 = −0.52 dB

1 − (3.14 · 103 )2 (1.1 · 10−7 ) + 𝑗(3.14 · 103 )(1.7 · 10−3 )

V

This is pretty similar to what we wanted. The gain, |𝐻𝐵𝑃𝐹 |, is close to 0 dB


at its maximum. However, the transfer function of the bandpass filter
that we likely intended to get by cascading the two filter circuits was:

11
HW 4 @ 2020-02-27 11:12:09-08:00

𝑗𝜔𝑅 𝐻 𝐶 𝐻
𝐻ideal BPF =
(1 + 𝑗𝜔𝑅 𝐻 𝐶 𝐻 )(1 + 𝑗𝜔𝑅 𝐿 𝐶 𝐿 )
𝑗𝜔𝑅 𝐻 𝐶 𝐻
=
1 − 𝜔 𝑅 𝐻 𝐶 𝐻 𝑅 𝐿 𝐶 𝐿 + 𝑗𝜔(𝑅 𝐿 𝐶 𝐿 + 𝑅 𝐻 𝐶 𝐻 )
2

Therefore, in our circuit, only the 𝑗𝜔𝑅 𝐿 𝐶 𝐻 term is added at the denomina-
tor. Because 𝑅 𝐿 = 66 Ω is small, it did not cause any significant problem
in our case. 𝑗𝜔𝑅 𝐿 𝐶 𝐻 is added because the low pass filter is experiencing
impedance loading from the high pass filter, leading to a change in 𝐻𝐿𝑃𝐹 .
However, to be safe, a simple solution is to place a voltage buffer between
the filters as below.
Note that the ideal voltage buffer has infinite input impedance and zero
output impedance. This blocks any load effects from the following stage,
and the next stage will see the op-amp output as an ideal voltage source.

− 𝐶𝐻

𝑅𝐿 𝑉out
𝑉in +

𝑅𝐻
𝐶𝐿

d) Now that you know how to make filters and amplifiers, we can finally
build a system for the color organ circuit below. Before going into the
actual schematic design, you must first set specifications for each block.
The goal of the circuit is to divide the input signal into three frequency
bands and turn the LEDs on based on the input signal’s frequency.
In this problem, assume that the mic board’s transfer function is of the
following form:

𝑗𝜔
 
𝑗𝜔 1 + 𝜔𝑧1
𝑉𝑀𝐼𝐶 = 𝐾 𝑀𝐼𝐶 
𝑗𝜔 𝑗𝜔 𝑗𝜔
  
1+ 𝜔𝑝1 1+ 𝜔𝑝2 1+ 𝜔𝑝3

12
EECS 16B Spring 2020 HW 4

where 𝐾 𝑀𝐼𝐶 is a constant gain, 𝜔 𝑧 1 = 2𝜋.200𝐻𝑧, 𝜔 𝑝 1 = 2𝜋.10𝐻𝑧, 𝜔 𝑝 2 =


2𝜋.100𝐻𝑧, and 𝜔 𝑝 3 = 2𝜋.10𝐾𝐻𝑧. The magnitude of the voltage at the
mic board output is 1 V peak-to-peak at 40 Hz. (Hint: You can use this
information to calculate 𝐾 𝑀𝐼𝐶 .)
Suppose that the three filters have transfer functions as below.

• Low pass filter


2
𝐻𝐿𝑃𝐹 = 𝑗𝜔
1+ 200𝜋

• Band pass filter

4.54 · 10−4 𝑗𝜔
𝐻𝐵𝑃𝐹 = 
𝑗𝜔 𝑗𝜔
 
1+ 400𝜋 1+ 4000𝜋

• High pass filter

𝑗𝜔
8000𝜋
𝐻𝐻𝑃𝐹 = 𝑗𝜔
1 + 8000𝜋

What are the phasor voltages at the output of each filter as a function of
3(1+𝑗𝜔(1.5·103 ))
𝜔? To clarify, 1+𝑗𝜔(2·100) would be a valid phasor voltage at the output
of some filter. Assume that there are ideal voltage buffers before and after
each filter.

Solution
Because we know that we have 1 𝑉𝑝𝑝 at 40 Hz, we can plug 2𝜋 · 40 into 𝜔
to get 𝐾 𝑀𝐼𝐶 .

13
HW 4 @ 2020-02-27 11:12:09-08:00


𝑗(80𝜋)
 
𝑗(80𝜋) 1 +

𝜔𝑧1

1 = 𝐾 · 

𝑗(80𝜋) 𝑗(80𝜋) 𝑗(80𝜋)
  

1+ 𝜔𝑝1 1 + 𝜔𝑝2 1 + 𝜔𝑝3

Therefore, 𝐾 = 0.017. Finally, the phasor voltages at the output of each


filter are as below.

𝑗𝜔
 
𝑗𝜔 1 + 400𝜋
𝑉𝐿𝑃𝐹 = 0.034 ·  2 
𝑗𝜔 𝑗𝜔 𝑗𝜔
 
1+ 20𝜋 1+ 200𝜋 1+ 20000𝜋

(𝑗𝜔)2
𝑉𝐵𝑃𝐹 = 7.72 · 10−6 · 
𝑗𝜔 𝑗𝜔 𝑗𝜔 𝑗𝜔
   
1+ 20𝜋 1+ 200𝜋 1+ 4000𝜋 1+ 20000𝜋

𝑗𝜔
 
(𝑗𝜔)2
8000𝜋 1+ 400𝜋
𝑉𝐻𝑃𝐹 = 0.017 · 
𝑗𝜔 𝑗𝜔 𝑗𝜔 𝑗𝑤
   
1+ 20𝜋 1+ 200𝜋 1+ 8000𝜋 1+ 20000𝜋

e) For 50 Hz, 1000 Hz, and 8000 Hz, what is the voltage gain required of
each non-inverting amplifier such that the output peak to peak voltage
measured right before the 10 Ω resistor is 5 𝑉𝑝𝑝 ?

Solution

a) Low pass filter path


At 𝜔 = 100𝜋,

𝑗 100𝜋
 

𝑗100𝜋 1 + 400𝜋


|𝑉𝐿𝑃𝐹 | = 0.034 ·  2   = 1.73
𝑗 100𝜋 𝑗 100𝜋 𝑗 100𝜋


1+ 20𝜋 1 + 200𝜋 1 + 20000𝜋

Therefore, the non-inverting amplifier gain should be 2.9 V


V (or
9.24 dB).
b) Band pass filter path
At 𝜔 = 2000𝜋,


7.72 · 10−6 · (𝑗2000𝜋)2
|𝑉𝐵𝑃𝐹 | =   = 0.27

𝑗 2000𝜋 𝑗 2000𝜋 𝑗 2000𝜋 𝑗 2000𝜋
  
1+ 1 + 200𝜋 1 + 4000𝜋 1 + 20000𝜋
20𝜋

V
Therefore, the non-inverting amplifier gain should be 18.5 V (or
25.3 dB).

14
EECS 16B Spring 2020 HW 4

c) High pass filter path


At 𝜔 = 16000𝜋,

(𝑗 16000𝜋)2 𝑗 16000𝜋
 
0.017 · 8000𝜋 1+ 400𝜋

|𝑉𝐻𝑃𝐹 | =   = 0.37

𝑗 16000𝜋 𝑗 16000𝜋 𝑗 16000𝜋 𝑗 16000𝜋
  
1+ 1 + 200𝜋 1 + 8000𝜋 1 + 20000𝜋
20𝜋

Therefore, the non-inverting amplifier gain should be 13.5 V


V (or
22.6 dB).

15
HW 4 @ 2020-02-27 11:12:09-08:00

4 Mystery Microphone
You are working for Mysterious Miniature Microphone Multinational when
your manager asks you to test a batch of the company’s new microphones.
You grab one of the new microphones off the shelf, use a tone generator 1 to
play pure tones of uniform amplitude at various frequencies, and measure the
resultant peak-to-peak voltages using an oscilloscope. You collect data, and
then plot it (on a logarithmic scale). The plot is shown below:

Figure 8: Frequency Response

a) To which frequencies is the microphone most sensitive, and to which


frequencies is the microphone least sensitive?

Solution
The microphone is most sensitive to frequencies in the range of 320 Hz to
5 kHz, and least sensitive below ≈ 100 Hz or so.
You report these findings to your manager, who thanks you for the
preliminary data and proceeds to co-ordinate some human listener tests.
1 Note that soundwaves are simply sinusoids at various frequencies with some amplitude

and phase. The microphone’s diaphragm oscillates with the sound (pressure) waves, moving the
attached wire coil back and forth over an internal magnet, which induces a current in the wire. In
this way, a microphone can be modeled as a signal-dependent current source. The output current
can be converted to a voltage by simply adding a known resistor to the circuit and measuring the
voltage across that resistor.

16
EECS 16B Spring 2020 HW 4

In the meantime, your manager asks you to predict the effects of the
microphone recordings on human listeners, and encourages you to start
thinking more deeply about the relationships.

b) For testing purposes, you have a song with sub-bass (150 Hz or less),
mid-range (≈ 1 kHz), and some high frequency electronic parts (> 12 kHz).
Which frequency ranges of the song would you be able to hear easily, and
which parts would you have trouble hearing? Why?

Solution
The mid-range would be most audible since the amplitude is the highest
at these frequencies. The high frequency electronic parts are the next
loudest. The sub-bass parts would be the parts you have trouble hearing
since the output amplitude is so low.

c) After a few weeks, your manager reports back to you on the findings.
Apparently, this microphone causes some people’s voices to sound re-
ally weird, resulting in users threatening to switch to products from a
competing microphone company.
It turns out that we can design some filters to “fix” the frequency response
so that the different frequencies can be recorded more equally, thus
avoiding distortion. Imagine that you have a few (say up to 4 or so) blocks.
Each of these blocks detects a set range of frequencies, and if the signal is
within this range, it will switch on a op-amp circuit of your choice. For
example, it can be configured to switch on an op-amp filter to double the
voltage for signals between 100 Hz and 200 Hz.
What ranges of signals would require such a block, and what gain would
you apply to each block such that the resulting peak-to-peak voltage is
about 5 V for all frequencies?

Solution
The output amplitude for < 100 Hz is ≈ 0.5 V, so it needs a gain of 10.
For 100-160Hz, the amplitude is ≈ 2.5 V, so it needs a gain of 2.
320-5000Hz already has an amplitude of 5V, so no gain is needed.
10000-20000Hz has an amplitude of ≈ 1.5 V, so it needs a gain of 3.33.

5 (OPTIONAL) Write Your Own Question And Provide a


Thorough Solution.
Writing your own problems is a very effective way to really learn material.
Having some practice at trying to create problems helps you study for exams
much better than simply solving existing practice problems. This is because

17
HW 4 @ 2020-02-27 11:12:09-08:00

thinking about how to create an interesting problem forces you to really


consolidate your understanding of the course material.

6 Homework Process and Study Group


Citing sources and collaborators are an important part of life, including being
a student! We also want to understand what resources you find helpful and
how much time homework is taking, so we can change things in the future if
possible.

a) What sources (if any) did you use as you worked through the home-
work?
b) If you worked with someone on this homework, who did you work
with? List names and student ID’s. (In case of homework party, you can
also just describe the group.)
c) How did you work on this homework? (For example, I first worked by
myself for 2 hours, but got stuck on problem 3, so I went to office hours. Then I
went to homework party for a few hours, where I finished the homework.)
d) Roughly how many total hours did you work on this homework?

18

You might also like