Nonlinear opamp circuits

Similar documents
Superposition theorem

Parallel DC circuits

PN junctions. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Ohm s Law. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Ohm s Law. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

DOWNLOAD PDF AC CIRCUIT ANALYSIS PROBLEMS AND SOLUTIONS

Simultaneous equations for circuit analysis


Algebraic equation manipulation for electric circuits

Logarithms for analog circuits

Logarithms for analog circuits

Basic algebra and graphing for electric circuits

Active loads in amplifier circuits

Digital logic signals

Digital logic signals

Algebraic substitution for electric circuits

Algebraic substitution for electric circuits

Decibel measurements

Voltage, Current, and Resistance

Specific resistance of conductors

ELTR 135 (Operational Amplifiers 2), section 2

DC metrology. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Name Date Time to Complete

Circuit Analysis and Ohm s Law

Kirchhoff s Laws. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Summary Notes ALTERNATING CURRENT AND VOLTAGE

Atomic structure. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

AC network analysis. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Physics 364, Fall 2012, reading due your answers to by 11pm on Thursday

ELTR 105 (DC 2), section 1

Please bring the task to your first physics lesson and hand it to the teacher.

Circuits for Analog System Design Prof. Gunashekaran M K Center for Electronics Design and Technology Indian Institute of Science, Bangalore

Basic electromagnetism and electromagnetic induction

INST 155 (Networks and Systems), section 1

Boolean algebra. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

ECEE 352 Analog Electronics. DC Power Supply Winter 2016

ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer

BRIDGE CIRCUITS EXPERIMENT 5: DC AND AC BRIDGE CIRCUITS 10/2/13

Experiment 4. RC Circuits. Observe and qualitatively describe the charging and discharging (decay) of the voltage on a capacitor.

Phasor mathematics. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Lecture for Week 2 (Secs. 1.3 and ) Functions and Limits

STATEWIDE CAREER/TECHNICAL EDUCATION COURSE ARTICULATION REVIEW MINUTES

6.301 Solid-State Circuits Recitation 14: Op-Amps and Assorted Other Topics Prof. Joel L. Dawson

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction: Op-amps in Negative Feedback

Series, Parallel, and other Resistance

Knowledge Integration Module 1 Fall 2016

If an Ohm is the place where a Volt lives, Watt is db said for current? Does it live in a bun?

What to Add Next time you update?

EXPERIMENT 12 OHM S LAW

Magnetism. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Designing Information Devices and Systems I Fall 2015 Anant Sahai, Ali Niknejad Homework 8. This homework is due October 26, 2015, at Noon.

Module 1, Add on math lesson Simultaneous Equations. Teacher. 45 minutes

Calculus for electric circuits

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

AC "POLARITY" Complex numbers are useful for AC circuit analysis because they provide a

1 Measurement Uncertainties

Physics 2020 Lab 5 Intro to Circuits

College Algebra Through Problem Solving (2018 Edition)

analyse and design a range of sine-wave oscillators understand the design of multivibrators.

Administrative-Master Syllabus form approved June/2006 revised Page 1 of 1

Lecture 5: Using electronics to make measurements

Name Date Time to Complete. NOTE: The multimeter s 10 AMP range, instead of the 300 ma range, should be used for all current measurements.

Where I is the current in Amperes, q is the charge in coulombs, and t is the time in seconds.

SIMPLE D.C. CIRCUITS AND MEASUREMENTS Background

College Physics 201 Graphing Review and Analysis

ABE Math Review Package

Calculus concepts and applications

Today we begin the first technical topic related directly to the course that is: Equilibrium Carrier Concentration.

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

Capacitance. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

(Refer Slide Time: 1:49)

MA 3260 Lecture 10 - Boolean Algebras (cont.) Friday, October 19, 2018.

Capacitors. Chapter How capacitors work Inside a capacitor

Lecture 5: Using electronics to make measurements

ECE2210 Final given: Spring 08

E40M. Op Amps. M. Horowitz, J. Plummer, R. Howe 1

Static electricity. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

or Op Amps for short

Prepare for this experiment!

RC Circuits. 1. Designing a time delay circuit. Introduction. In this lab you will explore RC circuits. Introduction

#29: Logarithm review May 16, 2009

CHAPTER D.C. CIRCUITS

Electronic Circuits 1. Transistor Devices. Contents BJT and FET Characteristics Operations. Prof. C.K. Tse: Transistor devices

Analog Integrated Circuit Design Prof. Nagendra Krishnapura Department of Electrical Engineering Indian Institute of Technology, Madras

