EE16B HW 4 Solutions
EE16B HW 4 Solutions
(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. In the meantime, your manager asks you to predict the effects
1 Note that soundwaves are simply sinusoids at various frequencies with some amplitude and phase. The microphone’s di-
aphragm 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.
2. RLC Circuit
In this question, we will take a look at an electrical system described by a second order differential equations
and analyze it using the phasor
domain. Consider the circuit below, where R = 8 kΩ, L = 1 mH, C = 200 nF,
and Vs = 2 cos 2000t + π4 .
R L i(t)
+ − +
VL −
VR
+
+
Vs Vout C
−
−
(a) What are the impedances of the resistor ZR , inductor ZL , and capacitor ZC ?
Solution:
The impedance of a resistor is the same as its resistance.
ZR = 8000 Ω
The circuit given is a voltage divider. Since impedances act like resistors, we can use the same equation
as that for a resistive voltage divider.
We can solve for the magnitude and angle of the divider using
j π − j ∗ 2500 2500
2e 4 = 2p = 0.597
8000 − j ∗ 2498 80002 + (−2498)2
j π4 − j ∗ 2500 π
∠ 2e = ∠(2e j 4 ) + ∠(− j ∗ 2500) − ∠(8000 − j ∗ 2498)
8000 − j ∗ 2498
π −π
= + − atan2(−2498, 8000) = −0.4827 rad
4 2
Veout = 0.597e− j0.4827
|Ves |
Ves j ∠Ves −∠(ZR +ZL +ZC )
ei = = e = 2.38 · 10−4 e j1.088
ZR + ZL + ZC |ZR + ZL + ZC |
Going back to the time domain:
1
H(ω) =
1 + jωRC + ( jω)2 LC
iR1 R1
iL1 L1 N2 L2 iL2
N1
R2
C1
iR2 R3
ic
+ v(t)
−
(a) Transform the given circuit to the phasor domain (components and sources).
Solution:
(b) Write out KCL for node N1 and N2 in the phasor domain in terms of the currents provided.
Solution:
At node 1:
iL1 + iR1 = ic
At node 2:
iR1 + iL1 + iR2 + iL2 = 0
(c) Find expressions for each current in terms of node voltages in the phasor domain. The node voltages
Ve1 and Ve2 are the voltage drops from N1 and N2 to the ground.
Solution:
We have
For future parts, we want the denominators of each current to be either purely real or purely imagi-
nary. To put iL2 in this form, we can manipulate the expression by multiplying the denominator by its
conjugate: !
Ve2 1 − j2 Ve2 (1 − j2) Ve2 (1 − j2)
= =
1 + j2 1 − j2 1 − (−4) 5
(e) Solve the systems of linear equations you derived in part (d) with any method you prefer and then find
ic (t).
Solution:
The inverse of a 2 × 2 matrix is given by:
" #−1 " #
a b 1 d −b
= .
c d ad − bc −c a
" #
−6 + j3 2 − j1
A−1 =
−2 + j1 1.5 − j0.5
(a) DC Analysis Assume for now that k = 0 (so that we can examine just the "DC" response of the
circuit), find VOUT in terms of IDC , R1 , R2 , and R3 (Hint: You do not need to worry about Vss in your
calculations).
Solution: The current in the left branch is equal to IDC since no current flows into the op-amp.
(b) Now, let’s include the sinusoidal part of IMIC as well. We can model this situation as shown below,
with IMIC split into two current sources so that we can analyze the whole circuit using superposition.
Let IAC = k sin(ωt). Find and plot the function VOUT(t) .
Solution: Doing superposition, we null each of the sources and add the results. Let’s use superposi-
tion to find Vin . Note, here when we do superposition we have 3 sources that affect Vin : VDD , IDC , and
IAC . Nulling both current sources, we see that Vin1 = VDD because there is no current flowing in our
circuit there is no change in voltage over the resistor. Nulling VDD and IAC , we get a similar expression
to part (a) except there is no 5 volt source: Vin2 = −R1 · IDC . And finally, nulling VDD and IDC , we get a
similar expression to our last one: Vin3 = −R1 · IAC
Putting these together and plugging in our expression for IAC we get:
This then goes through a noninverting amplifier for our final answer:
R2
Vout = (1 + ) · (5 − R1 · (ksin(ωt) + IDC ))
R3
Figure 4: Vout (t) when R1 = 10 kΩ, R2 = 2040 Ω, R3 = 100 kΩ, IDC = 10 µA, k = 10−9
(c) Given that VDD = 5 V, VSS = −5 V, R1 = 10 kΩ, and IDC = 10 µA, find the maximum value of the gain G
of the noninverting amplifier circuit for which the op-amp would not need to produce voltages greater
than VDD or less than VSS (i.e, find the maximum gain G we can use without causing the op-amp to
clip).
(d) We have modified the circuit as shown below to include a high-pass filter so that the term related to
IDC is removed before we apply gain to the signal. Provide a symbolic expression for VOUT given that
that VDD0 = 5 V, VSS0 = −5 V, VDD1 = 3.3 V, VSS1 = 0 V. Show your work.
Figure 5: Step 3. Approaching the real mic board circuit. The microphone is still modeled as the superposi-
tion of a a DC and a sinusoidal ("AC") current source.
Solution: Since the high-pass filter removes the DC portion of the mic signal (the portion contributed
by IDC ), the voltage going into the noninverting terminal of AMP2 is (R1 k sin(ωt) +VBIAS , a sinusoid
centered around VBIAS . From there, the gain of the noninverting amplifier circuit is VOUT = (1 + RR34 ),
which yields:
R3
VOUT = 1 + −R1 k sin(ωt) +VBIAS
R4
(e) We would now like to choose VBIAS so that we can get as much gain G out of the non-inverting amplifier
circuit (AMP2) as possible without causing AMP2 to clip (i.e, the output of AMP2 must stay between
0V and 3.3V). What value of VBIAS will achieve this goal? If k = 10−5 and R1 = 10 kΩ, what is the
maximum value of G you can use without having AMP2 clip?
3.3V −0V
Therefore, we should choose VBIAS = 2 = 1.65V as the optimum VBIAS .
1.65V = GR1 k
(a) First, you realize that you can build simple filters using a resistor and a 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 rad
sec
• High pass filter – 3-dB frequency at 100 Hz = 2π · 100 rad
sec
Draw the schematic-level representation of your designs and show your work finding the resistor val-
ues. Also, please mark Vin , Vout , and ground nodes in your schematic. Round your results to two
significant figures.
Solution:
i. Low-pass filter
1
f3 dB = = 2400 Hz
2πRC
Therefore, we need a 66 Ω resistor.
66 Ω
Vin Vout
1 µF
1.6 kΩ
(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 Vout node of your low-pass filter directly to the Vin node of your
high pass filter. The Vin of your new band-pass filter is the Vin of your old low-pass filter, and the Vout
of the new filter is the Vout of your old high-pass filter. What is HBPF , the transfer function of your
new band-pass filter? Use RL , CL , RH , and CH for low-pass filter and high-pass filter components,
respectively. Show your work.
Solution:
CH
RL
Vin Vout
CL RH
1 1
jωCH + RH
1 1 jωCL 1 + jωRH CH
+ RH k = 1 1
=
jωCH jωCL jωCL + jωCH + RH −ω 2 RH CLCH+ jω(CH +CL )
Therefore, the transfer function from Vin of the low pass filter to Vout of the low pass filter is
1 1
jωCH + R H k jωC L 1 + jωRH CH
HLPF = = 2
R + 1
+R k 1 1 − ω RL RH CLCH + jω(RH CH + RLCL + RLCH )
L jωCH H jωCL
And, the transfer function from Vout of the low pass filter to Vout of the high pass filter is
jωRH CH
HHPF =
1 + jωRH CH
The overall transfer function is
jωRH CH
HBPF = HLPF · HHPF =
1 − ω 2 RL RH CLCH + jω(RH CH + RLCL + RLCH )
jω(1.6 · 10−3 )
HBPF =
1 − ω 2 (1.1 · 10−7 ) + jω(1.7 · 10−3 )
The Bode plot is as below.
There are two poles and one zero at 100 Hz, 2.4 kHz, and DC, respectively. The maximum magnitude
(around 500 Hz = 3.14 × 103 rad s ) is
j(3.14 · 103 )(1.6 · 10−3 ) V
= 0.94 = −0.52 dB
1 − (3.14 · 103 )2 (1.1 · 10−7 ) + j(3.14 · 103 )(1.7 · 10−3 ) V
This is pretty similar to what we wanted. The gain, |HBPF |, 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:
jωRH CH
Hideal BPF =
(1 + jωRH CH )(1 + jωRLCL )
jωRH CH
=
1 − ω 2 RH CH RLCL + jω(RLCL + RH CH )
CH
−
RL Vout
Vin +
RH
CL
(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 is a 3-pole 2-zero system. Poles are located at 10 Hz,
100 Hz, and 10 000 Hz. Zeros are at DC and 200 Hz. This means that the frequency response at the
mic board output can be modeled as follows.
jω 1 + ωjωz1
VMIC = KMIC
1 + ωjωp1 1 + ωjωp2 1 + ωjωp3
where KMIC is a constant gain, ωz1 , ω p1 , ω p2 , and ω p3 are the zero and poles. Note that jω term in the
numerator denotes the zero at DC. Also note that poles are always in rad sec : for example, ω p1 = 2π ·10Hz.
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 KMIC .)
Suppose that the three filters have transfer functions as below.
• Low pass filter
2
HLPF = jω
1 + 200π
• Band pass filter
4.54 · 10−4 jω
HBPF =
jω jω
1 + 400π 1 + 4000π
• High pass filter
jω
8000π
HHPF = jω
1 + 8000π
Solution:
Because we know that we have 1 Vpp at 40 Hz, we can plug 2π · 40 into ω to get KMIC .
j(80π) 1 + j(80π)
ωz1
1 = K ·
j(80π) j(80π) j(80π)
1+ ω p1 1 + ω p2 1+ ω p3
Therefore, K = 0.017. Finally, the phasor voltages at the output of each filter are as below.
jω
jω 1 + 400π
VLPF = 0.034 · 2
jω jω jω
1 + 20π 1 + 200π 1 + 20000π
( jω)2
VBPF = 7.72 · 10−6 ·
jω jω jω jω
1 + 20π 1 + 200π 1 + 4000π 1 + 20000π
( jω)2 jω
1 + 400π
8000π
VHPF = 0.017 ·
jω jω jω jw
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 Vpp ?
Solution:
i. Low pass filter path
V
Therefore, the non-inverting amplifier gain should be 2.9 V (or 9.24 dB).
ii. Band pass filter path
At ω = 2000π,
7.72 · 10−6 · ( j2000π)2
|VBPF | = = 0.27
1 + j2000π 1 + j2000π 1 + j2000π 1 + j2000π
20π 200π 4000π 20000π
V
Therefore, the non-inverting amplifier gain should be 18.5 V (or 25.3 dB).
iii. High pass filter path
At ω = 16000π,
( j16000π)2 j16000π
·
0.017 8000π 1 + 400π
|VHPF | = = 0.37
1 + j16000π 1 + j16000π 1 + j16000π 1 + j16000π
20π 200π 8000π 20000π