ECE207L Lab Manual
ECE207L Lab Manual
1 msec if for t< 1 msec the circuit is in the steady state when the 3° input changes value at t= 1 msec as indicated in Vin © 10 5 t (msec) 1 6.34 Given R + Yin c vo @ with vin(t) equal to the pulse train Vin t 12 T Sketch v(t) if 6.35 Given 3 6 - 531K Vin © : lyf == ¥o® t (msec) t (msec) Find Vinin and Vmax FIRST ORDER RC-ACTIVE CIRCUITS 6.36 Find the step response of 6.37 Find the step response of 6- 54 «10K 6.38 Given vo(0-) = 2 volts a. Find the steady state response », Find the complete response 6.39 Find the complete response of & 6-5510K cos 103 © = vo) assuming zero initial conditions COMPUTER-AIDED ANALYSIS OF FIRST ORDER CIRCUITS 6.40 Given that the responsé of a particular first order circuit is 4 v() = 10027 a. Sketch v(t) 'b. Where is the derivative of v(t) maximum c. Where is the derivative of v(t) changing the fastest @ @. Approximating the derivative by av _ Mtg + Ad) - vUto) at) = Find for some interesting value of fy how small t has to be for the approximation to be within 10% of the actual value - within 1% of the actual value e. Are the results what you expected. £. How do your results affect a computer approximation to the solution of the differential equation for v(t) 6.41 Given 3 cos 1035 © pt Yoo 6 - 56Draw the companion model for approximating volt) at t = 0.1 msec given that vc(0) = © 5 volts. Then find the corresponding approximation at t= 1 sec 6.42 Draw the companion model for calculating the response of 1K cos 105 ¢ & 1K e 6 - 57ECE 252 - EXPERIMENT 6 RC TIME CONSTANTS OBJECTIVES ‘The student will be able to measure and calculate the transient responses of a first order RC circuit MATERIALS REQUIRED BY STUDENT L 2 Oth expack 3. Two IK and one 10K 5% 1/2 watt resistors 4, 10K 5. 4 BNC to clip connectors PRE-LAB — Due at the beginning of the lab 1. Given | Vi, 0 =5¥ vc(0-) = -Svolts a. Write the differential equation for v¢(t) b. Solve for v(t) c. Calculate igft) 4. Use the program PLOT — oran equivalent — to obtain separate graphs of vc(t) and ig(). Make an extra copy for the lab . How long does it take the transient response to for all practical purposes to decay £. Redo the above steps for vin = —Svolts, vc(0-) = +5 volts g. Explain why, and under what conditions, the results for parts (a) thm (f) can be used to find the response of vc(t) toa square wave of 5 volts amplimde (10 volts peak to peak) 2._"Now suppose we replace the $ volt source in our crit withthe squerewave of magninue volts 6- 58‘Then what should we make the squarewave's frequency in order to alternately see the capacitor "charge up" for 7 time constants to +5 volts and then “charge down” for 7 time constants to ~5 volts LAB — Each student is to do his own experiment 1. Measure and record your resistor and capacitor values. Do not check for leakage currents 2. Build the circuit analyzed in the prelab 1K na a Yin ope Yo with vin(t) equal to a squarewave of magnitude 5 volts and the 1K resistor equal to your resistor plus the Thevenin Equivalent of the source a. Using the frequency counter, set the frequency of the squarewave at the value calculated in the prelab. Put data points from your trace onto your plots of vc(t) and ig(t) from the prelab. b. Replace the 1K resistor by your pot and see what happens asthe resistor value is vari Demonstrate these results to your instructor 3. Sketch the response of Y¢(t) e 6- 591K WwW + vin IK O1pe Yo to a squarewave of judicious frequency that gives us a good picture of the circuit's capacitor reaching steady state 4, Given the following op amp circuit 10K Vin ‘Adjust the frequency of the squarewave input until you get a nice trace of the transient response, Then make an accurate enough sketch of your result so that you will be able to estimate + QUESTIONS AND PROBLEMS 1. Compare the calculated and measured responses of your RC circuit at the first 5 time constants 2. Given the RC circuit 1K + Vin ® O1pe vo® ‘What happens to the RC time constant t and the time it takes the transient response to 6- 60decay as a R decreases e b. R increases ©. C decreases dC increases 3, Estimate the time constant of the op amp circuit you builtin the lab from your sketch of its frequency response 4, Given vi, =5v¥ mM O1pe Yow) ve) = a. How much charge is stored in the capacitor when it is fully charged b. How much energy has been dissipated in the resistor after the capacitor is fully charged ¢. How much energy is supplied by the source during charging e 5. Whats the time constant of v0 6. Given 1K Vin® = Sos 103 fant - Yc a. Write the differential equation for vc(t) ». Find the forced response 6 6- 61CHAPTER 7 SECOND ORDER CIRCUITS 7.0 TRANSITION Up to now we've only been investigating first order circuits — circuits with one L or one C and therefore characterized by first order differential equations. Now we will consider circuits with two energy storage elements — two capacitors, two inductors or one capacitor and onr inductor like a Yin ® =— 6 RI cl Yin ® C2 ad P>‘We call these second order circuits since we must solve 2nd order differential equations to analyze them. € ‘The solutions of these 2nd order differential equations pretty much follows the same pattern as the solution to Ist order differential equations. In particular the solutions can be found as the sum of a natural plus a forced response. But the form of the natural responses do turn out to be tantalizingly different. ‘We will start our discussion with an investigation of the natural responses of 2nd order LC circuits, move on to the natural responses of series and parallel RLC circuits and then put everything to find the complete responses of general RLC circuits. Finally we will Took at the interesting case of RC-Active circuits. 7.1 THE NATURAL RESPONSES OF 2ND ORDER RLC CIRCUITS 7.1.1 THE NATURAL RESPONSE OF THE BASIC LC TANK Let us begin with the basic LC “tank” circuit ~ ‘We call these tank circuits because charge “sloshes” back and forth from “one side" to the other (and so does the energy) just like water in a tank. One particularly interesting property of this circuit is that it is one of those rare circuits for which the natural response does not die away with time, To get a handle on such a circuit let us assign the values ipo ig + + vo 10mah ine Yo) ip(Q) =5ma and —_v¢(0) = Ovolts and see what happens. USING OUR INTUITION ; From the initial conditions, as shown iniL (aa) e *y]- Yet t— we see that at time ¢=0 the indcutor is storing E,) = ZLEO = 5 (10 (5x10)? = 1.255107 joules ® of energy and the capacitor none since there is no voltage across it. Now as current flows thru the inductor, it's pulling electrons off the lower plate of the capacitor as it pushes them onto the upper plate as indicated in O~7-oOs> <=~O<0< ‘This results in an increase in the magnitude of ve(t) But all this takes work on the part of the inductor ~ the elecuons are not doing this of their own free will. The source of this energy, of course, is the energy being stored in the inductor's magnetic field. So what we have is a transfer of energy from the inductor’s magnetic field to the capacitor’s electric field.In particular, as, Lat Li? = 5 = joules 1 Ee and therefore i, decreases, ve and are going to be increasing as indicated in i, @ Ga) %oO Nore, in particular, that vc(t) is increasing its fastest attime t=0 when it, is maximum. ‘Now as time continues to pass and more and more charge is squeezed into the capacitor, the harder and harder i's going to push back and so the more rapidly the current ir(t) is going to decrease. But the smaller the current, the slower the voltage is going to change and so we've got something likei ja) ee ° \ : th and Yo "1 Ve where at time ty the push back of the charges squeezed into the capacitor has finally stopped the current and the capacitor is no longer charging. At t the inductor has transfered all of its @ energy to the capacitor. We notice, by the way, that at this point in time the curent through the inductor is changing (decreasing) very rapidly. We know that it takes a strong push to do this to the current in the inductor, but since we have so much charge squeezed into the capacitor this is just what we have got. ‘What happens next? Well, the charge squeezed into the capacitor is still nying to get out, itis still pushing hard and so it keeps changing the inductor rapidly as shown in () (ma) ig 5 \ "1But this means the current is now flowing the other way through the inductor — which means that some of the squeezed in charge is finally able to start flowing out of the capacitor — as e indicated in %o® . t Sr, -Vo ‘Nove that the rate of change of vc is small because ic =—iy_ is still small in magninude. But as Jong as the capacitor continues to push on iy in the direction iy is flowing, the magnitude of iy is going to get larger and larger. But the larger the magnimde of ‘ir, gets the faster the capacitor will discharge and so the left charge there will be left to push on iy!! Therefore the magnitude of iz will keep increasing but not as rapidly and so we have i, © (mm) Yow t 1, Finally the capacitor is totally discharged, the magnitude of vc is down to 2er0, the capacitor stops pushing to increasing the magnitude of i, and so the magnitude of iy. has gomten as large as it's going to get as indicated in =i aaand e@ Since vc is zero again — and the magnitude of iz, is large again — all the energy has sloshed bback from the capacitor to the inductor and we are in effect back where we started except that now the current thru the inductor is going in the opposite direction. In particular iy = ~Sma instead of +5 ma. So everything should repeat itself except that all the voltages and currents will now have the opposite signs as follows i L© jm)Now we're back where we started — but without any loss of energy — and so the cycle must repeat itself forever. As our plots indicate — and as we will in fact show when we write and solve our circuit comesponding 2nd order differential equation — the signals ij(t) and vc(t) are both sinusoids bbut 90° out of phase. In particular p(t) = 5x10°3 cos aot Velt) = Vo cos ((ogt + 7/2) where «& ©) =2n/T rad/sec and T= period in see To calculate Vo we can make use of the fact that at those times when the inductor has ansferred all its energy to the capacitor, the capacitor will be storing 1 Lig S v2 a 30 = FCO) V5 = 1.252107 joules = Vo = 0.5 volts and so we have Volt) = 0.5 cos (gt + 1/2) Now let's write and solve the differential equations to verify our intuition and in the process calculate @, for our example.VERIFYING OUR INTUITION ‘Writing the node equation for our circuit @ ip@ * 10mh ine Yo ip(0)=Sma_—_ ve(0) = 0 volts we have ihe Node — Equation t 1 1 + (SG | wee s ED <0 ‘Taking the derivatives of both sides we obtain fis Wye +0¥, = 0 and so with initial conditions[Cc A COOKBOOK PROCEDURE FOR SOLVING 2ND ORDER @ DIFFERENTIAL EQUATIONS WITH CONSTANT COEFFICIENTS Our cookbook approach for solving 2nd order differential equations with constant coefficients is basically the same as the one for solving their 1st order cousins — 1, The first step is to find the form of the natural response. We do this by a. First setting up the characteristic equation — which we do in the same way as in the first order case but now with the addition that the 2nd derivative is replaced by D2, b. And then using the result from differential equation theory that the characteristic roots — the natural frequencies of the circuit — correspond to the natural responses as follows CHARACTERISTIC FORM OF THE DAMPING TYPE ROOTS NATURAL RESPONSE a,b (both real) Kye! + Kyebt Overdamped a Ket! + Kpteat Critically Damped @ a+jb, a—jb Kea cos (bt + 0) Underdamped jb, 3 K cos (bt + 8) No Damping Note that the characteristic roots depend only on the coefficients of the differential equations — which depend on how the circuit elements are connected and together and what their values are. ‘They do not depend on initial conditions or the values of any inputs. 2. The forced response is then found in the same way as it found when we follow our cookbook procedure for solving ist order differential equations 3. And finally we add the narural and forced responses together to form the complete response Complete Response = Natural Response + Forced Response and then use the initial conditions to obtain the parameters K and 6. This procedure is relatively straightforward for inputs like constants and sinusoids but can cerainly be tedious. 7-10 «e Now letus use our cookbook procedure to solve our differential equation Wo + 18 ve = 0 1, First we take the differential equation for the natural response Yn + 108, = 0 obtain the characteristic equation D2 + 108 =0 and solve forthe characteristic roots D == j10+ ‘We then use our Table to find the form of the namural response va(t) = K cos (104t + @) 2. Now since our circuit has no input the forced response is zero vat) = 0 @ 3. And so the complete response equals Vet) = valt) + vat) = Kos (104 + 6) Now we can use our initial conditions to find the values of K and @. In particular since vc(0) = Keos@ = 0 4) = -10*Ksin@ =-Ssx10? = Ksin@=0.5 we have tan@ = Ksin@ =< K cos @ =>and so finally volt) = 0.5 cos (104t + 2) and 5x10 cos 10°t which are of the form and magnitude we predicted. HOW THE NATURAL FREQUENCY @, OF AN LC TANK DEPENDS ON L AND C ‘As we've seen the capacitor and inductor in an LC tank 1g Fe transfer the circuit's energy back and forth at a frequency we refer to as @g. Let's now take a Jock at how the values of L and C affect Wo (1) The Affect OF C — The larger a capacitor’s plates the more charge that has to be delivered before any “appreciable work — any real "squeezing in” of the charge has tobe done. So the larger C the longer the inductor's current is going to have to be flowing before it's done enough work to transfer all its energy to the Capacitor. Therefore the larger C the lower ag. (2) The Affect OF L - The larger an inductor the longer it takes to get its current going. ‘Asaresult the larger L the longer it's going to take the capacitor to discharge and so transfer its energy to the inductor. So just like for the capacitor, the larger L the lower O. Putting our two observations together we have that @, decreases as L and C increase. In fact itrums out that maki Som which we can easily show by writing and solving the node equation 7-12for a general LC tank Doing this we obtain the characteristic equation ae Dt + a the characteristic roots D=sj and therefore the claimed result that Vell) = Vo cos (gt + 8) with es ® = te ‘This is a fundamental result. We refer to aL Gis ° "We asthe frequency of oscillation of the LC tank. 7-137.1.2 THE NATURAL RESPONSE OF THE BASIC 2ND ORDER RLC SERIES CIRCUIT Now suppose we put a resistor in series with our L and C as follows 6 ipo 2 COL L c R Clearly iz(t) and vo(t) are going going to have to decay to zero as the resistor R dissipates the circuit's energy. But what is interesting — and at least at first somewhat surprising — is the fact that the form of the decay is diferent for different values of the R, L and C. In onder to get a better feel for what's going on let us take a look at a mechanical analog consisting of a ball rolling in a frictionless trough that is filled with a fluid whose viscosity may be very high, medium, very low or zero. A cross-section of such a set up is shown below Ee ‘Now let's suppose the ball starts from rest high up on the side of the trough as indicated and see if we can get a handle on what should happen. If the fluid is engine sludge the ball will take a long time to get to the bottom of the trough. And when it gets there it won't overshoot. In fact, it barely gets there. If the fluid is heavy oil, the ball will roll toward the bottom faster, but there may still be just enough viscuous friction to keep it from overshooting and rolling up the other side. If the fluid is air, the ball will certainly roll faster and overshoot the bottom and start rolling up the other side. The ball will roll back and forth — oscillate — from one side of the trough to the other. But sooner or later friction with the air wil bring the ball toa stop at the bortom of the rough. Finally in a vacuum the ball would just oscillate back and forth from side to side forever. These are just the cases of overdamped, critically damped and not damped behavior tat we see in the esponses of RLC circus. So let's go back over this again — ina litle more detail! If the fluid is “infinitely thin" — that is, a vacuum, no fluid at all — the ball will oscillate back and forth forever. 7-14If the fluid is very thin, like air, the ball will not be going quite as fast at the bottom of the hill as it was when it was in a vacuum. In particular it will have less kinetic energy, having lost some by friction to the air. But it will stil certainly be moving and so will head up the other side of the trough. But now two things should be clear — “1, After each oscillation cycle, the ball will climb a litle bit less up the slope. ” 2. The period of oscillation will be slightly longer than when the ball was in a vacuum. Now suppose we make the fluid thicker (more viscous) stil Atfirst — since the grade is steep — the ball will start rolling as indicated in we Now the question is, as the ball goes on down toward the bottom, what happens to its speed, that is, to its energy. As the ball approaches the bottom and the slope of the trough is less, the ‘component of gravity tending to speed up disappears. But the frictional force of the sludge, tending to slow it down remains. Thus, even before the ball reaches the bottom of the hill it might start slowing down; if the sludge is thick enough it will certainly start slowing down before it gets to the bottom. Now the curical question becomes — will the ball's speed have decreased to zero by the time it gets to the bottom, or will it still have some speed left even if only a lite. If it does have some speed left at the bottom, then it will pass the bottom and head up the other side, even though it won't go up as high as it was when it started. When it comes 10 a stop it will start back down again .... andso on. Thus we will still have oscillations, even if they'are of a very low frequency. On the other hand, if the ball has no speed left at the bortom, and it stops at the bottom, then thar's it. The oscillations have disappeared — all we have is an exponential decrease of speed and position toward zero. It would seem reasonable that there is some degree of sludge thickness (as the ball approaches the bottom and the slope of the hill disappears) that will be enough to bring the ball to a stop by the time it reaches the bottom. The ball will simply start rolling down from above, where the slope is steep, pick up some speed, but then slow down due to the sludge where the slope is shallower and finally come to rest at the bottom without ever overshooting. This is what we refer to as critical damping. If still thicker sludge is used the ball will still reach the bottom but will take longer still and of course will not overshoot. In this case we say the system is overdamped. Going back now to our series RLC circuit, electric charge is that system is the analog of the ball in our example. Charge starts built up on the capacitor, just as the ball started high on the side of the rough. In the electrical system charge “sloshes” back and forth from one side of the capacitor to the other. 7-15‘The capacitor's push is the electrical analog of gravity tending to pull the ball down the walls of the trough. The inductor’s tendency to keep current flowing is the electrical analog of the momentum of the e ball which carries it past the bottom of the rough, And electrical friction between the charges and the resistor is the electrical analog of the friction ‘between the ball and fluid in the rough. Not surprisingly, if you take a course in dynamics in the physics department, the equations you derive to describe the motion of the ball are very much the same as our equations for electrical circuits. Now let's go back and actually analyze our series RLC circuit. THE UNDERDAMPED CASE - SMALL R Assuming that R_is small enough, itis certainly reasonable to expect that our series RLC circuit would oscillate like the LC tank — but have oscillations that smaller and smaller as the resistor dissipates the circuit's stored energy as follows This of course is just like a ball in a trough filled with a not very viscous fluid, As indicated in our graph and as in fact we will show when we write and solve the corresponding differential equation the natural responses of the variables under such circumstances are damped sinusoids of the form Kel cos (apt + 8) ‘We refer to such natural responses as being underdamped. The parameters a and depend on the values of R, Land C while K and @ depend on the circuit's initial conditions. ‘Note that a circuit being underdamped corresponds to the characteristic roots being complex conjugates. Note also that 7-16forms an envelope which determines how fast the sinusoid. decays as indicated in In particular, the larger a the faster the decay. EXAMPLE 7.1 Find the response of ip(t) in ip@ 2 COL =. TH soa ve(0) = -5 volts and ip@) = 2ma This corresponds to a position in our mechanical analogy with initial conditions which have the ball on one side of the trough at t=0 and rolling up that side of the rough. For this circuit, we can, as always write the node equations. But our circuit would have two nods equations while only one mesh equation so let us make the prudent choice and write the one mesh equation! Tn particular for our circuit we have the Mesh — Equation din) 1 + . 1 1072! + vo(0) + af Ode + 50iL) =0 a 10° Jy ‘Taking the derivatives of both sides of our equation and multiplying thru by 100 we have 2; as PO 5 52103 HO 5 08s: = a? &tNow going thru the steps of our cookbook procedure for solving 2nd order differential equations we 1. First take the differential equation for the natural response @ i . Hin 5 55103 Hal 5 108 ince) = 0 at? dt Form the characteristic equation D2 + 5x103D + 108 = 0 and solve for the characteristic roots Dy, Dy = -2.5x103 + j 9.7x103 Now since the characteristic roots — the natural frequencies — of our cireuit are complex conjugates we have from our Table that the natural response is of the form in() = Keat cos (mat +8) = Ke-2500t cos (97001 + 6) 2. Since there is no input ig) = 0 3, And so the complete response is ip (t) = ig() + ig(t) = Ke~2500t cos (9.71051 + 8) Now using the initial conditions | i) = 2ma EO = bo = 45(-01 + 5) = 490 tofind K and @ we have from iL) = Keos@ = 2x10-3 SL ( = ~25x10° K cos - 9.74103 K sin = 490 Now substituting the result from the first equation Kcos@ = 2x10-3 into the second equation we obtain Ksin@ = -0.051 and so@=-153 rd and so finally we have ip (t) = 51 ¢°2500t cos (9.7x105 - 1.53) ma ‘Now with the time constant for the envelope °2500t being t= 1/2500 = 4x10“ sec and the period of the sinewave being T = 2nlag = 21/9700 = 0.6 msec the response of iz(t) should look like ipo which is of the form we predicted. Note that the response will for all practical purposes decay to zero in about St = 5(0.4 msec) = 2 msec THE OVERDAMPED CASE = LARGE R Now suppose we increase R. At first we might suspect that increasing R simply causes @, to get smaller and smaller until R reaches infinity when the circuit opens up and the oscillations are 7-19forced to stop. But surprisingly every RLC circuit has some value of R beyond which oscillations stop altogether and the natural response goes through a metamorphasis to the form e Kjeat + Kyebt where the characteristic roots or natural frequencies a and b are real. This comesponds to our mechanical analogy where the fluid is so viscous that the ball can hardly make it to the bottom of the trough — let alone do any oscillating. ‘What is going on is very much analogous to the tortoise who say every second is making it half way from where he is to the finish line of the race. The poor guy is just never going to make it. ‘The closer he gets the more he runs out of steam. For our RLC series circuit ip® 2 CO _ L € R the more the capacitor discharges, the slower it discharges so it can never reach the point where it start building up charge on the other plate. Let us now illustrate this situation with an example. EXAMPLE 7.2 Find the response of iz(t) iL@ vow 4100 _ | @ 10 mh 1H ong vc(0) = -Svolts and i, (0) = 2ma With these circuit element values we have for iy(t) the differential equation os ; FLO 4 gx19¢ BLY 4 108 Gy = 0 dr? da iL) = sh ged a. 7 ip(0) = 2ma ZO=2u0 rm) (-0.8 + 5) = 420 Now going thru our cookbook procedure 1. We first find the characteristic equation D2 + 4x104D + 108 = 0 and characteristic roots 7-20