Professional Documents
Culture Documents
EEE 209
EXPERIMENT-4
Operational Amplifiers I
OPERATIONAL AMPLIFIERS
Objectives
The goal of this experiment is to study operational amplifier (op amp) and its
applications. Some basic op‐amp circuits, including the four most common types,
i.e., the inverting, non‐inverting, differencing, and summing amplifiers will be
introduced, simulated and applied on a board.
Introduction
Vout (V p Vn ) Av (1)
+Vcc
Vn
Inverting input
- Vout
+
Vp
Non-inverting
-Vcc
input
Where Av is the open-loop voltage gain and +VCC and –VCC are the positive
and negative DC power supply voltages, respectively. There is no internal
"ground" or "common" connection; voltages are measured relative to the common
connection of the two power supplies.
The numbers on the diagram refer to the pin numbers on the 741 (dual in-line
package) integrated circuit (IC) package as shown in Figure 3. Pins 1 and 5 are
used for nulling the offset voltage. We will not use these pins in this lab. Pin 8 is
not connected (NC) to the internal circuits of the op-amp. One of the more popular
op-amps is the UA741, specs.
circuit circuit
components components
- +
+ -
Notice that in both cases the output voltage is feedback to the negative input
terminal. The only difference is the connection of the input voltage to the inverting
or non-inverting input terminal. Feedback can be positive (returned to the non-
inverting input) or negative (returned to the inverting input), but negative
feedback is used primarily in analog circuits because it yields stable, controllable
outputs, and we will concentrate on it. For positive feedback, an increasing output
Vout drives the inputs even further positive, resulting in a still more positive Vout.
(A similar argument can be made that once Vout swings negative, it will result in
a large negative swing.) As a result, the device will always be in saturation. While
this can be useful for some purposes (e.g. for making oscillators and in digital
circuits), we shall concentrate on "negative feedback" here.
Both of these rules are idealizations which assume that the op-amp is "ideal";
however, the assumptions are usually very good approximations of "real" op-
amps. The reasons we say that the two input terminals are "virtually" shorted is
because there is no current flowing between them (if it were a real short, there
would be current flow).
An inverting amplifier:
Using the golden rules, the negative feedback "inverting amplifier" circuit shown
in Figure 5a can be analyzed. From golden rule number 1, the voltage at the
inverting input must be at ground because V+ is at ground. (The inverting input
isn't actually connected to ground, rather the internal circuitry of the op-amp
labors to keep it very near ground. We call such a voltage a virtual ground.) From
golden rule number 2, all of the current through R1 must flow through R2, because
no current flows into the op-amp inputs. We arbitrarily take the direction of the
conventional (positive) current to be to the right. Then applying Kirchoff's laws
gives
Vin IR1 0 IR1 Vin (3a)
0 IR2 Vout (3b)
The closed loop gain G is defined as the ratio of the output voltage to the input
voltage. Dividing (3b) by (3a) gives
Vout R
G 2 . (4)
Vin R1
This means that you can choose the gain by selecting the values of the resistors!
Also, the gain is not dependent on the details of the particular op-amp (e.g. the
exact value of the open loop gain A0), but rests only on the open loop gain being
large, and on the values of the resistors. (The largeness of A0 is the underlying
justification for Golden Rule 1.) Since the output is negative for positive inputs,
the amplifier called an inverting amplifier.
R2
R2
R1 +Vcc
R1 +Vcc -
-
+
+ Vout
Vout -Vcc
Vin -Vcc Vin
A noninverting amplifier:
An op-amp connected in a closed-loop configuration as a non-inverting amplifier
is shown in Fig 3b. The input signal is applied to the non-inverting (+) input. The
output is applied back to the inverting (-) input through the feedback circuit
(closed loop) formed by the input resistor R1 and the feedback resistor Rf. This
creates –Ve feedback as follows. Resistors R1 and R2 form a voltage-divider
circuit, which reduces VO and connects the reduced voltage Vf to the inverting
input. The feedback is expressed as
R1
Vf Vo (5)
( R1 R2 )
The difference of the input voltage, Vin and the feedback voltage, Vf is the
differential input of the op amp. This differential voltage is amplified by the gain
of the op-amp and produces an output voltage expressed as
R2
Vo (1 )Vin (6)
R1
The closed-loop gain of the non-inverting amplifier is, thus
R2
ACL ( NI ) 1 (7)
R1
Differencing amplifier:
The function of a subtractor is to provide an output proportional to or equal to the
difference of two input signals. A basic differential amplifier or a subtractor
circuit is shown in Fig. 6.
R2
R1
V1
+Vcc
-
+ Vout
V2 R1 -
Vcc
R2
RF
R1
V3
R2
V2
+Vcc
V1 -
R3
+ Vout
-Vcc
Rf Rf Rf n R
V1 V2 V3 Vi
f
Vout (9)
R1 R2 R3 i 0 Ri
An integrator:
Thus a square wave input would cause a triangle wave output. However, in a real
circuit (R2 < ∞) there is some decay in the system state at a rate proportional to
the state itself. This leads to exponential decay with a time constant of τ = R2C.
Figure 8. An integrator
Differentiator
By adding a capacitor in series with the input resistor R1 in an inverting amplifier,
the op-amp can be used to perform differentiation. An ideal differentiator (R 1 =
dVin
0) has no memory and performs the computation Vout R2C . Thus a triangle
dt
wave input would cause a square wave output. However, a real circuit (R 1 > 0)
will have some memory of the system state (like an lossy integrator) with
exponential decay of time constant τ = R1C
Equipment
Breadboard
Cables & Wires and connectors
Operational Amplifier UA741
Digital Oscilloscope,
Multimeter
Signal Generator,
DC Power Supply,
Resistors
Potentiometer
Preliminary work (Calculation and simulation section)
Important NOTE: Please check and read the following documents for grasping the
theoretical part of the operational amplifier and its applications.
[1] http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-
002-circuits-and-electronics-spring-2007/video-lectures/
[2] http://www.ti.com/lit/an/sboa092a/sboa092a.pdf
[3] https://groups.yahoo.com/neo/groups/LTspice/info
3) Figure 9 shows the circuit schematic of a summing amplifier. Prove that the
output voltage is given by
R1
V3
R2
V2
+Vcc
V1 -
R3
+ Vout
-Vcc
5) Show the relation of output and input voltage of the following circuit
(Integration)
6) Simulate the circuit of Fig.11, Fig12, and Figure 14 record all the voltage and
current values as described in related tables. (Note: In order to use
potentiometer please check the tutorial which is given in [3].)
In-Lab Experimental Work
1) Please construct the op amp circuit which is given in Fig.5a. The following
voltage and resistor values should be considered for each experiment.
For each conditions, measure and record the desired values to the Table.1.
Table.1.
a b
Vo
IR1
IR2
2) Please construct the op amp circuit which is given in Fig.5b. The following
voltage and resistor values should be considered for each experiment. Compare
experimental results with your simulations and theoretical results.
Table.2
a b c
Vo
IR1
IR2
3) Summing Amplifier 1: Please construct the op amp circuit which is depicted
in below. The following voltage and resistor values should be considered for
each experiment.
R1
R3
Ra
+Vcc +Vcc
V1 -
-
+
V2 R2 + Vout
-Vcc
-Vcc
Rb
Table.3
a b c
V1
V2
Vout
4) Difference Amplifier:
R3
R1
+Vcc
Ra
+Vcc -
V1 -
+ Vout
+
V2 R2 -Vcc
-Vcc
Rb
R4
Using the DC power supply for V1 and the 0-6 V power supply for V2 (or vice
versa), verify that Vout is indeed the difference of v1 and v2 with the expected
sign. Substitute 100 kΩ resistors for R2 and R4 and verify that the gain changes
as expected.
b) When you finish building the circuit, set the power supply to 10 and −10V
(from the +/− 25V). It is important that the Vcc and −Vcc are exactly equal
in magnitude. Set the current limiter to 100 mA. Double check the
connection of the board before connecting and switching on the power
supply to your circuit.
c) Measure the input-output characteristic of the op-amp circuit: vary the input
voltage Vin between –6V and +6V in steps of about 1V by adjusting the
potentiometer. Measure the actual value of Vin and the corresponding
output voltage Vo with the multimeter. Make a table with entries Vin, Vo
(measured), and Vo (calculated). Note that the output voltage saturates
above a certain input voltage. You can fill in the measured values now and
do the calculations later for your report.
d) For your report, make a plot of the measured and calculated output voltage
versus the input voltage. You can use your favorite plotting tool (e.g. a
LTspice or Matlab) to make the plot. Indicate on the graph the transition
between the active and saturated regions of the circuit. Find the slope of the
graph (i.e. the amplification) and compare it with the calculated one, based
on measured resistance values. Note also the maximum and minimum
output voltage (i.e. the saturation levels).
6) Summing Amplifiers:
a) Build the summing amplifier of Figure 14. First, sketch how you will layout
the circuit on your board. For voltage source V2 use the 6V power supply.
Make sure you connect all the grounds together to get a common ground.
This is a crucial step in any circuit. Explain why common ground is important
in your report.
Figure 14. View of a summing amplifier
c) Write the expression of the output voltage as a function of the input voltages
V1 and V2.
d) Make the voltage V1=1V and V2=2V and measure the output voltage. Next,
change the voltage V1=3V and measure the output voltage. How do the
measured values compare to the calculated ones?
e) For V1=1V and V2=2V, measure vn to verify that the inverting input
Report Instructions
Besides the general guidelines, report the following for this lab:
o Inverting amplifier
o Non-inverting amplifier
o Differencing amplifier
o Summing amplifier
Each part should be comprised of the circuit design with LSpice Capture and the
simulated voltages at each node as well as the closed-loop gain,
the analytical equation for each amplifier and the calculated output voltage
and gain,
the experimental voltage readout with a description of the experimental
procedure ,
a table of all three values for the op-amp terminal voltages: from simulation,
theory, and experiment,
a table of all three values for the closed-loop op-amp gain seen by Vout: from
simulation, theory, and experiment,
and your explanation of the variations between the three values of the last
two steps.
References
http://eecs.oregonstate.edu/education/docs/tutorials/Simulating%20an%20op%2
0amp.pdf
http://www.mathworks.com/help/physmod/simscape/examples/op-amp-circuit-
inverting-amplifier.html
http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-002-
circuits-and-electronics-spring-2007/video-lectures/
http://www.ti.com/lit/an/sboa092a/sboa092a.pdf