Time Varying Circuit Analysis

PHY 123 Lab 1 - Error and Uncertainty and the Simple Pendulum

Voltage (AC) period, T

T U T O R I A L : A M O D E L F O R C I R C U I T S

Electric Current Unlike static electricity, electric current is a continuous flow of charged particles (electricity). For current to flow, there must

Instructor Notes for Chapters 3 & 4

Lab 5 - Capacitors and RC Circuits

Biasing BJTs CHAPTER OBJECTIVES 4.1 INTRODUCTION

Chapter 5 Simplifying Formulas and Solving Equations

Prerequisites: Successful completion of PHYS 2222 General Physics (Calculus) with a grade of C or better.

EE 241 Experiment #5: TERMINAL CHARACTERISTICS OF LINEAR & NONLINEAR RESISTORS 1

farads or 10 µf. The letter indicates the part tolerance (how close should the actual value be to the marking).

UNIVERSITY OF CALIFORNIA, BERKELEY College of Engineering Department of Electrical Engineering and Computer Sciences

Solutions For the problem setup, please refer to the student worksheet that follows this section.

IMPERIAL COLLEGE OF SCIENCE, TECHNOLOGY AND MEDICINE UNIVERSITY OF LONDON DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2010

Stephen F Austin. Exponents and Logarithms. chapter 3

Transcription:

Nonlinear opamp circuits This worksheet and all related files are licensed under the Creative Commons Attribution License, version 1.0. To view a copy of this license, visit http://creativecommons.org/licenses/by/1.0/, or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA. The terms and conditions of this license allow for free copying, distribution, and/or modification of all licensed works by the general public. Resources and methods for learning about these subjects (list a few here, in preparation for your research): 1

Question 1 In the early 1970 s, the Fluke company invented a revolutionary new RMS sensor integrated circuit, used to convert an arbitrary waveform into its DC-equivalent (RMS) voltage. The device uses two precision resistors to heat a pair of matched transistors connected as a differential pair: V R 3 R 4 R 1 R 2 Q 1 Q 2 V out Describe how this circuit functions. What physical principle(s) does it use to derive an RMS value for? Why is it important that all identical components (transistors, resistors) be precisely matched? file 01014 Answer 1 This circuit exploits the temperature sensitivity of transistors to sense thermal balance between the two resistors R1 and R2. By definition, whatever DC voltage produces the same heat dissipation in a given resistance as an AC voltage is the RMS value of that AC voltage. Notes 1 This question provides a good opportunity to review the function of differential pair circuits, and also the concept of RMS AC measurement. Ask your students how temperature influences the conductivity of bipolar junction transistors, and how the opamp s connection to resistor R2 forms a negative feedback loop. 2

Question 2 The relationship between voltage and current for a PN junction is described by this equation, sometimes referred to as the diode equation, or Shockley s diode equation after its discoverer: I D = I S (e qv D NkT 1) Where, I D = Current through the PN junction, in amps I S = PN junction saturation current, in amps (typically 1 picoamp) e = Euler s number 2.718281828 q = Electron unit charge, 1.6 10 19 coulombs V D = Voltage across the PN junction, in volts N = Nonideality coefficient, or emission coefficient (typically between 1 and 2) k = Boltzmann s constant, 1.38 10 23 T = Junction temperature, degrees Kelvin At first this equation may seem very daunting, until you realize that there are really only three variables in it: I D, V D, and T. All the other terms are constants. Since in most cases we assume temperature is fairly constant as well, we are really only dealing with two variables: diode current and diode voltage. Based on this realization, re-write the equation as a proportionality rather than an equality, showing how the two variables of diode current and voltage relate: I D... Based on this simplified equation, what would an I/V graph for a PN junction look like? How does this graph compare against the I/V graph for a resistor? I D V D file 00712 Answer 2 Simplified proportionality: I D e VD The graph described by the diode formula is a standard exponential curve, rising sharply as the independent variable (V D, in this case) increases. The corresponding graph for a resistor, of course, is linear. 3

Notes 2 Ask your students to sketch their own renditions of an exponential curve on the whiteboard for all to see. Don t just let them get away with parroting the answer: It s an exponential curve. 4

Question 3 Plot the transfer function (V out versus ) for this opamp circuit, and explain how the circuit works: V out V out What type of mathematical function is represented by this circuit? file 01015 Answer 3 This circuit represents an exponential function (y e x ): V out Notes 3 The direction of the transfer function curve may surprise some students. Ask them why the curve goes down (negative) for increasingly positive input voltages. 5

