Lab 2 Introduction to Op Amps

Similar documents
School of Engineering Department of Electrical and Computer Engineering

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

Lab 7: Operational Amplifiers Part I

OPERATIONAL AMPLIFIERS

Laboratory 4: Feedback and Compensation

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

Basic Op Amp Circuits

Operational Amplifier - IC 741

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

Chapter 19 Operational Amplifiers

Use and Application of Output Limiting Amplifiers (HFA1115, HFA1130, HFA1135)

The 2N3393 Bipolar Junction Transistor

Analog Signal Conditioning

Step Response of RC Circuits

OPERATIONAL AMPLIFIERS. o/p

Design of op amp sine wave oscillators

Building the AMP Amplifier

EXPERIMENT NUMBER 8 CAPACITOR CURRENT-VOLTAGE RELATIONSHIP

SINGLE-SUPPLY OPERATION OF OPERATIONAL AMPLIFIERS

LABORATORY 2 THE DIFFERENTIAL AMPLIFIER

Single Supply Op Amp Circuits Dr. Lynn Fuller

Precision Diode Rectifiers

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

BJT Characteristics and Amplifiers

The Operational Amplfier Lab Guide

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Inductors in AC Circuits

Fundamentals of Signature Analysis

Lab 5 Operational Amplifiers

See Horenstein 4.3 and 4.4

WHAT DESIGNERS SHOULD KNOW ABOUT DATA CONVERTER DRIFT

Positive Feedback and Oscillators

Scaling and Biasing Analog Signals

Frequency Response of Filters

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

Content Map For Career & Technology

11: AUDIO AMPLIFIER I. INTRODUCTION

TESTS OF 1 MHZ SIGNAL SOURCE FOR SPECTRUM ANALYZER CALIBRATION 7/8/08 Sam Wetterlin

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

30. Bode Plots. Introduction

Welcome to this presentation on Switch Mode Drivers, part of OSRAM Opto Semiconductors LED Fundamentals series. In this presentation we will look at:

The Time Constant of an RC Circuit

Experiment #5, Series and Parallel Circuits, Kirchhoff s Laws

GenTech Practice Questions

LAB 12: ACTIVE FILTERS

RC & RL Transient Response

Digital to Analog and Analog to Digital Conversion

MAS.836 HOW TO BIAS AN OP-AMP

LABORATORY MANUAL DEPARTMENT OF ELECTRICAL & COMPUTER ENGINEERING

Lab 1: DC Circuits. Student 1, Partner : Student 2, student2@ufl.edu

Signal Conditioning Piezoelectric Sensors

12. Transformers, Impedance Matching and Maximum Power Transfer

Current vs. Voltage Feedback Amplifiers

More Op-Amp Circuits; Temperature Sensing

AC CIRCUITS - CAPACITORS AND INDUCTORS

Physics 623 Transistor Characteristics and Single Transistor Amplifier Sept. 13, 2006

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

Signal Conditioning Wheatstone Resistive Bridge Sensors

How To Calculate The Power Gain Of An Opamp

RC Circuits and The Oscilloscope Physics Lab X

ANADOLU UNIVERSITY DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

Basic Electronics Prof. Dr. Chitralekha Mahanta Department of Electronics and Communication Engineering Indian Institute of Technology, Guwahati

DEGREE: Bachelor in Biomedical Engineering YEAR: 2 TERM: 2 WEEKLY PLANNING

Gates, Circuits, and Boolean Algebra

OPERATIONAL AMPLIFIER

Fox-2 MPPT Unit Testing

Chapter 12: The Operational Amplifier

LABORATORY 10 TIME AVERAGES, RMS VALUES AND THE BRIDGE RECTIFIER. Bridge Rectifier

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

Experiment 8 : Pulse Width Modulation

Bipolar Transistor Amplifiers

Homework Assignment 03

Operational Amplifiers

COMMON-SOURCE JFET AMPLIFIER

Experiment 5. Strain Gage Measurements

Lab #9: AC Steady State Analysis

