ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer

Similar documents
RC Circuit Lab - Discovery PSI Physics Capacitors and Resistors

ENGR4300 Fall 2005 Test 3A. Name. Section. Question 1 (25 points) Question 2 (25 points) Question 3 (25 points) Question 4 (25 points)

Lab 10: DC RC circuits

ENGR4300 Fall 2005 Test 3S. Name solution. Section. Question 1 (25 points) Question 2 (25 points) Question 3 (25 points) Question 4 (25 points)

PHYSICS 122 Lab EXPERIMENT NO. 6 AC CIRCUITS

Class #12: Experiment The Exponential Function in Circuits, Pt 1

Name Class Date. RC Circuit Lab

Name: Lab Partner: Section:

RC, RL, and LCR Circuits

ECE2210 Final given: Spring 08

POLYTECHNIC UNIVERSITY Electrical Engineering Department. EE SOPHOMORE LABORATORY Experiment 2 DC circuits and network theorems

(d) describe the action of a 555 monostable timer and then use the equation T = 1.1 RC, where T is the pulse duration

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

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Fall 2000.

Time Varying Circuit Analysis

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

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. ECE 110 Fall Test II. Michael R. Gustafson II

Electric Fields and Potentials

University of TN Chattanooga Physics 1040L 8/18/2012 PHYSICS 1040L LAB LAB 4: R.C. TIME CONSTANT LAB

LAB 3: Capacitors & RC Circuits

The RC Circuit INTRODUCTION. Part 1: Capacitor Discharging Through a Resistor. Part 2: The Series RC Circuit and the Oscilloscope

Designing Information Devices and Systems I Spring 2018 Lecture Notes Note 20

PHYSICS 171 UNIVERSITY PHYSICS LAB II. Experiment 6. Transient Response of An RC Circuit

Summary Notes ALTERNATING CURRENT AND VOLTAGE

Experiment #6. Thevenin Equivalent Circuits and Power Transfer

15EE103L ELECTRIC CIRCUITS LAB RECORD

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

2. The following diagram illustrates that voltage represents what physical dimension?

PHY222 - Lab 7 RC Circuits: Charge Changing in Time Observing the way capacitors in RC circuits charge and discharge.

Physics 2080 Extra Credit Due March 15, 2011

first name (print) last name (print) brock id (ab17cd) (lab date)

ECE 2210 Final given: Spring 15 p1

ECE2210 Final given: Fall 13

Name Date Time to Complete

Experiment Guide for RC Circuits

Kirchhoff's Laws and Circuit Analysis (EC 2)

RC Circuits. Equipment: Capstone with 850 interface, RLC circuit board, 2 voltage sensors (no alligator clips), 3 leads V C = 1

Figure 1: Capacitor circuit

Lab 5 RC Circuits. What You Need To Know: Physics 212 Lab

INSPIRE GK12 Lesson Plan

Lab 5 - Capacitors and RC Circuits

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

Homework 3 Solution. Due Friday (5pm), Feb. 14, 2013

EE-201 Review Exam I. 1. The voltage Vx in the circuit below is: (1) 3V (2) 2V (3) -2V (4) 1V (5) -1V (6) None of above

Industrial Electricity

6.302 Feedback Systems

Laboratory 3 Measuring Capacitor Discharge with the MicroBLIP

The equivalent model of a certain op amp is shown in the figure given below, where R 1 = 2.8 MΩ, R 2 = 39 Ω, and A =

Old Dominion University Physics 112N/227N/232N Lab Manual, 13 th Edition

Ch 28-DC Circuits! 1.) EMF & Terminal Voltage! 9.0 V 8.7 V 8.7 V. V =! " Ir. Terminal Open circuit internal! voltage voltage (emf) resistance" 2.

MEASUREMENT OF THE CHARGE TO MASS RATIO (e/m e ) OF AN ELECTRON

Capacitor investigations

Design Engineering MEng EXAMINATIONS 2016

Simultaneous equations for circuit analysis

Electricity and Light Pre Lab Questions

ECE Circuit Theory. Final Examination. December 5, 2008

( ) ( ) = q o. T 12 = τ ln 2. RC Circuits. 1 e t τ. q t

EIT Quick-Review Electrical Prof. Frank Merat

INTRODUCTION TO ELECTRONICS

DEPARTMENT OF COMPUTER ENGINEERING UNIVERSITY OF LAHORE

Voltage, Current, Resistance and Power Report Tips