Question 4 We know that an opamp connected to a voltage divider with a voltage division ratio of 1 2 will have an overall voltage gain of 2, and that the same circuit with a voltage division ratio of 2 3 will have an overall voltage gain of 1.5, or 3 2 : V out = 2 () V 2 (V out = 3 in) 1 2 V out Voltage divider circuit 2 Vout 3 Voltage divider circuit There is definitely a mathematical pattern at work in these noninverting opamp circuits: the overall voltage gain of the circuit is the mathematical inverse of the feedback network s voltage gain. Building on this concept, what do you think would be the overall function of the following opamp circuits? V out =??? V out =??? y x Feedback network y x Feedback network y = x 4 y = x 2 file 02464 6

Answer 4 For the left-hand circuit: V out = 4 For the right-hand circuit: V out = The result of placing a mathematical function in the feedback loop of a noninverting opamp circuit is that the output becomes the inverse function of the input: it literally becomes the value of x needed to solve for the input value of y: y x = f -1 (y) y x y = f(x) Feedback network Notes 4 What is shown in this question and answer is a stark example of the power of negative feedback in a mathematical system. Here, we see the opamp s ability to solve for the input variable in an equation which we know the output value of. To state this in simpler terms, the opamp does algebra for us by manipulating the feedback network s equation to solve for x given an input signal of y. 7

Question 5 Plot the transfer function (V out versus ) for this opamp circuit, and explain how the circuit works: V out V out What type of mathematical function is represented by this circuit? file 01016 Answer 5 This circuit represents a logarithmic function (y lnx): V out Notes 5 The direction of the transfer function curve may surprise some students. Ask them why the curve goes down (negative) for increasingly positive input voltages. Ask your students how they obtained this transfer function curve. There are conceptual methods for obtaining it, as well as algebraic methods. It would be interesting to compare more than one of these methods in a class discussion, and have students gain insight from each others methods. 8

Question 6 Predict how the operation of this exponentiator circuit will be affected as a result of the following faults. Consider each fault independently (i.e. one at a time, no multiple faults): D 1 R 1 U 1 V out Resistor R 1 fails open: Solder bridge (short) across resistor R 1 : Diode D 1 fails open: Diode D 1 fails shorted: For each of these conditions, explain why the resulting effects will occur. file 03803 Answer 6 Resistor R 1 fails open: V out saturates in the negative direction. Solder bridge (short) across resistor R 1 : V out goes to zero volts. Diode D 1 fails open: V out goes to zero volts. Diode D 1 fails shorted: V out saturates in the negative direction. Notes 6 The purpose of this question is to approach the domain of circuit troubleshooting from a perspective of knowing what the fault is, rather than only knowing what the symptoms are. Although this is not necessarily a realistic perspective, it helps students build the foundational knowledge necessary to diagnose a faulted circuit from empirical data. Questions such as this should be followed (eventually) by other questions asking students to identify likely faults based on measurements. 9

Question 7 Predict how the operation of this logarithm extractor circuit will be affected as a result of the following faults. Consider each fault independently (i.e. one at a time, no multiple faults): R 1 D 1 U 1 V out Resistor R 1 fails open: Solder bridge (short) across resistor R 1 : Diode D 1 fails open: Diode D 1 fails shorted: For each of these conditions, explain why the resulting effects will occur. file 03804 Answer 7 Resistor R 1 fails open: V out goes to zero volts. Solder bridge (short) across resistor R 1 : V out saturates in the negative direction. Diode D 1 fails open: V out saturates in the negative direction. Diode D 1 fails shorted: V out goes to zero volts. Notes 7 The purpose of this question is to approach the domain of circuit troubleshooting from a perspective of knowing what the fault is, rather than only knowing what the symptoms are. Although this is not necessarily a realistic perspective, it helps students build the foundational knowledge necessary to diagnose a faulted circuit from empirical data. Questions such as this should be followed (eventually) by other questions asking students to identify likely faults based on measurements. 10

Question 8 Plot the transfer function (V out versus ) for this opamp circuit: V out V out What type of mathematical function is represented by this circuit? file 01017 Answer 8 This circuit (ideally) represents a linear function (y x): V out 11

Notes 8 It should be obvious from inspection that the two opamp circuits represent inverse mathematical functions. Ask your students why the final transfer function is linear rather than nonlinear. After all, they should realize that each of the opamp circuits, taken individually, are very nonlinear. Why would their combined effect be linear? An interesting exercise would be to have your students perform inverse functions like this on their hand calculators, first calculating an exponential function (f(x) = e x ), then a logarithmic (g(x) = lnx), and verifying the combined functions output (f[g(x)] = x). 12