Zero voltage drop synthetic rectifier

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

Designing Gain and Offset in Thirty Seconds

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

Using Op Amps As Comparators

The full wave rectifier consists of two diodes and a resister as shown in Figure

WHY DIFFERENTIAL? instruments connected to the circuit under test and results in V COMMON.

Objectives The purpose of this lab is build and analyze Differential amplifiers based on NPN transistors (or NMOS transistors).

Programmable-Gain Transimpedance Amplifiers Maximize Dynamic Range in Spectroscopy Systems

Digital to Analog Converter. Raghu Tumati

Application Report SLOA030A

A Short Discussion on Summing Busses and Summing Amplifiers By Fred Forssell Copyright 2001, by Forssell Technologies All Rights Reserved

Small Signal Analysis of a PMOS transistor Consider the following PMOS transistor to be in saturation. Then, 1 2

How To Close The Loop On A Fully Differential Op Amp

unit:mm 3022A-DIP12F

b 1 is the most significant bit (MSB) The MSB is the bit that has the most (largest) influence on the analog output

ES250: Electrical Science. HW7: Energy Storage Elements

Laboratory Manual. ELEN-325 Electronics

Lab 3 Rectifier Circuits

Simple Op-Amp Circuits

Operational Amplifier as mono stable multi vibrator

AC : MEASUREMENT OF OP-AMP PARAMETERS USING VEC- TOR SIGNAL ANALYZERS IN UNDERGRADUATE LINEAR CIRCUITS LABORATORY

Welcome to this presentation on Driving LEDs Resistors and Linear Drivers, part of OSRAM Opto Semiconductors LED Fundamentals series.

Transcription:

Lab 2 Introduction to Op Amps Lab Performed on September 17, 2008 by Nicole Kato, Ryan Carmichael, and Ti Wu E11 Laboratory Report Submitted October 1, 2008 Department of Engineering, Swarthmore College 1

Abstract: In this laboratory, an operational amplifier was connected with resistors two circuits, an inverting op amp circuit and a non-inverting programmable-gain circuit with two switches. Tests were then performed to determine the input and output voltages (V in and V out ) of the inverting op amp configuration and the four non-inverting configurations. V out was then divided by V in, determining the gain of each configuration. This value was then compared to the theoretical gain determined by a function of resistors specific to each configuration. Our results are summarized in Table 1 below. Configuration Sb Sa Theoretical Gain (actual resistors) Measured Gain (without distortions) Percent Error (%) Inverting -- -- -1.993-2.02 1.355 Non-inverting open open 1.000 0.945 5.50 Non-inverting open closed 2.00 2.04 2.00 Non-inverting closed open 2.99 2.97 0.667 Non-inverting closed closed 3.99 3.98 0.251 Table 1: Summary of Gains Introduction: An operational amplifier, or op amp (shown in Figure 1), is an electronic circuit that can control both the voltage and current of electrical circuits, often used in thermostats, strain gages, and accelerometers, among other things. In our lab, we used the LM741 operational amplifier, Figure 1: A Circuit Symbol for an Op Amp 2

commonly produced by National Semiconductor. A full understanding of op amps requires an understanding of the circuit s components, including diodes and transistors. However, these complicated circuits can be treated as black box devices by addressing its terminal behavior as a function, rather than the circuit s actual composition. When used in a circuit with resistors and a necessary dependent source, the op amp can be used to sum, scale, subtract, and perform other useful functions. When used with inductors and capacitors, it is used in integrating and differentiating circuits. Theory: The LM741 Op amps have eight terminals, but we will only examine five of them: the VS+, VS-, inverting input (V - ), non-inverting input (V + ), and output (Vout ). The VS+ and VS- are the positive and negative power supplies. The output voltage cannot be greater than the positive power supply nor can it be less than the negative power supply. In an ideal op amp, no current flows into the inverting and non-inverting inputs, although current can flow out of the input-controlled output. There is also no voltage difference between the inputs. One of these inputs cannot have its voltage change without the other input either increasing or decreasing in voltage to match. This ensures linear operation and keeps the output at the same voltage. This equilibrium is maintained by negative feedback through a feedback loop. Feedback loops direct the output voltage back to the inverting input. This negative feedback drives the circuit back to equilibrium in a manner specific to the circuit configuration. For non-ideal op amp there is a voltage difference between the inputs. Because the inputs are not equal, the output cannot return to its original value and the op amp leaves the linear region. 3