Practical 1 RC Circuits

ECE 201 Fall 2009 Final Exam

EXPERIMENT 5A RC Circuits

Where, τ is in seconds, R is in ohms and C in Farads. Objective of The Experiment

Ohm s Law and Electronic Circuits

2. In words, what is electrical current? 3. Try measuring the current at various points of the circuit using an ammeter.

IMPORTANT Read these directions carefully:

Lab E3: The Wheatstone Bridge


Capacitors. The charge Q on a capacitor s plate is proportional to the potential difference V across the Q = C V (1)

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

An Ultra Low Resistance Continuity Checker

Experiment 8: Capacitance and the Oscilloscope

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

Lab 6: Capacitors and Resistor-Capacitor Circuits Phy208 Spr 2008 Name Section

Designing Information Devices and Systems I Spring 2019 Homework 11

Lab 4 CAPACITORS & RC CIRCUITS

Exam 3--PHYS 102--S14

PURPOSE: See suggested breadboard configuration on following page!

55:041 Electronic Circuits The University of Iowa Fall Final Exam

Prepare for this experiment!

On the axes of Fig. 4.1, carefully sketch a graph to show how the potential difference V across the capacitor varies with time t. Label this graph L.

RC Studies Relaxation Oscillator

MEASUREMENT OF THE CHARGE TO MASS RATIO (e/m e ) OF AN ELECTRON

The RC Time Constant

Chapter 2. Engr228 Circuit Analysis. Dr Curtis Nelson

Problem Solving 8: Circuits

Lab 4 - First Order Transient Response of Circuits

Experiment P43: RC Circuit (Power Amplifier, Voltage Sensor)

Test II Michael R. Gustafson II

Electrical Engineering Fundamentals for Non-Electrical Engineers

Lab 5 RC Circuits. What You Need To Know: Physics 212 Lab

SIMPLE D.C. CIRCUITS AND MEASUREMENTS Background

1. Review of Circuit Theory Concepts

ECS 40, Fall 2008 Prof. Chang-Hasnain Test #3 Version A

ELECTRONIC SYSTEMS. Basic operational amplifier circuits. Electronic Systems - C3 13/05/ DDC Storey 1

Laboratory #1: Inductive and Capacitive Transients Electrical and Computer Engineering EE University of Saskatchewan

Lab 5 - Capacitors and RC Circuits

ECE 241L Fundamentals of Electrical Engineering. Experiment 5 Transient Response

Transcription:

ECE 220 Laboratory 4 Volt Meter, Comparators, and Timer Michael W. Marcellin Please follow all rules, procedures and report requirements as described at the beginning of the document entitled ECE 220 Laboratory 1. Always wear your safety glasses when performing your lab experiments. Prelab Part 1 In Lab 2, we built a simple volt meter using a d Arsonval panel meter. We found that the main problem with this simple meter is that its Thevenin resistance is rather small. Because of this, it tends to load the circuit being measured, changing the value of voltage to be measured. Here, we consider an improved volt meter that uses a 1 ma d Arsonval panel meter and an op amp as shown in Figure 1. In this figure, assume power rails of +7 V, and 2 V. a) Calculate the value of R required so that i = 1 ma when v = 5 V. b) For the value of R calculated above, write an expression for i as a function of v. Observe that your equation in b) results in a linearly increasing needle deflection as a function of v, with full (100%) deflection at 5 V. Note also, that neither the value that you calculated for R, nor your equation for i depend on the internal resistance of the panel meter. Figure 1. Improved volt meter. In Lab 2, we used your simple meter to measure the voltage at terminals a and b in Figure 2 below. We discovered that your meter performed poorly when R was not small. Specifically, we saw a large %error for the case of R = 4.7 kω. This is because the input (Thevenin) resistance of your meter was not very large compared to 4.7 kω. Recall that an ideal volt meter has infinite input resistance. The input resistance looking into the input of the improved volt meter of Figure 1 is very large. In class, we would model it as infinity. In reality, it is only many Meg-Ohms. This results in the %error of the improved meter being negligible for values of R up to at least 1 MΩ. We will now verify this via a PSpice simulation.

