Lab 3: Instrumentation Amplifier YOUR NAME: YOUR SID: YOUR PARTNER’S NAME: YOUR PARTNER’S SID: Wheatstone Bridge LAB 3: Instrumentation Amplifier ELECTRICAL ENGINEERING 43/100 INTRODUCTION TO DIGITAL ELECTRONICS University Of California, Berkeley Department of Electrical Engineering and Computer Sciences Professor Ali Niknejad, Professor Michel Maharbiz Vincent Lee, Tony Dear, Toshitake Takahashi Lab Contents: I. II. III. IV. Lab Objectives Pre-­βLab Component a. Strain Gauges b. The Wheatstone Bridge c. The Instrumentation Amplifier Lab Component a. The Instrumentation Amplifier b. Why do we care? Lab Report Submissions a. Image Citations Pre-­βLab Score: ___/35 In-­βLab Score: ___/65 Total: ____/100 Lab 3: Wheatstone Bridge EE43/100 Spring 2012 V. Lee, T. Dear, T. Takahashi Lab Objectives In the previous lab, we learned about operational amplifiers and how to implement basic configurations such as the inverting and noninverting amplifiers, Schmitt trigger, and comparator. Now that you are familiar with them, we will build a sensor interface, one of the most common applications of op amps. In this lab you will also be introduced to the strain gauge, which is a variable resistor that increases or decreases in resistance based on the physical stress applied to it. The strain gauge you will use is attached to a metal bar, so you can put weights on the bar to bend it. This will cause the strain gauge to stretch, changing the dimensions of the variable resistor and its resistance. To measure this change in resistance, you will use a Wheatstone bridge configuration in conjunction with an instrumentation amplifier. Pre-­βLab Strain Gauges A strain gauge operates on the principles that physical strain deforms the physical dimensions of a material. We know from physics that resistance is proportional to the length of the material and inversely proportional to the width, given by the following equation: ππ π = π€βπππ π΄ = π€β π΄ When we deform the strain gauge resistor, we either increase the length π and decrease the area π΄, thus increasing resistance, or we decrease the length and increase the area π΄, decreasing resistance. Therefore the strain gauge is a variable resistor , represented as a resistor with an arrow through it as shown below. For the purposes of our calculations, we will neglect changes in cross-­βsectional area since it is very small. Variable Resistor Circuit Symboli The W heatstone Bridge To convert the change in resistance of the strain gauge into a voltage output, we use a Wheatstone bridge. Three resistors in this circuit have the same resistance as the nominal (unstrained) value of the strain gauge, so the output will be approximately proportional to the change in resistance ΔR arising from the fourth one. Fig. 2-­β32: Circuit for Wheatstone-­βbridge sensor1 2 Lab 3: Wheatstone Bridge EE43/100 Spring 2012 V. Lee, T. Dear, T. Takahashi For the above diagram of the Wheatstone bridge, show that the following relationship in an ideal case is true: π!"# ≅ π! π₯π ( ) 4 π Score: __/10 Unfortunately, in practicality it is almost impossible to construct a perfect Wheatstone bridge. The main problem is resistor tolerance, as was discussed in the resistors lab. Recall that resistor tolerance falls in the range of ±5% and the voltage difference we want to measure is given by two voltage dividers. On the other hand, the relative change in resistance that we want to observe is very small, on the order of 0.1%. This means that if we arbitrarily choose some 5% resistors, we will already have some difference π!""#$% before we apply strain to obtain the voltage change ππ from the strain gauge. Clearly π!""#$% β« ππ, so we need to somehow eliminate π!""#$% ; otherwise, after we apply the gain πΊ to the difference, we will get πΊ(π!""#$% + ππ), when we really want πΊ(ππ). To solve this problem, you are going to have to add or subtract voltage from one of the nodes in the Wheatstone bridge. This can be done with the 6V power supply. The output will then be connected to the instrumentation amplifier. 3 Lab 3: Wheatstone Bridge EE43/100 Spring 2012 V. Lee, T. Dear, T. Takahashi The Instrumentation Amplifier To summarize, the bridge circuit gives us a way to measure the resistance change of the strain gauge. One of the problems with using strain gauges is that the changes in resistance are on the order of 10!! , so they are very difficult to detect. The solution to this problem is to use a high gain operational amplifier to detect changes in the voltage levels, rather than changes in resistance. Below is the implementation of the instrumentation amplifier. Using the assumptions for ideal operational amplifiers, derive the following relationship between the input voltages and the output voltage: π£! = π ! + π ! + π ! π ! π ! π ! π£! − π£! 1 Sco re __/25 Figure 4-­β20: Instrumentation amplifier circuit. 1 Ulaby and Maharbiz, Circuits. Figure 4-­β20 4 Lab 3: Wheatstone Bridge EE43/100 Spring 2012 V. Lee, T. Dear, T. Takahashi (More Space) Lab Section The Instrumentation Amplifier Recall that the purpose of the Wheatstone bridge is to determine small differences in resistance through voltage measurements. Build the bridge circuit using a strain gauge as the variable resistor. Choose your other three resistances such that your circuit works approximately as you analyzed it in the pre-­βlab. You will need to first measure the resistance of the strain gauge without any added weight. Strain Gauge Resistance: ___________________ Resistance Value of Three Other Resistors: ______________________ Score: ___ / 5 Ideally, without added weight on the strain gauge, the output of the Wheatstone bridge will be 0 V. Due to resistance tolerance this won’t necessarily be true. Apply a DC offset to zero out the output voltage before applying weights to the strain gauge and measuring the change in voltage. Try to figure out a way, just using a separate power supply, that you can add voltage to change the output to zero. Next, build the instrumentation amplifier. Determine suitable resistances such that your circuit will work as desired. The voltage you want to amplify is the output of the Wheatstone bridge, so you will want to connect that as the input to the instrumentation amplifier. The final circuit to build is the instrumentation amplifier in Fig. 4-­β20 above. The inputs π£! and π£! correspond to the output terminals of the Wheatstone bridge. This circuit, which in itself requires three op amps, will be sufficiently complicated that debugging may get very difficult. Therefore, it is of the utmost importance that you test and verify each step along the way, so that there are no surprise failures at the end. 5 Lab 3: Wheatstone Bridge EE43/100 Spring 2012 V. Lee, T. Dear, T. Takahashi Separate the circuit into small, testable sub-­βcircuits. Test the Wheatstone bridge separately from the instrumentation amplifier can be tested. Make sure both work independently before connecting them together. The amplifier can be broken down further, as you can test the buffer stage of two op amps independently from the final amplification op amp. Patiently testing each sub-­βcircuit along the way can save a lot of headaches and time at the end. In the space provided below, state what resistances you chose to use for the instrumentation amplifier and why you chose those values. Also, compute the theoretical gain of the instrumentation amplifier that you built using your resistor values. Score __/10 Now take the appropriate measurements to determine the change in resistance of your strain gauge caused by the addition of a 200g weight at the end of the gauge. Explain all necessary measurements and calculations in the space provided below or on a separate sheet of paper. Note that you may need to measure the actual gain of your amplifier, which may be different from the theoretical gain previously calculated. Include this measurement and explain the discrepancy, if it exists. Score __/20 6 Lab 3: Wheatstone Bridge EE43/100 Spring 2012 V. Lee, T. Dear, T. Takahashi (More space) Show your final circuit to your lab GSI for check off and demonstrate a reasonable change in voltage when you apply weights to the strain gauge. Your initial configuration should output as close to zero as possible. Your GSI Signs Here (30 pts) W hy do we care? Instrumentation amplifiers are designed to have extremely high gain and are usually preferred over stand-­β alone amplifiers, due to noise and interference considerations. In many real-­βlife situations, you may be dealing with extremely low level microvolt signals. In order to achieve the necessary gains to detect that kind of signal, you will have to use a high gain instrumentation amplifier in order to process the signal. If you wish to use one for the final project, you will be building the instrumentation amplifier using discrete components as you did for this lab. It would be a good idea to take a look at your working implementation and understand how it works. 7 Lab 3: Wheatstone Bridge EE43/100 Spring 2012 V. Lee, T. Dear, T. Takahashi Lab Report Submissions This lab is due at the beginning of the following lab section. Make sure you have completed all questions and drawn all the diagrams for this lab. In addition, attach any loose papers specified by the lab and submit them with this document. These labs are designed to be completed in groups of two. Only one person in your team is required to submit the lab report. Make sure the names and student IDs of BOTH team members are on this document (preferably on the front). Image Citations Textbook Images are courtesy of Fawwaz T. Ulaby and Michel M. Maharbiz and National Technology and Science Press. Fawwaz T. Ulaby and Michel M. Maharbiz, Circuits © 2009 National Technology and Science Press i http://www.clker.com/clipart-­β24578.html 8