Here negative feedback, in the circuit of which the op amp is a part of, limits the differences between the two inputs, allowing us to assume linear operation to a good approximation. In this lab, op amps are used in two different configurations: inverting and non-inverting. With the inverting configuration shown below in Figure 2, the input voltage is connected to the inverting input and the non-inverting input is connected to ground. This causes gain, or the ratio of the output to input, to be negative, which in turn causes the sine waves of the output and input to oscillate at an offset of Figure 2: Inverting Op Amp Configuration pi. The output voltage then appears to be an inversion of the input voltage. Also, for this configuration, the feedback loop sends output voltage back through Rf into the inverting input. Were Vin to rise, it would increase the voltage at the input directly as well as decrease the output voltage. The output voltage would cause the feedback loop to decrease the voltage at the inverting input returning the system to equilibrium. Kirchoff s current law states that the current going into a node must be equal to the current going out of the node. Using this fact in our analysis, we can determine the current into and out of nodes A and B and, in the math Node A Σ I = 0 = Vin - (R1 * I) Vin = (R1 * I) Node B Σ I = 0 = Vout + (Rf * I) Vout = -(Rf * I) Vout/Vin = Gain = -(Rf * I)/(R1 * I) = -Rf / R1 right, find that the gain is -Rf / R1. The negative sign indicates that this configuration is inverting. 4

In the non-inverting configuration below in Figure 3, the voltage source is connected to the non-inverting input, and the inverting input is connected to the output and to ground through resistors. This causes the gain to be positive. When we look at the sine waves of the output and input verses time we can see that they oscillate with no offset and so the output does not appear inverted. In this configuration, the feedback loop sends the output voltage through Rf into the inverting input. Should Vin increase the Figure 3: Non-Inverting Op Amp Configuration output would also increase. The feedback loop would then send the output voltage through Rf and into the non-inverting terminal, which would decrease the output voltage, returning the circuit to equilibrium. Kirchoff s voltage law states that the voltage of a closed loop must sum to zero. Using this fact, we summed the voltages around loops 1 and 2 (shown above) and solved for Vout and Vin. From this, in the math below, we found that the gain was 1 + (Rf/R1). The positive value indicates that this configuration is non-inverting. Loop 1 ΣV = 0 = Vout -(Rf * I) - (R1 * I) Vout = I * (Rf + R1) Loop 2 ΣV = 0 = Vin + (V+) - (V-) - R1I 0 = Vin - (R1 * I) Vin = R1 * I Vout/Vin = Gain = [I * (Rf + R1)] / [R1 * I] = 1 + (Rf/R1) 5

