Ek307 f17 hw5 Soln

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

EK307 Fall 2017 Homework 5 Solutions

Problem 1:

Problem 2:

Design a circuit with one op-amp that provides a gain of 5.5. Assume you have a resistor Ri =10kΩ, what
value would you choose for Rf?

The gain here is positive hence it is a non inverting amplifier.


𝑅𝑖
𝑉𝑖𝑛 = 𝑅𝑖 +𝑅𝑓
× 𝑉𝑜𝑢𝑡

Ideal summing point: 𝑉1 = 𝑉𝑖𝑛


𝑉𝑜𝑢𝑡
Voltage gain A is equal to:
𝑉𝑖𝑛

𝑉𝑜𝑢𝑡 𝑅𝑖 +𝑅𝑓
Then, 𝐴 = 𝑉𝑖𝑛
= 𝑅𝑖

𝑉𝑜𝑢𝑡 𝑅𝑓
Transpose to give , 𝐴 = 𝑉𝑖𝑛
=1+ 𝑅𝑖

𝑅𝑓
5.5 = 1 +
10

Therefore 𝑅𝑓 = 45 𝐾Ω
Scanned by CamScanner
Scanned by CamScanner
Problem 4:

Problem 5:
Problem 6:
Problem 7:

The circuit shown is a summing amplifier.

The resistances are labelled as,

The formula to calculate the value of 𝑣0 in this summing amplifier circuit is,
𝑅𝑓 𝑅𝑓 𝑅𝑓
𝑣0 = − [ × 𝑣1 + × 𝑣2 + × 𝑣3 ]
𝑅1 𝑅2 𝑅3
Substituting the known values,
50 50 50
𝑣0 = − [ ×2+ × 𝑣2 + × (−1)]
10 20 50
= −[10 + 2.5𝑣2 − 1]
𝑣0 = −9 − 2.5𝑣2
Substituting the desired value 𝑣0 = −16.5 𝑣

−16.5 = −9 − 2.5𝑣2 → 𝑣2 = 3𝑉
Boston University EK307 – Fall 2017

Problem Set 5 Solutions

Problem 8.

(c) Figure C below is created by the attached Matlab script (file named s_hw5cdsoln.m).
The output voltage is lower for lower load resistor RL.

The DAC still works, and provides an output voltage that is linearly proportional to the
digital input from 0 (000) to 7 (111). However, the proportionality factor depends on the
load. The highest proportionality factor is for open circuit, and is lower for lower values of
RL. Thus, with variable RL, the DAC does not put out the same voltage range.

Figure C Figure D

(d) The addition of the unity-gain buffer means that the current into the op-amp is zero, so
the DAC resistor network “sees” the op-amp as an infinite resistance, or open circuit. The
voltage at the op-amp non-inverting input, though, is replicated by the op-amp output, which
can provide that voltage no matter what load RL is connected. So, we get the output
voltage of the open circuit solution vout in part (a) for any value of connected RL.

The plot in Figure D, above, from the solution Matlab script (file named s_hw5cdsoln.m),
shows the 3 curves overlapping. The unity-gain buffer helps make the output voltage
range independent of the attached load resistance. And, the DAC still works like a
DAC.
Boston University EK307 – Fall 2017

(f) The code is attached (file named s_hw5_r2rdac_v3.m). It gives the function that solves
the circuit using the matrix node-voltage method. The plot is:

(g) I chose to use 6 different cases, and plotted them below. The code is attached (file
named s_hw5_r2rdac_v3_g.m). The code shows my choice of 6 resistors each time.

You might also like