Figure 2. Thevenin equivalent circuit. Start a new project in PSpice and draw the circuit shown below in Figure 3. This figure represents the use of the improved meter of Figure 1 attempting to measure v in Figure 2. The 155 Ω resistor is used to model the panel meter although this resistance value is unimportant as noted above. We have not used the V labeling trick this time, and have just allowed wires to cross. Note carefully that PSpice includes a red dot (node) where wires connect. There is no such connection where the negative power supply wire crosses the feedback path. Note also, that this time we have included two parameters (variables). Each of them is created using the new property button in the property editor spreadsheet for the part PARAM, as before. You do not need two copies of PARAM. You will just create two different properties (columns) within the same instance of PARAM. Finally, note that the (default) values of the two parameters should be chosen as v = 5 V and R = 1000 kω = 1 MΩ. The property editor spreadsheet does not seem to allow 1 MΩ to be entered directly, so we trick it by entering 1000 kω. Figure 3. PSpice schematic. Perform a linear sweep of R from 1 kω to 1 MΩ in increments of 1 kω. Note that v will (automatically) stay at its default value of 5 V throughout this sweep. Use a current marker, as

shown in Figure 3, to measure the current through the panel meter. The resulting graph will show this current, i, as a function of R. Ideally, it should be constant at 1 ma, corresponding to 100% needle deflection, since the voltage the meter is trying to measure is 5 V. In reality, i will decrease very slightly as R increases due to the loading effect. c) What value of R (among those tested) yields the maximum error between i and its ideal value of 1 ma? d) For this value of R, calculate the %error in i. e) print your graph. Now edit the simulation profile and redo the sweep. This time we will sweep v from 0 to 5 V in increments of 0.1 V. The value of R will (automatically) stay at its default value of 1 MΩ throughout the sweep. You may have to add the current marker again after you edit the simulation profile. Ideally, the graph of the current through the panel meter, i, should rise linearly from 0 to 1 ma, corresponding to a linear needle deflection from 0 to 100%. Your graph should (essentially) show this desired behavior. f) print your graph. Prelab Part 2 In class, we discussed an op amp comparator circuit as shown below in Figure 4. For this circuit, whenever v > v, v goes to the positive power rail. Else, v goes to the negative power rail. Throughout this part, assume that the power rails are ±5 V. Figure 4. Comparator circuit. Now consider the circuit of Figure 5. a) Which LED will be turned on when v = 1 V? Which LED will be turned on when v = 1 V?

Figure 5. Comparator with LEDs. Now consider the circuit of Figure 6. b) Write an equation for v as a function of the pot setting F. Assume F = 0 corresponds to the slider being all the way up. Figure 6. Input signal. To make things more interesting, we add some noise to v. The resulting noisy signal is v (t) = v + n(t). Assume that the noise n(t) is a square wave of amplitude v = 0.1 V (v = 0.2 V) and frequency f = 2 Hz. Figure 7 shows a graph of v (t) for a pot setting F = 0.4. Make sure that you understand this figure. Changing the pot setting F will raise or lower the level of the signal in Figure 7. As another example, when F = 0.5, the square wave will be oscillating above and below 0 V, rather than above and below 1 V as shown in Figure 7. Figure 7. Noisy signal. Consider now connecting v (t) in Figure 6 as the input to the circuit of Figure 5. Like the improved volt meter, the input resistance of the comparator is very high. Thus, we do not need to worry about the loading effect.

c) What do you expect the LEDs to do for a pot setting of F = 0.4? How about F = 0.5? How about F = 0.6? In class, we also talked about the Schmitt trigger (comparator with hysteresis) which reduces chattering due to noise. A Schmitt trigger circuit is shown below in Figure 8. Again, assume power rails of ±5 V. d) What is the threshold T for the Schmitt trigger as shown? Note that this threshold is larger than v of the noise in the example above. Thus, any chattering in the example should be eliminated by replacing the comparator with the Schmitt trigger. We will verify this in the lab. Figure 8. Schmitt trigger. Prelab Part 3 In this part, we use an RC circuit together with a comparator to build a simple timer. Figure 9 below shows an RC circuit with a step input of 5 volts at time t = 0. Assume that the initial capacitor voltage is 0 V. In Chapter 7, we will learn the theory for RC circuits. For now, just use the fact that v (t) = 5 5e / V. a) Let C = 100 µf and calculate the value of R required so that the capacitor voltage passes through 2.5 V at time t = 9 seconds. That is, v (9) = 2.5 V. Figure 9. RC step response. The circuit of Figure 10 below shows the RC circuit from Figure 9 connected so that the