Question 9 Identify the mathematical function of this circuit (if you look closely, you ll notice that the transistors are connected in such a way that they act very similar to diodes): x R y R Note: the two resistors labeled R are equal in value. file 02693 Answer 9 Notes 9 This circuit takes the square root of the input signal (y = x). Follow-up question: how could we modify this circuit so as to take the cube root of the input signal? This circuit is not nearly as complex as it may appear at first, if students take the time to isolate it section-by-section and identify the mathematical function each section performs. 13

Question 10 Identify the mathematical function of this circuit (if you look closely, you ll notice that the transistors are connected in such a way that they act very similar to diodes): x R R y Note: the two resistors labeled R are equal in value. file 01019 Answer 10 This circuit squares the input signal (y = x 2 ). Challenge question: why are transistors used instead of diodes, since they have been effectively disabled to act as such? Notes 10 This circuit is not nearly as complex as it may appear at first, if students take the time to isolate it section-by-section and identify the mathematical function each section performs. 14

Question 11 This square root extraction circuit used to work fine, but then one day it stopped outputting the square root of the input signal, and instead simply reproduced the input signal with a gain of 1: R 1 Q 1 x U 1 U 2 R 2 Q 2 R 4 U 3 y R 3 What could have gone wrong with this circuit to cause it to stop calculating the square root of the input? Be as detailed as possible in your answer. file 03805 Answer 11 Possibly R 2 failed shorted or R 3 failed open. I ll let you explain why either of these faults could cause the problem described. Notes 11 One must understand what is happening in this circuit and why in order to successfully diagnose the problem. Discuss this carefully with your students. 15

Question 12 Identify at least two independent component faults which could cause this square root extraction circuit to always output 0 volts instead of the square root of input voltage x as it should: R 1 Q 1 x U 1 U 2 R 2 Q 2 R 4 U 3 y R 3 Explain why each of your proposed faults would cause the output to stay at 0 volts. file 03806 Answer 12 Notes 12 Here are just a few possibilities: resistor R 2 failed open, solder bridge across resistor R 3, Q 2 failed open. Students will likely identify opamp U 3 as a potential fault, but this is really too easy. Encourage them to seek more interesting fault possibilities! 16

Question 13 Suppose that in the course of building this exponential circuit you encounter severe inaccuracies: the circuit seems to work some of the time, but often its output deviates substantially (as much as /- 10%) from what it ought to be: Intended transfer function: y = x 0.5 x R y R Based on what you know of the components in this circuit, what could be varying so much as to cause these errors? What do you recommend as a solution to the problem? file 01020 17

Answer 13 The solution is to make sure both transistors are precisely matched, at held at the exact same temperature: x R y R Challenge question: is there a part we could order that contains two matched, heat-stabilized transistors for an application such as this? Are there any other circuit applications you can think of that could benefit from using a precision-matched pair of transistors? Notes 13 Ask your students to explain how they know temperature is an influencing factor in the accuracy of this circuit. Ask them to show any equations describing transistor behavior that demonstrate temperature dependence. This question provides an opportunity to review the meaning of fractional exponents with your students. What, exactly, does y = x 0.5 mean? Ask your students to write this expression using more common symbols. Also, ask them what would have to be modified in this circuit to alter the exponent s value. As for the challenge question, ask your students to produce a part number for the precision-matched transistor pair they find. Where did they obtain the information on this component? 18

Question 14 Explain why carefully matched resistors and transistors are necessary in log/antilog circuits, using your own words. Also, explain why the operational amplifiers themselves need not be matched as precisely as the discrete components. file 03807 Answer 14 Notes 14 I said, your own words, not mine! What are you looking here for? This question challenges students to identify the weak points of log/antilog circuits, explaining why certain component tolerances are critical and others are not. This is a good test of students understanding regarding log/antilog circuits and their underlying theory. 19

Question 15 Design an op-amp circuit that divides one quantity (x) by another quantity (y) using logarithms. To give you a start on this circuit, I ll provide the initial logarithmic op-amp modules in this diagram: x - ln x y - ln y Note: it will be helpful for your analysis to write the mathematical expression at each op-amp output in your circuit, so you may readily see how the overall math function is constructed from individual steps. file 01023 20