Furthermore, in the noninverting programmable-gain op amp configuration shown in Figure 4, we see that there are two switches that can be either open or closed, allowing us to adjust the Figure 4: Op Amp Configuration With Switches gain in equal increments by opening or closing the switches. Table 2 summarizes the formulas for the theoretical gain for various switch positions. S b S a Gain open open 1 + (R f / ) open closed 1 + (R f /R a ) closed open 1 + (R f /R b ) closed closed 1 + (R f /(R a R b ) Table 2: Theoretical Gain Formulas for Various Switch Positions If Ra=20kΩ, Rb=10kΩ, and Rf=20kΩ, the numerical gains are adjusted by one through the opening and closing of the switches. These gains are shown below in Table 3. S b S a Gain open open 1.000 open closed 2.00 closed open 3.00 closed closed 4.00 Table 3: Theoretical Gain for Various Switch Positions 6

Procedure: This section will be completed by Ti Wu with the assistance of Professor Cheever and handed in later. Results: a. The Inverting Configuration: Theoretically, for the inverting configuration shown in Figure 2, the gain should equal Rf / R1. Were the resistors Rf and R1 exactly 20 and 10 kω, the gain would be -2.00. However, we measured the resistance of R1 as 9.88 kω and Rf as 19.69 kω, which yields a theoretical gain of -1.993. We first determined the measured gain by taking the ratio of the peak-to-peak voltages of Vout and Vin read directly off of the oscilloscope (the oscilloscope output is Figure 5 in Appendix E). This method determined a gain of -1.941. This value, however, includes distortion: blips and static in the oscilloscope graphs caused the oscilloscope to determine the Vout and Vin inaccurately. To find a more accurate gain, we measured the difference in height between the Vout and Vin s maximum and minimum values using a ruler, and divided the values to determine our measured gain with less distortion, which we determined to be -2.02. In addition, we created a MultiSim model (Figure 6 below) of the circuit and used it to evaluate the gain with 20 kω and 10 kω resistors (Figures 7,8 below), yielding a gain of -2.01. All of these results are summarized in Table 3 below. It should also be noted that our supply voltages were 11.81 V and -11.90 V. If our output voltage was larger it could not have been greater than 11.81 V. Similarly, the output voltage could not have been less than -11.90 V. Vin (with distortion) (v) Vout (with distortion) (v) Measured Gain (with distortion) Measured Gain (without distortion) Theoretical Gain (ideal resistors) Theoretical Gain (actual resistors) MultiSim Gain Note: Percent Error = Measured Gain (without distortions)- Theoretical Gain (actual resistors) * 100 Theoretical Gain (actual resistors) 7 Percent Error (%) 1.01 1.96-1.941-2.02-2.00-1.993-2.01 1.355 Table 3: Gains for the Inverting Configuration

Figure 6: MultiSim Model of Inverting Configuration Figure 7: MultiSim Simulation of Oscilloscope Reading 8

Figure 8: MultiSim Graphical Determination of Gain (Slope) b. The Non-Inverting Programmable-Gain Configuration: For the non-inverting configuration shown in Figure 3, we calculated the gain for the four possible permutations of switch positions (both switches open, Sb open with Sa closed, Sb closed with Sa open, and both closed). Similar to the inverting configuration, we determined the gain with distortion by taking direct readings from the oscilloscope (oscilloscope readouts are Figures 9-12 in Appendix E) and then determined the gain without distortion by determining Vout and Vin with a ruler. We also measured the values of our resistors as Ra = 19.69 kω, Rb=9.88 kω, Rf=19.69 kω. We plugged these values into Table 2 to determine more accurate theoretical gains. The results of these calculations are shown in Table 4 below. Vin (with distortion) (v) Vout (with distortion) (v) Sb Sa Measured Gain (with distortion) Measured Gain (without distortion) Theoretical Gain (ideal resistors) Theoretical Gain (actual resistors) Percent Error (%) 1.03 1.32 open open 1.282 0.945 1.000 1.000 5.50 1.02 2.20 open closed 2.16 2.04 2.00 2.00 2.00 1.02 3.14 closed open 3.08 2.97 3.00 2.99 0.667 1.03 4.14 closed closed 4.02 3.98 4.00 3.99 0.251 Table 4: Theoretical and Actual Gains for Various Switch Configurations 9

Discussion: For both the inverting configuration and the non-inverting programmable-gain configuration, our measured gains were very close to the theoretical gains. With the exception of one measurement, all of our measured gains were within 2.00% of the theoretical gain. The exception, the non-inverting configuration with both switches open, logically has the highest percent error because it produces the smallest gain, and thus slight errors result in larger percentage errors. In addition to having the most oscilloscope distortion, the measured value only differed from the theoretical value by 0.05. For comparison, the non-inverting configuration with Sb open and Sa closed (2.00% error) had measured and theoretical values that differed by 0.04. When working with such small ratios, every 0.01 of voltage, resistance, and gain makes a significant impact on the percent error of the experiment. Such small error comes both from machine and human error. The resistors were accurate to 5%, the oscilloscope produced blips and static that distorted gain by as much as 0.3, in lab we noted that the Vin and Vout had an error of about 0.02 V, and manuallydetermined gain from the oscilloscope output is only accurate to about 0.02. Furthermore, rounding a value such as 0.005 to 0.01 produces an error significant enough to be noted. Sources of error considered, all of the measured values fall reasonably within error of the theoretical values. This fact provides evidence that the op amps used in the E11 lab can be considered ideal op amps to a good degree of accuracy, providing the other equipment used are of similar accuracy to that of the equipment used in the E11 Introduction to Op Amps lab. If more accurate equipment were used and the theoretical value still differed from the measured value, then the error could not be feasibly attributed to the equipment and procedures used, revealing error due to a non-ideal op amp. However, for Engineering 11 we can consider the op amps used ideal. 10

Conclusions and Further Work: In conclusion, we obtained the following data for our lab: Configuration Sb Sa The measured results obtained are within error of the theoretical values for a given configuration. This suggests that the op amps used can be considered ideal in the configurations we used. To further check this conclusion, the experiment could be redone using a more accurate oscilloscope, more accurate resistors, and a more consistent voltage source. However, in the scope of Engineering 11, this is unnecessary. Theoretical Gain (actual resistors) Measured Gain (without distortions) Percent Error (%) Inverting -- -- -1.993-2.02 1.355 Non-inverting open open 1.000 0.945 5.50 Non-inverting open closed 2.00 2.04 2.00 Non-inverting closed open 2.99 2.97 0.667 Non-inverting closed closed 3.99 3.98 0.251 Table 1: Summary of Gains 11

Acknowledgements: We would like to acknowledge the following sources for their aid in this lab report: Cheever, Erik. "E11 Formal Lab Report Format." Swarthmore College. 28 Sep. 2008 <http://www.swarthmore.edu/natsci/echeeve1/class/e11/formal_report.html>. Cheever, Erik. "E11 Lab #2: Lab Procedure." Swarthmore College. 28 Sep. 2008 <http://www.swarthmore.edu/natsci/echeeve1/class/e11/e11l2/lab2(labprocedure).html >. Cheever, Erik. "E11 Lab #2: Prelab." Swarthmore College. 28 Sep. 2008 <http://www.swarthmore.edu/natsci/echeeve1/class/e11/e11l2/lab2(prelab).html>. Nilsson, James W, and Susan Riedel. Electric Circuits (8th Edition). Alexandria, VA: Prentice Hall, 2007. In addition, we would like to thank Anne Krikorian for proof reading our grammar, punctuation, etc. 12

Appendices A-D: Assigned Questions These sections will be completed by Ti Wu with the assistance of Professor Cheever and handed in later. Appendix E: Oscilloscope Readouts for All Five Configurations Vout = light line Vin = dark line Voltage vs. Time: Inverting Configuration (measured gain without distortion: -2.02) Figure 5: Oscilloscope Output for the Inverting Configuration 13

Voltage vs. Time: Sb=Closed, Sa=Closed (measured gain without distortion: 4.02) Vout = light line Vin = dark line Figure 9: Oscilloscope Output for Sb=Closed, Sa=Closed Voltage vs. Time: Sb=Closed, Sa=Open (measured gain without distortion: 3.08) Vout = light line Vin = dark line Figure 10: Oscilloscope Output for Sb=Closed, Sa=Open 14

Voltage vs. Time: Sb=Open, Sa=Closed (measured gain without distortion: 2.16) Vout = light line Vin = dark line Figure 11: Oscilloscope Output for Sb=Open, Sa=Closed Voltage vs. Time: Sb=Open, Sa=Open (measured gain without distortion: 0.945) Vout = light line Vin = dark line Figure 12: Oscilloscope Output for Sb=Open, Sa=Open 15