capacitor voltage appears as the input to a comparator. Note that the input current i to the Op Amp is very small so that the loading effect on the RC circuit will be negligible. Note also that v = 2.5 V for the comparator. As usual, 3 diodes are used to model an LED. It should be clear that prior to time t = 9, the LED will be off. After time t = 9 the LED will be on. Thus, this circuit acts as a simple timer. The time at which the LED turns on can be adjusted by choosing different values for the resistor R. Figure 10. Timer circuit. We will now do a PSpice simulation of our timer. Start a new project in PSpice and draw the circuit in Figure 10. The part name for a capacitor is C. You will need to set the initial voltage of the capacitor. Double click carefully on the capacitor symbol itself (not the value or the name). The property editor spreadsheet will open. Look for the column labeled IC. This is the initial condition. For a capacitor, this is always voltage. For an inductor, of course, IC would be current. Set the value below IC to 0. Click on the tab labeled Page 1 to return to your schematic. Click PSpice -> New Simulation Profile. A new window will open. Enter a name and click create. Another new window will open (check the icons at the bottom of the screen). Set the following parameters: Analysis type: Time Domain (Transient) Run to Time: 80 seconds Start saving data after: 0 seconds Maximum step size: 0.01 seconds Click OK Put a voltage marker at the top of the capacitor, and run the simulation. The resulting graph will be the capacitor voltage as a function of time. Make sure that this behaves as expected. When does it cross through 2.5 V? What is the capacitor voltage when t = 5RC? b) Print your graph. Delete the voltage marker, and add a current marker to monitor the LED current. Run the

simulation again. This time the graph shows the LED current as a function of time, indicating that the LED is off prior to 9 seconds, and on after 9 seconds, as expected. c) Print your graph.

Prelab Grading Part 1 a) 2 pts b) 2 pts c) 1 pt d) 1 pt e) 3 pts f) 1 pt Part 2 a) 1 pt b) 2 pts c) 3 pts d) 1 pt Part 3 a) 2 pts b) 3 pts c) 3 pt 25 total pts

Lab 4 Data Sheet Please follow all rules, procedures and report requirements as described at the beginning of the Lab 1 Data Sheet. Lab Grading: Data Sheet = 15 pts; Explanation = 10 pts. Lab Part 1 No experiment Lab Part 2 Comparator circuit working: Y / N (circle one) 5 pts Schmitt trigger circuit working: Y / N (circle one) 5 pts Lab Part 3 Timer circuit working: Y / N (circle one) 5 pts

Lab Experiments Lab Part 1 No experiment. Lab Part 2 Build the circuit shown in Figure 11. Use an LM358N op amp. Use power rails for the op amp of ±5 V. Use the function generator for the square wave noise n(t). Set it for v = 0.1 V (v = 0.2 V) and a frequency of f = 2 Hz. Monitor the voltage v with the scope as you vary the pot setting. Make sure you have the scope coupling in DC mode. Verify that v behaves as expected (see Figure 7 and the related discussion in the prelab). Verify that the LEDs behave as you expect for different pot settings. Specifically, you should be able to find pot settings where only LED1 (or LED2) is on. You should also be able to find a setting where the LEDs blink on and off (alternating). This is chatter. Have your TA initial that your circuit is working. On-campus students: make a video to demonstrate that your circuit is working. Figure 11. Comparator with noise. Modify your circuit to that shown below in Figure 12, which uses a Schmitt trigger in place of the comparator. Repeat your inspection of the LEDs for different pot settings. Raise and lower the pot setting several times to ensure that all chatter has been eliminated. Have your TA initial that your circuit is working. On-campus students: make a video to demonstrate that your circuit is working.

Figure 12. Schmitt trigger with noise. Lab Part 3 Build the circuit shown in Figure 13. Use the value of R that you calculated in the prelab. Use a piece of wire for the switch. The initial position of the switch ensures that the capacitor is discharged so that v (0) = 0 V. Note the slightly different symbol shown for the capacitor in this figure. This indicates a polarized capacitor that should only be charged in one direction. The straight line indicates the + terminal, while the curved line indicates the terminal. Charging a polarized capacitor in the wrong direction and destroy it. The capacitor that we will use for this experiment is polarized. The positive terminal (the top terminal in Figure 13) is the one with the longer of the two wires. Be very careful when you hook up your circuit, and as always, wear your safety glasses. At some time of your choosing (t = 0), move the switch to the other position. 9 seconds later, the LED should turn on. Have your TA initial that your circuit is working. On-campus students: make a video to demonstrate that your circuit is working. Figure 13. Timer circuit.