Answer 15 x - ln x y - ln x - (- ln y) (ln x - ln y) y = e x y = y - ln y Notes 15 The circuit shown in the answer is a very common logarithmic construction: a log-ratio circuit, useful for many operations other than simple division. This question challenges students to put together the logarithm, antilogarithm, and differential op-amp circuits in a way that achieves the final design goal. Perhaps the most challenging aspect of this problem is managing the sign reversals. 21

Question 16 Find a datasheet for the AD538, an integrated circuit manufactured by Analog Devices. Then, read it carefully and explain how it is able to perform arithmetic functions such as multiplication, division, powers, and roots. file 02692 Answer 16 Notes 16 I ll leave this up to you to research and to your classmates and instructor to discuss! This question is destined for obsolescence, as one day the AD538 will no longer be manufactured. Until then, it is a fine piece of engineering, showcasing the power of logarithms as a computational aid in analog circuitry. 22

Question 17 Don t just sit there! Build something!! Learning to mathematically analyze circuits requires much study and practice. Typically, students practice by working through lots of sample problems and checking their answers against those provided by the textbook or the instructor. While this is good, there is a much better way. You will learn much more by actually building and analyzing real circuits, letting your test equipment provide the answers instead of a book or another person. For successful circuit-building exercises, follow these steps: 1. Carefully measure and record all component values prior to circuit construction. 2. Draw the schematic diagram for the circuit to be analyzed. 3. Carefully build this circuit on a breadboard or other convenient medium. 4. Check the accuracy of the circuit s construction, following each wire to each connection point, and verifying these elements one-by-one on the diagram. 5. Mathematically analyze the circuit, solving for all voltage and current values. 6. Carefully measure all voltages and currents, to verify the accuracy of your analysis. 7. If there are any substantial errors (greater than a few percent), carefully check your circuit s construction against the diagram, then carefully re-calculate the values and re-measure. Avoid using the model 741 op-amp, unless you want to challenge your circuit design skills. There are more versatile op-amp models commonly available for the beginner. I recommend the LM324 for DC and low-frequency AC circuits, and the TL082 for AC projects involving audio or higher frequencies. As usual, avoid very high and very low resistor values, to avoid measurement errors caused by meter loading. I recommend resistor values between 1 kω and 100 kω. One way you can save time and reduce the possibility of error is to begin with a very simple circuit and incrementally add components to increase its complexity after each analysis, rather than building a whole new circuit for each practice problem. Another time-saving technique is to re-use the same components in a variety of different circuit configurations. This way, you won t have to measure any component s value more than once. file 00705 Answer 17 Let the electrons themselves give you the answers to your own practice problems! 23

Notes 17 It has been my experience that students require much practice with circuit analysis to become proficient. To this end, instructors usually provide their students with lots of practice problems to work through, and provide answers for students to check their work against. While this approach makes students proficient in circuit theory, it fails to fully educate them. Students don t just need mathematical practice. They also need real, hands-on practice building circuits and using test equipment. So, I suggest the following alternative approach: students should build their own practice problems with real components, and try to mathematically predict the various voltage and current values. This way, the mathematical theory comes alive, and students gain practical proficiency they wouldn t gain merely by solving equations. Another reason for following this method of practice is to teach students scientific method: the process of testing a hypothesis (in this case, mathematical predictions) by performing a real experiment. Students will also develop real troubleshooting skills as they occasionally make circuit construction errors. Spend a few moments of time with your class to review some of the rules for building circuits before they begin. Discuss these issues with your students in the same Socratic manner you would normally discuss the worksheet questions, rather than simply telling them what they should and should not do. I never cease to be amazed at how poorly students grasp instructions when presented in a typical lecture (instructor monologue) format! A note to those instructors who may complain about the wasted time required to have students build real circuits instead of just mathematically analyzing theoretical circuits: What is the purpose of students taking your course? If your students will be working with real circuits, then they should learn on real circuits whenever possible. If your goal is to educate theoretical physicists, then stick with abstract analysis, by all means! But most of us plan for our students to do something in the real world with the education we give them. The wasted time spent building real circuits will pay huge dividends when it comes time for them to apply their knowledge to practical problems. Furthermore, having students build their own practice problems teaches them how to perform primary research, thus empowering them to continue their electrical/electronics education autonomously. In most sciences, realistic experiments are much more difficult and expensive to set up than electrical circuits. Nuclear physics, biology, geology, and chemistry professors would just love to be able to have their students apply advanced mathematics to real experiments posing no safety hazard and costing less than a textbook. They can t, but you can. Exploit the convenience inherent to your science, and get those students of yours practicing their math on lots of real circuits! 24