Basic Electronics for Scientists and Engineers PDF
Document Details
Uploaded by Deleted User
Dennis L. Eggleston
Tags
Summary
This textbook provides a concise introduction to basic electronics for undergraduate science and engineering students. It covers a wide range of topics, from passive circuits to semiconductor-based analog and digital circuits, using analysis and examples to help students learn the application of techniques. The book is suitable for self-study and includes numerous exercises.
Full Transcript
This page intentionally left blank Basic Electronics for Scientists and Engineers Ideal for a one-semester course, this concise textbook covers basic electronics for undergraduate students in science and engineering. Beginning with basics of general circuit laws and resistor circuits to ease stu...
This page intentionally left blank Basic Electronics for Scientists and Engineers Ideal for a one-semester course, this concise textbook covers basic electronics for undergraduate students in science and engineering. Beginning with basics of general circuit laws and resistor circuits to ease students into the subject, the textbook then covers a wide range of topics, from passive circuits through to semiconductor-based analog circuits and basic digital circuits. Using a balance of thorough analysis and insight, readers are shown how to work with electronic circuits and apply the techniques they have learnt. The textbook’s structure makes it useful as a self-study introduction to the subject. All mathematics is kept to a suitable level, and there are several exercises throughout the book. Solutions for instructors, together with eight laboratory exercises that parallel the text, are available online at www.cambridge.org/Eggleston. Dennis L. Eggleston is Professor of Physics at Occidental College, Los Angeles, where he teaches undergraduate courses and labs at all levels (including the course on which this textbook is based). He has also established an active research program in plasma physics and, together with his undergraduate assistants, he has designed and constructed three plasma devices which form the basis for the research program. Basic Electronics for Scientists and Engineers Dennis L. Eggleston Occidental College, Los Angeles CAMBRIDGE UNIVERSITY PRESS Cambridge, New York, Melbourne, Madrid, Cape Town, Singapore, São Paulo, Delhi, Dubai, Tokyo, Mexico City Cambridge University Press The Edinburgh Building, Cambridge CB2 8RU, UK Published in the United States of America by Cambridge University Press, New York www.cambridge.org Information on this title: www.cambridge.org/Eggleston © D. Eggleston 2011 This publication is in copyright. Subject to statutory exception and to the provisions of relevant collective licensing agreements, no reproduction of any part may take place without the written permission of Cambridge University Press. First published 2011 Printed in the United Kingdom at the University Press, Cambridge A catalog record for this publication is available from the British Library Library of Congress Cataloging-in-Publication Data Eggleston, Dennis L. (Dennis Lee), 1953- Basic Electronics for Scientists and Engineers / by Dennis L. Eggleston. p. cm Includes bibliographical references and index. ISBN 978-0-521-76970-9 (Hardback) – ISBN 978-0-521-15430-7 (Paperback) 1. Electronics. I. Title. TK7816.E35 2011 621.381–dc22 2010050327 ISBN 978-0-521-76970-9 Hardback ISBN 978-0-521-15430-7 Paperback Additional resources for this publication at www.cambridge.org/Eggleston Cambridge University Press has no responsibility for the persistence or accuracy of URLs for external or third-party internet websites referred to in this publication, and does not guarantee that any content on such websites is, or will remain, accurate or appropriate. To my wife Lynne Contents Preface page xi 1 Basic concepts and resistor circuits 1 1.1 Basics 1 1.2 Resistors 4 1.3 AC signals 19 Exercises 23 Further reading 26 2 AC circuits 27 2.1 Introduction 27 2.2 Capacitors 27 2.3 Inductors 29 2.4 RC circuits 30 2.5 Response to a sine wave 37 2.6 Using complex numbers in electronics 43 2.7 Using the complex exponential method for a switching problem 54 2.8 Fourier analysis 58 2.9 Transformers 61 Exercises 65 Further reading 67 3 Band theory and diode circuits 68 3.1 The band theory of solids 68 3.2 Diode circuits 80 Exercises 101 Further reading 103 4 Bipolar junction transistors 104 4.1 Introduction 104 4.2 Bipolar transistor fundamentals 104 viii Contents 4.3 DC and switching applications 108 4.4 Amplifiers 110 Exercises 131 Further reading 132 5 Field-effect transistors 133 5.1 Introduction 133 5.2 Field-effect transistor fundamentals 134 5.3 DC and switching applications 140 5.4 Amplifiers 141 Exercises 150 Further reading 151 6 Operational amplifiers 152 6.1 Introduction 152 6.2 Non-linear applications I 153 6.3 Linear applications 154 6.4 Practical considerations for real op-amps 159 6.5 Non-linear applications II 165 Exercises 168 Further reading 170 7 Oscillators 171 7.1 Introduction 171 7.2 Relaxation oscillators 171 7.3 Sinusoidal oscillators 185 7.4 Oscillator application: EM communications 193 Exercises 198 Further reading 199 8 Digital circuits and devices 200 8.1 Introduction 200 8.2 Binary numbers 200 8.3 Representing binary numbers in a circuit 202 8.4 Logic gates 204 8.5 Implementing logical functions 206 8.6 Boolean algebra 208 8.7 Making logic gates 211 Contents ix 8.8 Adders 213 8.9 Information registers 216 8.10 Counters 220 8.11 Displays and decoders 223 8.12 Shift registers 224 8.13 Digital to analog converters 227 8.14 Analog to digital converters 228 8.15 Multiplexers and demultiplexers 229 8.16 Memory chips 232 Exercises 234 Further reading 235 Appendix A: Selected answers to exercises 236 Appendix B: Solving a set of linear algebraic equations 238 Appendix C: Inductively coupled circuits 241 References 245 Index 247 Preface A professor of mine once opined that the best working experimentalists tended to have a good grasp of basic electronics. Experimental data often come in the form of electronic signals, and one needs to understand how to acquire and manipulate such signals properly. Indeed, in graduate school, everyone had a story about a budding scientist who got very excited about some new result, only to later discover that the result was just an artifact of the electronics they were using (or misusing!). In addition, most research labs these days have at least a few homemade circuits, often because the desired electronic function is either not available commercially or is prohibitively expensive. Other anecdotes could be added, but these suffice to illustrate the utility of understanding basic electronics for the working scientist. On the other hand, the sheer volume of information on electronics makes learning the subject a daunting task. Electronics is a multi-hundred billion dollar a year industry, and new products of ever-increasing specialization are developed regularly. Some introduc- tory electronics texts are longer than introductory physics texts, and the print catalog for one national electronic parts distributor exceeds two thousand pages (with tiny fonts!). Finally, the undergraduate curriculum for most science and engineering majors (excepting, of course, electrical engineering) does not have much space for the study of electronics. For many science students, formal study of electronics is limited to the coverage of voltage, current, and passive components (resistors, capacitors, and inductors) in introductory physics. A dedicated course in electronics, if it exists, is usually limited to one semester. This text grew out of my attempts to deal with this three-fold challenge. It is based on my notes for a one-semester course on electronics I have taught for many years in the Physics Department of Occidental College. The students in the course are typically sophomore, junior, or senior students majoring in physics or pre-engineering, with some from the other sciences and mathematics. The students have usually had at least two introductory physics courses and two semesters of calculus. The primary challenge of such a course is to select the topics to include. My choices for this text have been guided by several principles: I wanted the text to be a rigorous, self-contained, one-semester introduction to basic analog and digital electronics. It should start with basic concepts and at least touch upon the major topics. I also let the choice of material be guided by those topics I thought were fundamental or have found useful during my career as a researcher in experimental plasma physics. Finally, xii Preface I wanted the text to emphasize learning how to work with electronics through analysis rather than copying examples. Chapters 1 and 2 start with basic concepts and cover the three passive components. Key concepts such as Thevenin’s theorem, time- and frequency-domain analysis, and complex impedances are introduced. Chapter 3 uses the band theory of solids to explain semiconductor diode operation and shows how the diode and its cousins can be used in circuits. The use of the load line to solve the transcendental equations arising from the diode’s non-linear I–V characteristic is introduced, as well as common approximation techniques. The fundamentals of power supply construction are also introduced in this chapter. Bipolar junction transistors and field-effect transistors are covered in Chapters 4 and 5. Basic switching and amplifier circuits are analyzed and transistor AC equivalents are used to derive the voltage and current gain as well as the input and output impedance of the amplifiers. A discussion of feedback in Chapter 4 leads into the study of operational amplifiers in Chapter 6. Linear and non-linear circuits are analyzed and the limitations of real op-amps detailed. Several examples of relaxation and sinusoidal oscillators are studied in Chapter 7, with time-domain analysis used for the former and frequency-domain analysis used for the latter. Amplitude- and frequency-modulation are introduced as oscillator applica- tions. Finally, a number of basic digital circuits and devices are discussed in Chapter 8. These include the logic gates, flip-flops, counters, shift-registers, A/D and D/A con- verters, multiplexers, and memory chips. Although the digital universe is much larger than this (and expanding!), these seem sufficient to give a laboratory scientist a working knowledge of this universe and lay the foundation for further study. Exercises are given at the end of each chapter along with texts for further study. I recommend doing all of the exercises. While simple plug-in problems are avoided, I have found that most students will rise to the challenge of applying the techniques studied in the text to non-trivial problems. Answers to some of the problems are given in Appendix A, and a solution manual is available to instructors. At Occidental this course is accompanied by a laboratory, and I enthusiastically recommend such a structure. In addition to teaching a variety of laboratory skills, an instructional laboratory in electronics allows the student to connect the analytical approach of the text to the real world. A set of laboratory exercises that I have used is available from the publisher. The original manuscript was typeset using LaTeX and the figures constructed using PSTricks: Postscript macros for Generic TeX by Timothy Van Zandt and M4 Macros for Electric Circuit Diagrams in Latex Documents by Dwight Aplevich. I am indebted to the makers of these products and would not have attempted this project without them. Dennis L. Eggleston Los Angeles, California, USA Preface xiii “Basic Electronics for Scientists and Engineers by Dennis Eggleston is an example of how the most important material in the introduction to electronics can be presented within a one-semester time frame. The text is written in a nice logical sequence and is beneficial for students majoring in all areas of the Natural Science. In addition, many examples and detailed introduction of all equations allows this course to be taught to students of different background – sophomores, juniors, and seniors. Overall, the effort of the author is thrilling and, definitely, this text will be popular among many instructors and students.” Anatoliy Glushchenko, Department of Physics and Energy Science, University of Colorado at Colorado Springs “This text is an excellent choice for undergraduates majoring in physics. It covers the basics, running from passive components through diodes, transistors and op-amps to digital electronics. This makes it self-contained and a one-stop reference for the student. A brief treatment of the semiconductor physics of silicon devices provides a good basis for understanding the mathematical models of their behaviour and the end-of-chapter problems help with the learning process. The concise and sequential nature of the book makes it easier to teach (and study) from than the venerable but somewhat overwhelming Art of Electronics by Horowitz and Hill.” David Hanna, W C Macdonald Professor of Physics, McGill University “I have been frustrated in the past by my inability to find a suitable book for a one- semester Electronics course that starts with analog and progresses to basic digital circuits. Most available books seem to be out of date or aimed at electrical engineers rather than scientists. Eggleston’s book is exactly what I was looking for – a basic course ideal for science students needing a practical introduction to electronics. Written concisely and clearly, the book emphasizes many practical applications, but with sufficient theoretical explanation so that the results don’t simply appear out of thin air.” Susan Lehman, Clare Boothe Luce Associate Professor and Chair of Physics, The College of Wooster 1 Basic concepts and resistor circuits 1.1 Basics We start our study of electronics with definitions and the basic laws that apply to all circuits. This is followed by an introduction to our first circuit element – the resistor. In electronics, we are interested in keeping track of two basic quantities: the currents and voltages in a circuit. If you can make these quantities behave like you want, you have succeeded. Current measures the flow of charge past a point in the circuit. The units of current are thus coulombs per second or amperes, abbreviated as A. In this text we will use the symbol I or i for current. As charges move in circuits, they undergo collisions with atoms and lose some of their energy. It thus takes some work to move charges around a circuit. The work per unit charge required to move some charge between two points is called the voltage between those points. (In physics, this work per unit charge is equivalent to the difference in electrostatic potential between the two points, so the term potential difference is sometimes used for voltage.) The units of voltage are thus joules per coulomb or volts, abbreviated V. In this text we will use the symbol V or v for voltage. In a circuit, there are sources and sinks of energy. Some sources of energy (or voltage) include batteries (which convert chemical energy to electrical energy), gen- erators (mechanical to electrical energy), solar cells (radiant to electrical energy), and power supplies and signal generators (electrical to electrical energy). All other electrical components are sinks of energy. Let’s see how this works. The simplest circuit will involve one voltage source and one sink, with connecting wires as shown in Fig. 1.1. By convention, we denote the two sides of the voltage source as + and −. A positive charge moving from the − side to the + side of the source gains energy. Thus we say that the voltage across the source is positive. When the circuit is complete, current flows out of the + side of the source, as shown. The voltage across the component is negative when we 2 Basic concepts and resistor circuits I + Voltage Source Component – Figure 1.1 A simple generic circuit. I2 I1 Node I3 Figure 1.2 Example of Kirchoff’s Current Law. cross it in the direction of the current. We say there is a voltage drop across the component. Note that while we can speak of the current at any point in the circuit, the voltage is always between two points. It makes no sense to speak of the voltage at a point (remember, the voltage is a potential difference). We can now write down some general rules about voltage and current. 1. The sum of the currents into a node (i.e. any point on the circuit) equals the sum of the currents flowing out of the node. This is Kirchoff’s Current Law (KCL) and expresses conservation of charge. For example, in Fig. 1.2, I1 = I2 + I3. If we use the sign convention that currents into a node are positive and currents out of a node are negative, then we can express this law in the compact form node Ik = 0 (1.1) k where the sum is over all currents into or out of the node. 2. The sum of the voltages around any closed circuit is zero. This is Kirchoff’s Voltage Law (KVL) and expresses conservation of energy. In equation form, loop Vk = 0. (1.2) k Here we must use the convention that the voltage across a source is positive when we move across the source in the direction of the current and the voltage 1.1 Basics 3 V2 V1 Loop 1 V3 Loop 2 V4 Figure 1.3 Example of Kirchoff’s Voltage Law. across a sink is negative when we move across the component in the direction of the current. If we traverse a source or sink in the direction opposite to the direction of the current, the signs are reversed. Figure 1.3 gives an example. Here we introduce the circuit symbol for an ideal battery, labeled with voltage V1. The top of this symbol represents the positive side of the battery. The current (not shown) flows up out of the battery, through the component labeled V2 and down through the components labeled V3 and V4. Looping around the left side of the circuit in the direction shown gives V1 − V2 − V3 = 0 or V1 = V2 + V3. Here we take V2 and V3 to be positive numbers and include the sign explicitly. Going around the right portion of the circuit as shown gives −V3 + V4 = 0 or V3 = V4. This last equality expresses the important result that components connected in parallel have the same voltage across them. 3. The power P provided or consumed by a circuit device is given by P = VI (1.3) where V is the voltage across the device and I is the current through the device. This follows from the definitions: work charge work VI = = = power. (1.4) charge time time The units of power are thus joules per second or watts, abbreviated W. This law is of considerable practical importance since a key part of designing a circuit is to employ components with the proper power rating. A component with an insufficient power rating will quickly overheat and fail when the circuit is operated. Finally, a word about prefixes and nomenclature. Some common prefixes and their meanings are shown in Table 1.1. As an example, recall that the unit volts is abbreviated as V, and amperes or amps is abbreviated as A. Thus 106 volts = 1 MV and 10−3 amps = 1 mA. Notice that case matters: 1 MA = 1 mA. 4 Basic concepts and resistor circuits Table 1.1 Some common prefixes used in electronics Multiple Prefix Symbol 1012 tera T 109 giga G 106 mega M 103 kilo k 10−3 milli m 10−6 micro μ 10−9 nano n 10−12 pico p 10−15 femto f I Slope = 1 R V Figure 1.4 I −V curve for a resistor. 1.2 Resistors A common way to represent the behavior of a circuit device is the I–V characteristic. This is a plot of the current I through the device as a function of applied voltage V across the device. Our first device, the resistor, has the simple linear I–V characteristic shown in Fig. 1.4. This linear relationship is expressed by Ohm’s Law: V = IR. (1.5) The constant of proportionality, R, is called the resistance of the device and is equal to one over the slope of the I–V characteristic. The units of resistance are ohms, abbreviated as . Any device with a linear I–V characteristic is called a resistor. The resistance of the device depends only on its physical properties – its size and composition. More specifically: L R=ρ (1.6) A 1.2 Resistors 5 Table 1.2 The resistivity of some common electronic materials Material ρ (10-8 m) Silver 1.6 Copper 1.7 Nichrome 100 Carbon 3500 Figure 1.5 Value and tolerance bands on a resistor. where ρ is the resistivity, L is the length, and A is the cross-sectional area of the material. The resistivity of some representative materials is given in Table 1.2. The interconnecting wires or circuit board paths are typically made of copper or some other low resistivity material, so for most cases their resistance can be ignored. If we want resistance in a circuit we will use a discrete device made of some high resistivity material (e.g., carbon). Such resistors are widely used and can be obtained in a variety of values and power ratings. The low power rating resistors typically used in circuits are marked with color coded bands that give the resistance and the tolerance (i.e., the uncertainty in the resistance value) as shown schematically in Fig. 1.5. As shown in the figure, the bands are usually grouped toward one end of the resistor. The band closest to the end is read as the first digit of the value. The next band is the second digit, the next band is the multiplier, and the last band is the tolerance value. The values associated with the various colors are shown in Table 1.3. For example, a resistor code having colors red, violet, orange, and gold corresponds to a value of 27 × 103 ± 5%. Resistors also come in variable forms. If the variable device has two leads, it is called a rheostat. The more common and versatile type with three leads is called a potentiometer or a “pot.” Schematic symbols for resistors are shown in Fig. 1.6. One must also select the proper power rating for a resistor. The power rating of common carbon resistors is indicated by the size of the device. Typical values are 1 1 1 8 , 4 , 2 , 1, and 2 watts. 6 Basic concepts and resistor circuits Table 1.3 Standard color scheme for resistors Color Digit Multiplier Tolerance (%) none 20 silver 0.01 10 gold 0.1 5 black 0 1 brown 1 10 red 2 100 2 orange 3 103 yellow 4 104 green 5 105 blue 6 106 violet 7 107 gray 8 white 9 Resistor Rheostat Potentiometer Figure 1.6 Schematic symbols for a fixed resistor and two types of variable resistors. As noted in Eq. (1.3), the power consumed by a device is given by P = VI, but for resistors we also have the relation V = IR. Combining these we obtain two power relations specific to resistors: P = I 2R (1.7) and P = V 2 /R. (1.8) 1.2.1 Equivalent circuit laws for resistors It is common practice in electronics to replace a portion of a circuit with its functional equivalent. This often simplifies the circuit analysis for the remaining portion of the circuit. The following are some equivalent circuit laws for resistors. 1.2.1.1 Resistors in series Components connected in series are connected in a head-to-tail fashion, thus forming a line or series of components. When forming equivalent circuits, any 1.2 Resistors 7 I R1 I V R2 V Req R3 Figure 1.7 Equivalent circuit for resistors in series. number of resistors in series may be replaced by a single equivalent resistor given by: Req = Ri (1.9) i where the sum is over all the resistors in series. To see this, consider the circuit shown in Fig. 1.7. We would like to replace the circuit on the left by the equivalent circuit on the right. The circuit on the right will be equivalent if the current supplied by the battery is the same. By KCL, the current in each resistor is the same. Applying KVL around the circuit loop and Ohm’s Law for the drop across the resistors, we obtain V = IR1 + IR2 + IR3 = I(R1 + R2 + R3 ) = IReq (1.10) where Req = R1 + R2 + R3. (1.11) This derivation can be extended to any number of resistors in series, hence Eq. (1.9). 1.2.1.2 Resistors in parallel Components connected in parallel are connected in a head-to-head and tail-to-tail fashion. The components are often drawn in parallel lines, hence the name. When forming equivalent circuits, any number of resistors in parallel may be replaced by a single equivalent resistor given by: 1 1 = (1.12) Req i Ri where the sum is over all the resistors in parallel. To see this, consider the circuit shown in Fig. 1.8. Again, we would like to replace the circuit on the left by the equivalent circuit on the right. 8 Basic concepts and resistor circuits I I1 I2 I3 I V R1 R2 R3 V Req Figure 1.8 Equivalent circuit for resistors in parallel. First, note that KCL requires I = I1 + I2 + I3. (1.13) Since the resistors are connected in parallel, the voltage across each one is the same, and, by KVL is equal to the battery voltage: V = I1 R1 , V = I2 R2 , V = I3 R3. Solving these for the three currents and substituting in Eq. (1.13) gives V V V 1 1 1 V I= + + =V + + = (1.14) R1 R2 R3 R1 R2 R3 Req where 1 1 1 1 = + +. (1.15) Req R1 R2 R3 Again, this derivation can be extended to any number of resistors in parallel, hence Eq. (1.12). A frequent task is to analyze two resistors in parallel. Of course, for this special case of Eq. (1.12) we get R1eq = R11 + R12. It is often more illuminating to write this 1 as an equation for Req rather than Req. After some algebra, we get R1 R2 Req =. (1.16) R1 + R2 This special case is worth memorizing. Example For the circuit shown in Fig. 1.9, how much current flows through the 20 k resistor? What must its power rating be? Solution As we will see, there is more than one way to solve this problem. Here we use a method that relies on basic electronics reasoning and our resistor equivalent circuit laws. We want the current through the 20 k resistor. If we knew the voltage across this resistor (call this voltage V20k ), we could then get the current from Ohm’s Law. In order to get the voltage across the 20 k resistor, we need the voltage across the 10 k resistor since, by KVL, V20k = 130 − V10k. In order to get the voltage across the 10 k resistor, we need to know the current through 1.2 Resistors 9 10 k R1 R2 5 k V0 130 V R4 20 k R3 5 k Figure 1.9 Example resistor circuit. it, which is the same as the current supplied by the battery. Thus, if we can get the current supplied by the battery we can solve the problem. To get the battery current, we combine all our resistors into one equivalent resistor. The implementation of this strategy goes as follows. 1. Combine the two 5 k series resistors into a 10 k resistor. 2. This 10 k resistor is then in parallel with the 20 k resistor. Combining these we get (using Eq. (1.16)) R1 R2 (10 k)(20 k) Req = = = 6.67 k. (1.17) R1 + R2 10 k + 20 k 3. This 6.67 k resistor is then in series with a 10 k resistor, giving a total equivalent circuit resistance Req = 16.67 k. 4. The current supplied by the battery is then V0 130 V I= = = 7.8 × 10−3 A = 7.8 mA. (1.18) Req 16.67 × 103 5. KVL then gives 130 V − (7.8 mA)(10 k) − V20k = 0. Solving this gives V20k = 52 V. 6. Ohm’s Law then gives I20k = 20 k = 2.6 mA, which is the solution to the first 52 V part of our problem. As a check, it is comforting to note that this current is less than the total battery current, as it must be. The remainder goes through the two 5 k resistors. 7. The power consumed by the 20 k resistor is P = I 2 R = (2.6 × 10−3 A)2 (2 × 104 ) = 0.135 W. This is too much for a 18 W resistor, so we must use at least a 14 W resistor. 10 Basic concepts and resistor circuits Rth Vth Figure 1.10 Representation of Thevenin’s theorem. 1.2.1.3 Thevenin’s theorem and Norton’s theorem The third of our equivalent circuit laws, Thevenin’s theorem, is a more general result that actually includes the first two laws as special cases. The theorem states that any two-terminal network of sources and resistors can be replaced by a series combination of a single resistor Rth and voltage source Vth. This is represented by the example in Fig. 1.10. The sources can include both voltage and current sources (the current source is described below). A more general version of the theorem replaces the word resistor with impedance, a concept we will develop in Chapter 2. The point of Thevenin’s theorem is that when we connect a component to the terminals, it is much easier to analyze the circuit on the right than the circuit on the left. But there is no free lunch – we must first determine the values of Vth and Rth. Vth is the voltage across the circuit terminals when nothing is connected to the terminals. This is clear from the equivalent circuit: if nothing is connected to the terminals, then no current flows in the circuit and there is no voltage drop across Rth. The voltage across the terminals is thus the same as Vth. In practice, the voltage across the terminals must be calculated by analyzing the original circuit. There are two methods for calculating Rth ; you can use whichever is easiest. In the first method, you start by short circuiting all the voltage sources and open circuiting all the current sources in the original circuit. This means that you replace the voltage sources by a wire and disconnect the current sources. Now only resistors are left in the circuit. These are then combined into one resistor using the resistor equivalent circuit laws. This one resistor then gives the value of Rth. In the second method, we calculate the current that would flow in the circuit if we shorted (placed a wire across) the terminals. Call this the short circuit current Isc. Then from the Thevenin equivalent circuit it is clear that Rth = VIscth. There is also a similar result known as Norton’s theorem. This theorem states that any two-terminal network of sources and resistors can be replaced by a parallel 1.2 Resistors 11 Inor Rnor Figure 1.11 Equivalent circuit of Norton’s theorem. combination of a single resistor Rnor and current source Inor. This equivalent circuit is shown in Fig. 1.11. The current source is usually less familiar that the voltage source, but the two can be viewed as complements of one another. An ideal voltage source will maintain a constant voltage across it and will provide whatever current is required by the rest of the circuit. Similarly, an ideal current source will maintain a constant current through it while the voltage across it will be set by the rest of the circuit. Returning now to the equivalent circuit, let’s determine Rnor and Inor. If we short the terminals, it is clear from the Norton equivalent circuit that all of Inor will pass through the shorting wire. Thus Inor = Isc. We have seen previously that the voltage across the terminals when nothing is connected is equal to Vth. From the Norton equivalent circuit we then see that Vth = Inor Rnor , so Vth Vth Rnor = = = Rth. (1.19) Inor Isc 1.2.2 Applications for resistors Resistors are probably the most common circuit element and can be used in a variety of simple circuits. Here are a few examples. 1. Current limiting. Many electronic devices come with operating specifications. For example, the ubiquitous LED (light emitting diode) typically operates with a voltage drop of 1.7 V and a current of 20 mA. Suppose you have a 9 V battery and wish to light the LED. How can you operate the 1.7 V LED with a 9 V battery? By the discriminating use of a resistor! Consider the circuit in Fig. 1.12. KVL gives V0 − IR − VLED = 0, where VLED is the voltage across the LED. We know that V0 = 9 V, VLED = 1.7 V, and we want I = 20 mA for proper operation. Solving for R gives V0 − VLED 9 − 1.7 V R= = = 365 . (1.20) I 20 × 10−3 A This is an example of using a resistor as a current limiter. Without it, the LED would burn out immediately. 12 Basic concepts and resistor circuits I R V0 VLED Figure 1.12 Application of a resistor as a current limiter. R1 I Vin R2 Vout Figure 1.13 The ubiquitous voltage divider. I1 I2 I R1 R2 Figure 1.14 The current divider. 2. Voltage divider. Another very common resistor circuit is shown in Fig. 1.13. Some voltage Vin is applied to the input and the circuit provides a lower voltage at the output. The analysis is simple. KVL gives Vin = I(R1 + R2 ) and Ohm’s Law gives Vout = IR2. Solving for I from the first equation and substituting in the second gives Vin R2 Vout = IR2 = R2 = Vin (1.21) R1 + R2 R1 + R2 where this last form emphasizes that Vout < Vin since R1R+R 2 2 < 1. This equation is used so frequently it is worth memorizing. 3. The current divider circuit is shown in Fig. 1.14. A current source is applied to two resistors in parallel and we would like to obtain an expression that tells us how the current is divided between the two. By KCL, I = I1 + I2. Since the two resistors are in parallel, the voltage across them must be the same. Hence, I1 R1 = I2 R2. Solving this latter equation for I2 and plugging into the first gives R1 R1 + R2 I = I1 + I1 = I1 (1.22) R2 R2 or R2 I1 = I. (1.23) R1 + R2 1.2 Resistors 13 I Im M Rs Rm Figure 1.15 Using a resistor to extend the range of a current meter. 4. Multi-range analog voltmeter/ammeter. In electronics, one frequently has the need to measure voltage and current. The instrument of choice for many experi- mentalists is the multimeter, which can measure voltage, current, and resistance. The analog version of the multimeter uses a simple meter as a display. If you tear one of these multimeters apart, you find that the meter is a current measuring device that gives a full scale deflection of the needle for a given, small current, typically 50 μA. This is fine if you want to measure currents from zero to 50 μA, but what if you have a larger current to measure, or want to measure a voltage instead? Both of these can be accomplished by judicious use of resistors. The circuit in Fig. 1.15 shows a meter in parallel with a so-called shunt resistor Rs. The physical meter (within the dotted lines) is represented by an ideal current measuring meter in series with a resistor Rm. When a current I is applied to the terminals, part goes through the meter and part through the shunt. The circuit is simply a current divider, so we have (cf. Eq. (1.22)) Rm I = Im 1 +. (1.24) Rs A full scale deflection of the meter will always occur when Im = 50 μA, and Rm is also set at the construction of the meter, but by adjusting the shunt resistance Rs we can make this full scale deflection occur for any input current I we choose. Another simple addition will allow us to use our meter to measure voltage. Placing a resistor Rs in series with the meter gives the configuration in Fig. 1.16. It is convenient here to define the voltage Vm = Im Rm that will produce a full scale deflection when applied across the physical meter. This circuit is then seen to be a voltage divider. Inverting Eq. (1.21) then gives 14 Basic concepts and resistor circuits Rs V M Vm Rm Figure 1.16 Using a resistor to measure voltage with a current meter. 10 k R1 I1 I0 R2 5 k 130 V V0 Loop 2 I2 Loop 3 R4 20 k R3 5 k Loop 1 Figure 1.17 The standard method of solving circuit problems. Rs V = Vm 1 + (1.25) Rm so by varying Rs we can make the full scale deflection of the meter correspond to any input voltage. 1.2.3 Techniques for solving circuit problems We list here three methods for solving circuit problems, and illustrate the use of these techniques on the same problem that we solved previously using equivalent circuit laws for resistors. Our goal is to solve for the current through resistor R4 in Fig. 1.17. The standard method This method involves assigning currents to each branch of the circuit and then applying KVL and KCL. In Fig. 1.17 we have assigned currents I0 , I1 , and I2. In this case, the application of KCL gives a single equation I0 = I1 + I2 (1.26) 1.2 Resistors 15 but in circuits with more than three branches KCL gives additional relations. Next we use KVL around the loops indicated in the figure. For Loop 1 we get V0 − I0 R1 − I1 R4 = 0 (1.27) while Loop 2 gives V0 − I0 R1 − I2 (R2 + R3 ) = 0 (1.28) and finally −I1 R4 + I2 (R2 + R3 ) = 0 (1.29) for Loop 3. We thus have four equations relating the three unknown currents I0 , I1 , and I2 and need to solve for I1. In practice we need only three independent equations to solve for the currents, but we have given all four here to illustrate the method. Solving Eq. (1.26) for I2 (one of the currents we are not interested in) and plugging into Eq. (1.29) gives −I1 R4 + (I0 − I1 )(R2 + R3 ) = 0 (1.30) and solving Eq. (1.27) for I0 gives V0 − I1 R4 I0 =. (1.31) R1 Plugging Eq. (1.31) into Eq. (1.30) and solving for I1 gives, after some algebra, V0 (R2 + R3 ) I1 =. (1.32) R1 R4 + (R1 + R4 )(R2 + R3 ) Plugging the circuit values into this equation gives I1 = 2.6 mA, our former answer. The mesh loop method Our second method for solving circuit problems is the mesh loop method. In this method, currents are assigned to the circuit loops rather than the actual physical branches of the circuit. This is shown in Fig. 1.18 where we assign current I1 to the outer loop and I2 to the inner loop. We then move around these loops, applying KVL, but including contributions from both loop currents. The outer loop then gives V0 − (I1 + I2 )R1 − I1 R4 = 0 (1.33) while the inner loop gives V0 − (I1 + I2 )R1 − I2 (R2 + R3 ) = 0. (1.34) 16 Basic concepts and resistor circuits R1 R2 V0 I2 R4 R3 I1 Figure 1.18 The mesh loop method of solving circuit problems. Note that the resulting set of equations is simpler in this method: two equations in two unknowns I1 and I2. For this reason the mesh loop method is usually preferable for more complicated circuits. Furthermore, our equations can be rearranged into the conventional form of a system of linear algebraic equations. Thus Eq. (1.33) becomes (R1 + R4 )I1 + R1 I2 = V0 (1.35) while Eq. (1.34) gives R1 I1 + (R1 + R2 + R3 )I2 = V0. (1.36) Students of linear algebra may wish to solve these using Cramer’s Method of Determinants or with the built-in capabilities of many hand-held calculators (see Appendix B). The usual brute force method also works: solving Eq. (1.36) for I2 , plugging this into Eq. (1.35), and solving for I1 produces (again, after some algebra), V0 (R2 + R3 ) I1 = , (1.37) (R1 + R4 )(R2 + R3 ) + R1 R4 the same expression obtained with the standard method. Thevenin’s theorem Finally, we solve this problem by using Thevenin’s theorem. We form the required two terminal network by removing R4 and taking the two terminals at the points where R4 was attached. This is shown in Fig. 1.19. The remaining circuit should look familiar – if we combine R2 and R3 it is the previously considered voltage divider. Thus R2 + R3 Vth = V0 = 65 V. (1.38) R1 + R2 + R3 1.2 Resistors 17 R1 R2 V0 R3 Figure 1.19 First step in solving the problem using Thevenin’s theorem. Rth Vth R4 Figure 1.20 Last step: re-attach R4 to the Thevenin equivalent circuit. Shorting out the battery leaves R1 in parallel with R2 + R3 so R1 (R2 + R3 ) Rth = = 5 k. (1.39) R1 + R2 + R3 Reattaching R4 then gives the simple circuit of Fig. 1.20 with the current through R4 given by Vth 65 V I1 = = = 2.6 mA (1.40) Rth + R4 25 k as before. 1.2.4 Input resistance A common measurement in the electronics lab is the voltage across a compo- nent. An important fact to keep in mind when making such measurements is that the measuring instrument becomes part of the circuit. The act of measuring thus inevitably changes the thing we are trying to measure because we are adding cir- cuitry to the original circuit. To help us cope with this problem, test instrument manufacturers specify a quantity called the input resistance Rin (or, as we will see later, the input impedance). The effect of attaching the instrument is the same as attaching a resistor with value Rin. To see how this helps, suppose we are mea- suring the voltage across some resistor R0 in a complicated circuit, as depicted in Fig. 1.21. 18 Basic concepts and resistor circuits rest of voltmeter complicated R0 Rin circuit Figure 1.21 Measuring the voltage across resistor R0 with a voltmeter. 20 k R1 V 2V voltmeter 20 k R2 20 k Rin Figure 1.22 Measuring the output of a voltage divider with a voltmeter. If we know the input resistance of our measuring device we see that the effect of making the measurement is to replace the original resistor R0 with the parallel combination of R0 with Rin R0 Rin R0 → R0 Rin = (1.41) R0 + Rin where R0 Rin is shorthand for the parallel combination. From this, one can see that the circuit-altering effect of attaching the measuring instrument is mitigated by making the input resistance as high as possible, because R0 Rin → R0 (1.42) R0 + Rin as Rin → ∞. As an example of what happens when Rin is not large, consider the circuit in Fig. 1.22. Ignoring the meter for a moment we see that the original circuit is a voltage divider, and application of Eq. (1.21) gives Vout = 1 V. But the effect of the meter’s input resistance is to change R2 to R2 Rin = 10 k. Using this in Eq. (1.21) gives Vout = 23 V, and this is what the meter will indicate. So, unless we are aware of the effect of input resistance, we run the danger of making a false measurement. On the other hand, if we are aware of this effect, we can analyze the effect and determine the true value of our voltage when the meter is unattached. 1.3 AC signals 19 Figure 1.23 Impedance specification for a typical analog meter. How does one determine the value of the input resistance for a given instrument? Here are some common ways. 1. Look in the instrument manual under input resistance or input impedance. The value should be in ohms. 2. For analog voltmeters, look for a specification with units of ohms per volt (/V). This is usually printed on the face of the meter itself, as shown in Fig. 1.23. To get Rin , multiply this number by the full scale voltage selected. For example, suppose your meter is specified as 20000 /V and you have selected the 2.5 V full scale setting. The input resistance is then 20000 × 2.5 = 50 k. 3. You may have to analyze the instrument circuitry itself. The relevant question is: when a voltage is applied to the input of the instrument, how much current flows into the instrument? Then, by Ohm’s Law, the input resistance is just the ratio of this voltage and current. 1.3 AC signals So far our examples have used constant voltage sources such as batteries. Constant voltages and currents are described as DC quantities in electronics. On the other 20 Basic concepts and resistor circuits V A 0 t T 2T −A Figure 1.24 A sine wave. hand, voltages and currents that vary in time are called AC quantities. For future reference, we list here some of the most common AC signals. 1. Sinusoidal signals. This is probably the most fundamental signal in electronics since, as we will see later, any signal can be constructed from sinusoidal signals. A typical sinusoidal voltage is shown in Fig. 1.24. Sinusoidal voltages can be written V = A sin(2π ft + φ) = A sin(ωt + φ) (1.43) where A is the amplitude, f is the frequency in cycles/second or hertz (abbrevi- ated Hz), φ is the phase, and ω is the angular frequency (in radians/second). The repetition time trep is also called the period T of the signal, and this is related to the frequency of the signal by T = 1f. There are several ways to specify the amplitude of a sinusoidal signal that are in common use. These include the following. (a) The peak amplitude A or Ap. (b) The peak-to-peak amplitude App = 2A. √ (c) The rms amplitude Arms = A/ 2. This is useful for power calculations involving sinusoidal waves. For example, suppose we want the power dissipated in a resistor given the sinusoidally varying voltage across it. We cannot simply use Eq. (1.8) since our voltage is varying in time (what V would we use?). Instead, we calculate the time average of the power over one period: T T 1 V2 1 A2 A2 P= dt = A2 sin2 (ωt + φ)dt = = rms. (1.44) T 0 R TR 0 2R R 1.3 AC signals 21 This last form shows that we can use Eq. (1.8) to calculate the power as long as we use the rms amplitude of the sinusoidal signal in the formula. The same argument applies to Eq. (1.7) for sinusoidal currents. (d) Decibels (abbreviated dB) are used to compare the amplitude of two signals, say A1 and A2 : 2 A2 A2 P2 dB = 20 log10 = 10 log10 = 10 log10 (1.45) A1 A1 P1 where this last expression uses the power level of the two signals. So, for example, if A2 = 2A1 , then we get 20 log 2 ≈ 6, so we say A2 is 6 dB higher than A1. Various related schemes specify the decibel level relative to a fixed standard. So dBV is the dB relative to a 1 Vrms signal and dBm is the dB relative to a 0.78 Vrms signal. For the curious, this latter voltage standard is 1 mW into a 600 resistor. Some other typical waveforms of electronics are shown in Figs. 1.25 through 1.30. 2. Square wave. Specified by an amplitude and a frequency (or period). V A 0 t T 2T −A Figure 1.25 The square wave. 3. Sawtooth wave. Specified by an amplitude and a frequency (or period). V A 0 t T 2T Figure 1.26 The sawtooth wave. 22 Basic concepts and resistor circuits 4. Triangle wave. Specified by an amplitude and a frequency (or period). V A 0 t T 2T −A Figure 1.27 The triangle wave. 5. Ramp. Specified by an amplitude and a ramp time. V A 0 t tramp Figure 1.28 A ramp signal. 6. Pulse train. Specified by an amplitude, a pulse width τ , and a repetition time trep. The duty cycle of a pulse train is defined as τ/trep. V A 0 t τ trep Figure 1.29 A pulse train. 7. Noise. These are random signals of thermal origin or simply unwanted signals coupled into the circuit. Noise is usually described by its frequency content, but that is a more advanced topic. V 0 t Figure 1.30 Noise. Exercises 23 EXERCISES 1. What is the resistance of a nichrome wire 1 mm in diameter and 1 m in length? 2. What is the maximum allowable current through a 10 k, 10 W resistor? Through a 10 k, 1/4 W resistor? 3. (a) What power rating is needed for a 100 resistor if 100 V is to be applied to it? (b) For a 100 k resistor? 4. Compute the current through R3 of Fig. 1.31. R3 = 3 V1 = 5 V R2 = 6 R1 = 5 Figure 1.31 Circuit for Problems 4 and 5. 5. Compute the current through R1 and R2 of Fig. 1.31. 6. The output of the voltage divider of Fig. 1.32 is to be measured with voltmeters with input resistances of 100 , 1 k, 50 k, and 1 M. What voltage will each indicate? 2 k 3V 1 k Vout Figure 1.32 Circuit for Problem 6. 7. A real battery can be modeled as an ideal voltage source in series with a resistor (the internal resistance). A voltmeter with input resistance of 1000 measures the voltage of a worn-out 1.5 V flashlight battery as 0.9 V. What is the internal resistance of the battery? 8. If the flashlight battery of the preceding problem had been measured with a voltmeter with input resistance of 10 M, what would the reading be? 9. What is the resistance across the terminals of Fig. 1.33? 10. Suppose that a 25 V battery is connected to the terminals of Fig. 1.33. Find the current in the 10 resistor. 11. Compute the current through R2 and R3 of Fig. 1.34. 24 Basic concepts and resistor circuits 3 10 15 5 2 Figure 1.33 Circuit for Problems 9 and 10. R1 R3 3 8 V1 5V R2 5 V2 15 V Figure 1.34 Circuit for Problem 11. 12. Find the Thevenin voltage and Thevenin resistance of the circuit shown in Fig. 1.35. 3 2 V1 10 V 5 Figure 1.35 Circuit for Problem 12. 13. Find the Thevenin voltage and Thevenin resistance of the circuit shown in Fig. 1.36 with R5 removed. The two terminals for this problem are the points where R5 was connected. 100 1 k R1 R2 R5 V1 10 V 10 R3 R4 99 1 k Figure 1.36 Circuit for Problems 13 and 14. Exercises 25 14. Using the result of the previous problem, find the current through R5 of Fig. 1.36. 15. In the circuit of Fig. 1.37, compute the current in the 3 resistor and find the value of V2. 0.833 A 1.389 A 4 6 10 V 3 V2 Figure 1.37 Circuit for Problem 15. 16. In the circuit of Fig. 1.38, find the value of V3 such that the current in the 10 resistor is zero. 9 6 10 30 V 15 V V3 Figure 1.38 Circuit for Problem 16. 17. Compute all the currents labeled in the circuit of Fig. 1.39 assuming the following values: V1 = 5 V, V2 = 10 V, V3 = 15 V, R1 = 2 , R2 = 4 , R3 = 6 , R4 = 7 , R5 = 5 , R6 = 3 . Suggestion: use the mesh loop method. I4 V1 R4 V2 R1 R2 I1 V3 I2 I6 R6 R5 I5 I3 R3 Figure 1.39 Circuit for Problem 17. 18. (a) Compute the current through the 10 resistor in the circuit of Fig. 1.40. Do not use Thevenin’s or Norton’s theorems for this computation. (b) Now 26 Basic concepts and resistor circuits 12 5 V1 10 V 8 10 Figure 1.40 Circuit for Problem 18. find the Thevenin voltage, the Thevenin resistance, and the Norton current when the 10 resistor is removed. The two terminals for this problem are the points where the 10 resistor was connected. (c) Show that, if the 10 resistor is connected to the Thevenin equivalent circuit, the current through the 10 resistor matches the value found in part (a). Do the same for the Norton equivalent circuit. FURTHER READING Charles K. Alexander and Matthew N. O. Sadiku, Fundamentals of Electric Circuits, 2nd edition (New York: McGraw-Hill, 2004). L. W. Anderson and W. W. Beeman, Electric Circuits and Modern Electronics (New York: Holt, Rinehart, and Winston, 1973). Dennis Barnaal, Analog Electronics for Scientific Application (Prospect Heights, IL: Waveland Press, 1989). James J. Brophy, Basic Electronics for Scientists, 5th edition (New York: McGraw-Hill, 1990). A. James Diefenderfer and Brian E. Holton, Principles of Electronic Instrumentation, 3rd edition (Philadelphia, PA: Saunders, 1994). Robert E. Simpson, Introductory Electronics for Scientists and Engineers, 2nd edition (Boston, MA: Allyn and Bacon, 1987). 2 AC circuits 2.1 Introduction Currents and voltages that vary in time are called AC quantities. When analyzing circuits where the current and voltage change in time, the treatment of resistors is unchanged: they still obey Ohm’s Law. In this chapter we introduce two other basic circuit components, the capacitor and the inductor. The treatment of these components depends on the details of how things are changing in time, and this will require the development of some new analysis techniques. 2.2 Capacitors Another basic circuit component is the capacitor. A capacitor is formed by any pair of conductors, but the usual form is two parallel plates. For this case, the capacitance C is given by A C= (2.1) d where A is the area of a plate, d is the distance between plates, and is the dielectric constant of the material between the plates. Note that, like the resistance, the capacitance depends only on the physical characteristics of the device. The unit of capacitance is coulombs per volt or farads, abbreviated F. Typical capacitor values are in a range such that μF or pF are convenient units. When purchasing a capacitor, you must specify its voltage rating in addition to its capacitance value. This rating tells you the maximum voltage you can apply across the capacitor before there is electrical breakdown through the dielectric material. So what does a capacitor do? One answer is that it is a charge storage device. When a voltage V is applied to a capacitor, a charge of magnitude Q will be stored on each plate. Q is given by Q = CV. (2.2) 28 AC circuits C1 V C2 V Ceq C3 Figure 2.1 Equivalent circuit for capacitors in series. In electronics, we are usually concerned with currents (the flow of charge) rather than charge. If we take the time derivative of Eq. (2.2) and note that, by definition, I = dQ dt we get dV I=C. (2.3) dt Viewed from this perspective, C is the constant relating a time-varying voltage across the capacitor to the AC current through the capacitor. 2.2.1 Equivalent circuit laws for capacitors As with resistors, capacitors in series and parallel can be combined to form simpler equivalent circuits. 2.2.1.1 Series capacitors Consider, for example, three capacitors in series as shown in Fig. 2.1. We wish to combine the capacitors to form the equivalent circuit on the right. Let Q1 be the charge on capacitor C1 and so on. Applying KVL and Eq. (2.2) we obtain Q1 Q2 Q3 V− − − = 0. (2.4) C1 C2 C3 By charge conservation, the charge on each capacitor is the same, so Q1 = Q2 = Q3 ≡ Q and 1 1 1 V =Q + +. (2.5) C1 C2 C3 Comparing this with Eq. (2.2), we see that the equivalent capacitance Ceq will be given by 1 1 1 1 = + + (2.6) Ceq C1 C2 C3 2.3 Inductors 29 V C1 C2 C3 V Ceq Figure 2.2 Equivalent circuit for capacitors in parallel. or, generalizing this to any number of capacitors in series, 1 1 =. (2.7) Ceq i Ci 2.2.1.2 Parallel capacitors Now consider three capacitors in parallel as shown in Fig. 2.2. Again, let Q1 be the charge on capacitor C1 and so on. Because the capacitors are connected in parallel, the voltage across them must be the same Q1 Q2 Q3 V= = =. (2.8) C1 C2 C3 If we add the three charges and apply Eq. (2.8) to each term, we get Q1 + Q2 + Q3 = V (C1 + C2 + C3 ). (2.9) If we are to form an equivalent capacitor the battery must supply the same amount of charge in both cases. Thus Qeq = Q1 + Q2 + Q3 and, from Eq. (2.9), Qeq = V (C1 + C2 + C3 ). Comparing this with Eq. (2.2), we see that Ceq = C1 + C2 + C3 (2.10) or, generalizing this to any number of capacitors in parallel, Ceq = Ci. (2.11) i Note that capacitors combine opposite to the way resistors combine: series resistors add up directly while parallel capacitors add up directly. 2.3 Inductors We learn in introductory physics that currents produce magnetic fields (Ampère’s Law) and that time-varying magnetic fields can induce a voltage in a circuit 30 AC circuits (Faraday’s Law). Putting these together means that time-varying currents in a circuit induce voltages. This is expressed in equation form by dI V =L (2.12) dt where the constant L is called the self-inductance or simply the inductance. While any circuit loop has inductance, we usually ignore this (like we ignore the small resistance of connecting wires) and, if inductance is required in a circuit, add discrete inductors made of coils of wire. For a long coil (i.e., a solenoid), this inductance is given by μN 2 π R2 L= (2.13) l where μ is the permeability of the material on which the coil is wound, N is the number of turns in the coil, R is the radius of the coil, and l is the length of the coil. The unit of inductance is volts times seconds per amp or henries (abbreviated H). The derivation of the equivalent circuit laws for inductors in series and parallel is similar to that for resistors, and we leave the details to the reader. The result for inductors in series is Leq = Li (2.14) i and for inductors in parallel 1 1 =. (2.15) Leq i Li Note that inductors combine the same way that resistors do. 2.4 RC circuits Now we turn to our first circuit that combines components – in this case a resistor and capacitor in series. Consider the circuit in Fig. 2.3. R V0 C Figure 2.3 A switched RC circuit. 2.4 RC circuits 31 The resistor-capacitor combination is connected to a switch which can be posi- tioned to connect to the battery V0 or to a short. We can analyze both cases at once: applying KVL we obtain Q V = IR + (2.16) C where V is equal to V0 when the switch connects to the battery and is equal to zero when the switch is down. We next take the derivative of Eq. (2.16) in order to remove Q in favor of the current I. Since V is constant for either switch position, we obtain for both cases dI I 0=R +. (2.17) dt C We thus have a first order differential equation for the current I that must be solved to complete the analysis of the circuit. Rearranging Eq. (2.17), we obtain dI dt =−. (2.18) I RC Integrating both sides gives t ln I = − +K (2.19) RC where K is the constant of integration. Finally, we exponentiate both sides t t I = exp − + K = I0 exp −. (2.20) RC RC In this last step we have introduced a new constant I0 in place of the constant exp(K). Equation (2.20) is the general solution for the current as a function of time. We will see how to determine the constant I0 in a moment. The voltage across the resistor is just IR. Let’s also determine the voltage across the capacitor, Vc. KVL gives (for either switch position) Vc = V − IR. Employing Eq. (2.20) we obtain t Vc = V − I0 R exp −. (2.21) RC For future reference, we note that, since V and I0 R are constants, we can write a general solution for Vc as t Vc = V1 exp − + V2 (2.22) RC where V1 and V2 are constants. 32 AC circuits 2.4.1 Charging To further determine the behavior of the circuit, we need to specify the conditions when the switch is thrown (i.e., the initial conditions). Suppose we assemble the circuit with an uncharged capacitor so that Vc is initially zero. We define t = 0 at the instant we throw the switch to connect the battery. Thus, at t = 0, Vc = 0 and V = V0. Using this information in Eq. (2.21), we obtain: 0 = V0 − I0 R (2.23) which then gives us the unknown constant I0 = VR0. Using this information in Eqs. (2.20) and (2.21) gives us our specific solutions: V0 t I= exp − (2.24) R RC and t Vc = V0 1 − exp −. (2.25) RC These solutions are plotted in Fig. 2.4. It is worth noting some of the key features. The current starts at its maximum value V0 /R and then falls toward zero. The capacitor starts (as we specified) with zero voltage and approaches the battery voltage V0 as it charges up. Each solution has an exponential term with a decay that depends on the ratio t/RC. The product RC, which has units of time, is called the time constant of the decay. It determines how long it takes for the circuit to approach its final state. When t = RC, the current has dropped to about 37% of its initial value and the capacitor has reached roughly 63% of its final value. This notion of time constant makes physical sense, too: a larger capacitor will take longer to fill with charge; a larger resistor will limit the flow of charge, thus increasing the time it takes to charge up the capacitor. 2.4.2 Discharging Suppose that we have waited long enough that the capacitor has become fully charged. We now throw the switch to the down position. Resetting our clock to t = 0, our initial conditions are now Vc = V0 and V = 0. Using this information in Eq. (2.21) gives: V0 V0 = 0 − I0 R → I0 = − (2.26) R 2.4 RC circuits 33 V V0 t Vc V0 0.63V0 t RC I V0 R V 0.37 R0 t Figure 2.4 Capacitor voltage and RC current for RC charging. so our specific solutions become V0 t I=− exp − (2.27) R RC and t Vc = V0 exp −. (2.28) RC These solutions are plotted in Fig. 2.5. As the capacitor discharges, the capacitor voltage decays exponentially with a time constant RC and approaches zero (the voltage level it is now attached to). The current is negative because it flows in the opposite direction during discharge; it also decays exponentially with the same time constant. 2.4.3 Response to a square wave We can use the insight we have obtained from our study of the switched RC circuit to sketch out the response of an RC circuit to a square wave drive. The square wave is a little different than our switch problem in that the voltage switches between V0 and −V0 rather than V0 and zero, so in the square wave case the discharge will approach −V0. 34 AC circuits Vc V0 0.37V0 t RC −I V0 R V 0.37 R0 t Figure 2.5 Capacitor voltage and RC current for RC discharging. R Vin C Vout Figure 2.6 Simple RC circuit with output across the capacitor. Let’s first examine the case where the output of the circuit is the voltage across the capacitor. We can represent this case with the circuit diagram of Fig. 2.6 where Vin is a square wave of amplitude V0 and period T. The shape of the output voltage will depend on the relative size of RC and T/2. Some representative cases are shown in Fig. 2.7. If RC T/2, the capacitor has plenty of time to charge up fully while the square wave voltage stays constant. We thus see the same shape waveform as we saw in the switch problem. When the input voltage switches from V0 to −V0 , the capacitor discharges (or charges to the opposite polarity) and approaches the new input voltage. Note that for this case, the output voltage looks like a square wave with rounded leading edges. If RC ≈ T/2, the capacitor initially charges toward V0 , but only gets part of the way there before the input switches to −V0. It now tries to charge to this input voltage, but, again, does not have the time to get there. Now the output voltage is quite different from a square wave. The maximum and minimum voltages are not shown for this case since they depend on the exact relationship between RC and T/2, but we can say that the maximum voltage is less than V0 and the minimum voltage is greater than −V0. 2.4 RC circuits 35 V0 Vin 0 T 2T t −V0 V0 0 t RC T 2 −V0 Vout 0 t RC ≈ T 2 0 t RC T 2 Figure 2.7 Output of the circuit of Fig. 2.6 for a square-wave input voltage. If RC T/2, the capacitor has even less time to charge and discharge before the input voltage switches. In this case, the waveform is a series of rising and falling lines forming a triangle wave. This reflects the fact that the first term in the expansion of [1 − exp (−t/RC)] for small t/RC is linear in time. 2.4.4 Voltage across the resistor Having put so much work into our analysis of the RC circuit, let’s squeeze out another result. Suppose we apply our square wave to the rearranged circuit of Fig. 2.8. Now our output voltage is the voltage across the resistor. This may seem like new territory, but it really is not since Vout = IR and we already solved the 36 AC circuits C Vin R Vout Figure 2.8 Simple RC circuit with output across the resistor. V0 Vin 0 T 2T t −V0 V0 0 t RC T 2 −V0 Vout 0 t RC ≈ T 2 0 t RC T 2 Figure 2.9 Output of the circuit of Fig. 2.8 for a square-wave input voltage. problem for I. Again, the shape of the output voltage depends on the relative size of RC and T/2 as shown in Fig. 2.9. When RC T/2, we have the case that is most like our switching problem. The current (and thus the output voltage) starts at its maximum value and decays exponentially toward zero. Since RC T/2, there is plenty of time to decay all the 2.5 Response to a sine wave 37 way to zero. When the input voltage switches polarity, the current goes negative and again decays toward zero. The output voltage resembles a series of positive and negative spikes. As the RC time constant becomes larger with respect to T/2, there is not enough time for the current to decay all the way to zero before the input switches, so the output voltage waveforms take on the shapes shown in the figure. When RC T/2, the spiky behavior is gone and the output looks like a distorted square wave. 2.5 Response to a sine wave We now consider the response of an RC circuit to a sine wave drive. While it may appear that we are just making a minor change to the input waveform, the change is actually much more profound. For the switching case (or the square wave), the input voltage was, at each instant of time, constant. This allowed us to solve the differential equation (Eq. (2.17)) resulting from the circuit analysis, producing simple functions of time for I and Vc. This approach is called a time domain analysis. For more complicated input voltages, time domain analysis is not always possible because we cannot solve the resulting differential equation. In these cases, it is sometimes useful to analyze the circuit in terms of its sine wave response, which we will call a frequency domain analysis. The relevant RC circuit is shown in Fig. 2.10, where now the voltage source is a sine wave input Vin. As usual, KVL gives Q Vin = + IR (2.29) C and taking the time derivative of this and rearranging yields dI I dVin R + =. (2.30) dt C dt Note that, unlike the switching problem, the derivative of the input voltage is not zero. To proceed, we now specify the input voltage as Vin = Vp sin ωt and assume C Vin R Figure 2.10 Simple RC circuit driven by a sinusoidal voltage. 38 AC circuits the current has the form I = Ip sin (ωt + φ), where Ip and φ are constants to be determined. Plugging into Eq. (2.30) results in Ip RωIp cos (ωt + φ) + sin (ωt + φ) = ωVp cos ωt. (2.31) C Note that our approach has allowed us to turn a differential equation (2.30) into an algebraic equation (2.31). We now proceed to solve for Ip and φ. In order to isolate the unknown constants φ and Ip , we employ the following trig identities: sin (ωt + φ) = sin ωt cos φ + cos ωt sin φ (2.32) and cos (ωt + φ) = cos ωt cos φ − sin ωt sin φ. (2.33) Dividing Eq. (2.31) by RωIp and applying these identities gives 1 Vp (cos ωt cos φ − sin ωt sin φ) + (sin ωt cos φ + cos ωt sin φ) = cos ωt. ωRC Ip R (2.34) Rearranging, we get 1 Vp 1 cos φ + sin φ − cos ωt + −sin φ + cos φ sin ωt = 0. ωRC Ip R ωRC (2.35) In order to proceed in our quest for Ip and φ, we make the following argument: Eq. (2.35) is valid for all times t, and thus must be valid for any particular time we choose. If we choose t = 0, then sin ωt = 0 and cos ωt = 1, and Eq. (2.35) reduces to 1 Vp cos φ + sin φ − = 0. (2.36) ωRC Ip R π Alternatively, if we choose t such that ωt = 2, then sin ωt = 1 and cos ωt = 0 and we obtain 1 −sin φ + cos φ = 0. (2.37) ωRC This last equation can now be solved for φ: sin φ 1 −1 1 = tan φ = → φ = tan. (2.38) cos φ ωRC ωRC 2.5 Response to a sine wave 39 1 φ ωRC Figure 2.11 Right triangle satisfying Eq. (2.38). Equation (2.36) requires sin φ and cos φ in order to solve for Ip. If we have values for ω, R, and C then, of course, we can obtain a number for φ from Eq. (2.38) and simply plug-in to get sin φ and cos φ. But we prefer to obtain general algebraic results, so we use the following trick. A right triangle satisfying Eq. (2.38) is shown in Fig. 2.11. It thus follows that sin φ and cos φ are given by 1 sin φ = (2.39) 1 + (ωRC)2 and ωRC cos φ =. (2.40) 1 + (ωRC)2 Using these expressions in Eq. (2.36), ωRC 1 1 Vp + = (2.41) 1 + (ωRC)2 ωRC 1 + (ωRC)2 Ip R which gives, after some algebra, ωC Ip = Vp. (2.42) 1 + (ωRC)2 Recalling the form we assumed for the current at the beginning, our final solution is ωCVp I= sin (ωt + φ), (2.43) 1 + (ωRC)2 where φ is given by −1 1 φ = tan. (2.44) ωRC 40 AC circuits C Vin R Vout Figure 2.12 A high-pass RC filter. 2.5.1 RC positive phase shifter and high-pass filter We can now apply our result to two common circuits. The first, shown in Fig. 2.12, takes the output voltage Vout across the resistor. Since we have already solved for the current, getting this output voltage is easy: ωRCVp Vout = IR = sin (ωt + φ). (2.45) 1 + (ωRC)2 Recalling that our input voltage has the assumed form Vin = Vp sin ωt, we see that the output voltage has changed in two ways. (1) It has shifted in phase. Since ωRC > 0, Eq. (2.44) tells us that 0 < φ < π2. Thus our circuit is a positive phase shifter. (2) The amplitude has changed. It is u