In this lab session, you will be introduced to a common electronic component known as the Operational Amplifier, or op amp for short. Operational amplifiers are linear devices that have all the properties required for nearly ideal DC amplification and are therefore used extensively in signal conditioning, filtering or to perform mathematical operations such as add, subtract, integration and differentiation. The objectives of this lab are to introduce the following circuits and some of their characteristics:
Ideal Opamp
![]()
The Opamp
The inputs and outputs of the operational amplifier are as follows:
- Vn: the inverting input
- Vp: the non-inverting input
- E+, E-: input terminals for the DC power supply required for amplification
- VO: the output terminal
When there is a difference between Vn and Vp, amplification occurs, and
\[V_O = A(V_n-V_p)\]
An ideal op amp has the following characteristics:
- Voltage gain: A = ∞
- Bandwidth: BW = ∞
- Input resistance: Rin = ∞
- Output resistance: Rout = 0
- when (Vn = Vp) means that VO = 0
Real Opamp
Commercial op amps closely approximate these ideal characteristics, so most analytic expressions for practical circuits in the kHz range use these ideal characteristics plus some very important axioms.
Axiom 1: because A = ∞, any output signal Vo will be the result of an infinitesimally small input signal. In essence, therefore, for analog operation: Vn – Vp = 0. This says that the differential input voltage is zero.
Axiom 2: because Rin = ∞, there is no current flow into either input terminal of the op amp.
When an op amp is placed in a circuit, it is usually wired so that the output voltage is “fed back” to the input circuit. The axioms mentioned above will be used with circuit solving techniques to predict the output voltage. The op amp configurations used in this lab are described below.
Bandwidth and Saturation
As was mentioned earlier, an op amp provides linear amplification of input voltages over a range. The two factors that can contribute to non linear amplification are:
- The frequency of the input signal (Bandwidth).
- The voltage level of the input signal (Saturated).
Bandwidth
The bandwidth of the amplifier is range of input frequencies for which the amplification is linear, or nearly so. The bandwidth BW is defined as the frequency interval within which:\[A_f > \frac{A_f \textrm{(ideal)}}{\sqrt{2}}\]
Saturation
The op amp is said to be saturated when the input signal is too large to be amplified by the predicted value. This is limited by the DC power supply to the op amp, and the idea that an op amp cannot produce more voltage than it is supplied.
Setup the Analog Discovery 2 as done in the previous labs.
Connect the USB cable from the Analog Discovery 2 your computer.
Use the ribbon cable and 15x2 header pins to connect the Analog Discovery 2 to your Breadboard Breakout . Make sure that the orange wires of the ribbon cable end up on the same side as the breadboard breakout pin labeled 1+.
Plug the breadboard breakout into the breadboard.
Launch the Waveforms software making sure that it detects your Analog Discovery 2.
Placing the Operational Amplifier IC on the Breadboard.
Inverting amplifier
![]()
The Inverting Amplifier
In this circuit, Vp is grounded and the input signal is fed in via R1. Because of Axiom 1, Vn is equal to zero as well. All of Vin appears across R1.
All of this input current flows through Rf (because of Axiom 2) so iin = if.
\[i_{in} = \frac{V_{in}}{R_1} \qquad = \qquad i_f \frac{-V_O}{R_f}\]
Rf is called the feedback resistor. A portion of the output signal is fed back from VO to Vn via Rf. Since Vn is approximately ground, then all of the output voltage appears across Rf. Equating the two currents above gives:
\[\frac{V_{in}}{R_1} = \frac{-V_O}{R_f}\]
This implies that:
\[\frac{V_O}{V_{in}} = \frac{-R_f}{R_1} = A_f\]
Af is the feedback gain of the inverting amplifier, and it may be varied by changing either Rf or R1.
Connect the circuit below using the following:
Figure 1. Inverting Op Amp
Click here
to see a simulation
demo of this circuit.
With the Supplies still running in Waveforms also start the Wavegen tool and configure it with the following settings and once complete click on the ‘Run’ button to output the waveform on the W1 pin.
With both the Supplies and Wavegen running open up the Scope tool in Waveforms and ‘Run’ it. Adjust the Scope setting until you obtain a display that looks similar to the one below.
Note:
Vin is the Yellow waveform and Vout is the Blue waveform. The waveforms are ideally identical but inverted and with the gain applied. If you would like you can play with the Wavegen and output different amplitudes, frequencies and even different waveform types to see the result. Make sure to reset everything to the original settings before moving on.
While keeping the input voltage (Vin) constant at 100mVpeak at 5kHz and leaving in the 1kΩ resistor for R1, measure the peak-to-peak voltage for both Vin and Vout when you switch the Rf resistor to the following values. For each input voltage measure and record your results in the appropriate place on the results sheet.
Note:
The ideal gain for a Inverting amplifier is calculated with the following formula: \[Af = -\frac{Rf}{R1}\] Typically to indicate that the output voltage is 180 degrees out of phase with the input voltage a minus sign is used to describe the gain of an amplifier.
With R1 still at 1kΩ and the Rf resistor set to 4.7kΩ adjust the input voltage (Vin) using the Wavegen tool to the following magnitudes while keeping the frequency at 5kHz. For each magnitude record the input voltage (Vin) and output voltage (Vout) in the appropriate place on the results sheet.
With R1 still at 1kΩ and the Rf resistor set to 4.7kΩ adjust the frequency of the input voltage using the Wavegen tool to the following while keeping the magnitude of Vin at 500mVpeak. For each frequency measure and record the input voltage (Vin) and output voltage (Vout) in the appropriate place on the results sheet.
To determine the input resistance of the Inverting amplifier we need to modify the circuit as shown below:
Figure 2. Measure Input Resistance
Set the Wavegen to output a 500mVpeak sinewave at 5kHz.
Use the automatic measurements you created earlier in the Scope to measure the peak-to-peak voltage amplitudes of both Channel 2 (VW1) and Channel 1 (Vin). Record your measurements in the appropriate place on the results sheet.
Replace the Rsense resistor, first with the 1 kΩ and then the 4.7 kΩ, and repeat the measurement from the previous step. Record your measurements in the appropriate place on the results sheet.
Before proceeding to the next section restore your circuit by completely removing the Rsense resistor and reconnecting the Wavegen to the input voltage (Vin) of the Amplifier. Also remove the Channel 2 Scope inputs from the Wavegen and place them back across the Amplifiers output voltage (Vout).
As the output resistance of the Inverting amplifier is too small for us to measure using the equipment we have available. We will simply measure the output resistance of the op amp instead. To determine this output resistance we need to modify the circuit as shown below:
Figure 3. Measure Output Resistance
Adjust the Wavegen to output the following.
Using the ‘Measurements’ tool of the Scope add a ‘DC RMS’ measurement for channel 2 to determine the magnitude of the output voltage. Record this voltage as the open circuited output of the op amp in the appropriate place on the results sheet.
First add a Rload resistor of 470Ω, then 1 kΩ and 4.7kΩ, to the op amp circuit and measure the new output voltage for each value of Rload resistor. Make sure to record your measurements in the appropriate place on the results sheet.
Note:
The specified output resistance of the uA741 op amp can be found on the uA741 datasheet on page 6 as ro.
Non-inverting amplifier
![]()
The Non-Inverting Amplifier
An input signal Vin is applied to the non-inverting input Vp. Axiom 1 and Axiom 2 tell us that the voltage across R1 is equal to the voltage Vin. Also from Axiom 2, iin = if.
\[i_{in} = \frac{-V_{in}}{R_f} \qquad = \qquad i_f = \frac{V_{in}-V_O}{R_f}\]
Rearranging the above equation gives the expression for the feedback gain (Af) of the non inverting amplifier. The voltage amplification of this amplifier is:
\[\frac{V_O}{V_{in}} = \frac{R_1+R_f}{R_1} = Af\]
Start over or modify your previous circuit to create the circuit as shown below:
Figure 4. Non-inverting op amp
Click here
to see a simulation
demo of this circuit.
As before, make sure the Supplies tool in Waveforms is configured to output 5 V on the Positive Supply (V+) and -5 V on the Negative Supply (V-). Once it is configured enable all of the supplies so they output the corresponding voltage on the pins to power the op amp.
Again as before, with the Supplies still running in Waveforms also start the Wavegen tool and configure it with the following settings and once complete click on the ‘Run’ button to output the waveform on the W1 pin. Make sure reset the Offset to 0V as you changed it during the last section.
Yet again as before, open the Scope tool and ‘Run’ it with both the Supplies and Wavegen also continuing to run. Adjust the Scope setting until you obtain an appropriate display. Use the ‘Measurement’ tool to automatically measure the peak-to-peak amplitudes of both channel 1 (Vin) and channel 2 (Vout).
While keeping the input voltage (Vin) constant at 100mVpeak at 5kHz and leaving in the 1kΩ resistor for R1, measure the peak-to-peak voltage for both Vin and Vout when you switch the Rf resistor to the following values. For each input voltage measure and record your results in the appropriate place on the results sheet.
Note:
The ideal gain for a Non-inverting amplifier is calculated with the following formula: \[Af = 1+\frac{Rf}{R1}\]
To determine the input resistance of the Non-inverting amplifier we need to modify the circuit in a similar fashion as we did for the Inverting Amplifier:
Figure 5. Measure Input Resistance
Set the Wavegen to output a 4Vpeak sinewave at 5kHz.
Use the automatic measurements you created earlier in the Scope to measure the peak-to-peak voltage amplitudes of both Channel 2 (VW1) and Channel 1 (Vin). Record your measurements in the appropriate place on the results sheet.
Note:
The specified input resistance of the uA741 op amp can be found on the uA741 datasheet on page 6 as ri.
Congratulations, you have completed the experimental part of the the laboratory. Before cleaning up, I’d suggest going through your results to check that you have completed everything and that your results make sense. If you find any issues, I’d suggest resolving or making a note of it now. If you are not continuing to work with the equipment please disconnect everything and put it away to prevent it from getting damaged.
The following is what you are expected to complete and submit for grading for Lab 7 before the deadline.
The completed Lab 7 - Results sheet template provided at the beginning of this lab manual under Equipment required. This sheet should include the following:
The Lab 7 - Results sheet needs to be submitted to the Submit (Lab 7 - Results) link on eClass as a pdf document .
For these calculation you only need to provide the answers in the space provided on your results sheet, you do not need to show your work.
Calculate the ideal gain of each of the op amp amplifier circuits based on the resistor network connected to them. Include your calculation results in the appropriate place on the results sheet.
From your measured input and output voltage calculate the actual gain of each of the op amp amplifier circuits. Include your calculation results in the appropriate place on the results sheet.
To determine the input resistance of each of the amplifier circuits use the following procedures.
\[V_{Rsense} = V_{W1} - V_{V_{IN}}\]
\[I_{IN} = \frac{V_{Rsense}}{Rsense}\]
\[R_{IN} = \frac{V_{IN}}{I_{IN}}\]
To determine the output resistance of the uA741 operational amplifier for each Rload resistor use the following procedures:
\[I_{OUT} = \frac{V_{OUT}}{R_{Load}}\]
\[V_{Rout} = V_{OUT}^{open} - V_{OUT}^{Rload}\]
\[R_{OUT} = \frac{V_{Rout}}{I_{OUT}}\]
To create your plots you can use whichever software you would like (Excel, Matlab, etc), export your plot as an image and import it into your Lab 7 - Results sheet in the appropriate place.
Your plots should include:
Note:
When plotting the gain and ideal gain for the inverting amplifier use the absolute value.
Inverting Amplifier - Changing Rf: Plot both the measured gain and ideal gain vs. the feedback resistance (Rf).
Inverting Amplifier - Increasing VIN: Plot both the measured gain and ideal gain vs. the input voltage (Vin).
Inverting Amplifier - Increasing f: Plot both the measured gain and ideal gain vs. the applied frequency (f) – Use a log scale for the x axis.
Non-inverting Amplifier - Plot both the measured gain and ideal gain vs. the feedback resistance (Rf).
Complete the online Quiz (Lab 7 - Post Lab) on eClass.