Professional Documents
Culture Documents
Electrical Systems.
o Resistor-Capacitor circuits have time constants.
o Resistor-Inductor circuits have time constants.
Mechanical Systems
o Many motions exhibit time-constant behavior. For example
when a motor speeds up, the measurements of speed would
reveal time-constant behavior.
Thermal Systems
o Heating up and cooling down in simple thermal systems shows
time-constant behavior. Lakes cooling off after the summer
slow down the approach of winter near the lake, and later
lakes slowly heating up in the spring retard the approach of
summer. That behavior can be explained using time constants.
Physiological Systems
o The inner ear has dynamics that can be explained using two
time constants
Psychological Systems
o Psychologists have measured the time constant that
determines how much learned material you retain as a function
of time after learning.
x(t) = response
u(t) = input or driving function
Examples:
o u(t) = heat in, x(t) = temperature
o u(t) = voltage into a circuit, x(t) = output voltage
o u(t) = voltage driving a motor, x(t) = motor speed.
The constants in the differential equation are:
Response when the input is zero (There is no input), but the output
has some initial value.
-t/
o x(t) = x(0)e
, which looks like:
Examples:
Motor slowing down when the power is turned off.
Temperature rise above ambient decaying to zero when
the heat source is turned off.
Response when the input is a constant (Commonly called the Step
Response), which looks like:
o
o
o
Determine the time when the variable has decayed to 37% of the
initial value.
That time is the measured time constant.
You need a response that dies out to zero. If you have a response
that has the right shape, but which does not die out to zero, then
you may have to redefine a component of the response in order to
meet this requirement.
The method depends upon the value of the response at only one
point. In essence, you throw away all of the data that you have
except for the starting value and the 37% value.
The first note above has some implications. Here is a response that
exhibits time constant behavior.
This response does not decay to zero. However, it does apparently decay
to a value of 17, so if you subtracted 17 from the response you would get
a response function that did decay to zero. That might make some sense
physically in many situations. For example, the plot above might be the
temperature above ambient (in Celsius degrees) and the temperature rise
Here the steady state is 50, and you could take the difference between
the steady state (50) and the response. That difference decays to zero
as the response approaches the steady state, and that gives you the kind
of function that you want.
Here is the method.
You do not need a response that dies out to zero. If you have a
response that decays to some non-zero final value, just extend the
initial slope line until the extended line hits the final value.
The method depends upon the slope of the response at only one
point. In essence, you throw away all of the data that you have
except for the starting value and the initial slope.
In this plot, the initial slope has been extended (blue line) and intersects
the final value (0) at about 25 seconds, so the time constant would be 25
seconds.
The Logarithmic Method
There are other methods that you can use. Both of the previous
methods really depend upon values at a single time. There is another
method that uses all of the data. Consider the equation for the response
curve.
x(t) = x(0)e-t/
Take the logarithm of the response curve and we have the following.
ln[x(t)] = ln[x(0)] - t/
This is the equation of a straight line when plotted against t. That leads
us to the following strategy.
Take a set of data at different times. That data set would be x(tk)
and would comprise all of the values and all of the times.
Plot the values of the data, x(tk), against the times, tk. That should
give you a straight line.
Determine the equation of the line.
o The slope of the line is the time constant.
o The intercept is the natural log of the initial value.
In this response, the data does not decay to zero. However, if you take
the following steps, you can get a data set that you can use with this
method.
First, determine the steady state. In real data sets you will have to
make the best estimate you can.
Secondly, subtract the data from the steady state value you
determined in the first step.
o If the data can be put into a spreadsheet that's an easy step.
o You subtract the data from the steady state so you can get
numbers that are all positive so that you can take a logarithm
of your result in this step.
Finally, you have some exponentially decaying data. Take the
logarithm and you should see a straight line. You might have to
adjust the steady state value a little in either direction to see what
gives you the best straight line.
Capacitors
Why Are Capacitors Important?
What Is A Capacitor?
Voltage Current Relationships In Capacitors
Energy In Capacitors
What Is Impedance?
Using Impedance
Some Impedance Laws/Combinations
Why Are Capacitors Important?
The capacitor is a widely used electrical component. It has several
features that make it useful and important:
A capacitor can store energy, so capacitors
are often found in power supplies.
A capacitor has a voltage that is proportional
to the charge (the integral of the current) that
is stored in the capacitor, so a capacitor can
be used to perform interesting computations
in op-amp circuits, for example.
Circuits with capacitors exhibit frequencydependent behavior so that circuits that
amplify certain frequencies selectively can
be built.
What Is A Capacitor?
Capacitors are two-terminal electrical
elements. Capacitors are essentially two
conductors, usually conduction plates - but
any two conductors - separated by an
insulator - a dielectric - with conection wires
connected to the two conducting plates.
Capacitors occur naturally. On printed circuit boards two wires running
parallel to each other on opposite sides of the board form a capacitor. That's a
capacitor that comes about inadvertently, and we would normally prefer that it
not be there. But, it's there. It has electrical effects, and it will affect your
circuit. You need to understand what it does.
At other times, you specifically want to use capacitors because of their
frequency dependent behavior. There are lots of situations where we want to
design for some specific frequency dependent behavior. Maybe you want to
filter out some high frequency noise from a lower frequency signal. Maybe you
want to filter out power supply frequencies in a signal running near a 60 Hz
line. You're almost certainly going to use a circuit with a capacitor.
Sometimes you can use a capacitor to store energy. In a subway car, an
insulator at a track switch may cut off power from the car for a few feet along
the line. You might use a large capacitor to store energy to drive the subway
car through the insulator in the power feed.
Capacitors are used for all these purposes, and more. In this chapter
you're going to start learning about this important electrical component.
Remember capacitors do the following and more.
Store energy
Change their behavior with frequency
Come about naturally in circuits and can change a circuit's
behavior
GOALS
You need to know what you should get from this lesson on capacitors.
Here's the story.
Given a capacitor,
Be able to write and use the voltage-current
relationship for the capacitor,
Be able to compute the current through a
capacitor when you know the voltage across
a capacitor.
Given a capacitor that is charged,
Be able to compute the amount of energy that
is stored in the capacitor.
Capacitors and inductors are both elements that can store energy in
purely electrical forms. These two elements were both invented early in
electrical history. The capacitor appeared first as the legendary Leyden jar, a
device that consisted of a glass jar with metal foil on the inside and outside of
the jar, kind of like the picture below. This schematic/picture shows a battery
attached to leads on the Leyden jar capacitor.
Although this device first appeared in
Leyden, a city in the Netherlands sometime
before 1750. It was discovered by E. G. von
Kleist and Pieter van Musschenbroek.
Although it has been around for about 250
years, it has all of the elements of a modern
capacitor, including:
Two conducting plates. That's the metallic foil in the Leyden jar.
An insulator that separates the plates so that they make no
electrical contact. That's the glass jar - the Leyden jar.
captures the essence of the two plates and the insulating dielectric between
the plates.
Now, consider a capacitor that starts out with no charge on either plate. If
the capacitor is connected to a circuit, then the same charge will flow into one
plate as flows out from the other. The net result will be that the same amount
of charge, but of opposite sign, will be on each plate of the capacitor. That is
the usual situation, and we usually assume that if an amount of charge, Q, is
on the positive plate then -Q is the amount of charge on the negative plate.
The essence of a capacitor is that it stores charge. Because they
store charge they have the properties mentioned earlier - they store energy
and they have frequency dependent behavior. When we examine charge
storage in a capacitor we can understand other aspects of the behavior of
capacitors.
In a capacitor charge can accumulate on the two plates. Normally charge
of opposite polarity accumulates on the two plates, positive on one plate and
negative on the other. It is possible for that charge to stay there. The positive
charge on one plate attracts and holds the negative charge on the other plate.
In that situation the charge can stay there for a long time.
That's it for this section. You now know pretty much what a capacitor is.
What you need to learn yet is how the capacitor is used in a circuit - what it
does when you use it. That's the topic of the next section. If you can learn that
then you can begin to learn some of the things that you can do with a
capacitor. Capacitors are a very interesting kind of component. Capacitors are
one large reason why electrical engineers have to learn calculus, especially
about derivatives. In the next section you'll learn how capacitors influence
voltage and current.
Voltage-Current Relationships In Capacitors
You will need to define a polarity for that voltage. We've defined the voltage
above. You could reverse the "+" and "-".
Q is the charge on the plate with the "+" on the voltage polarity
definition.
C is a constant - the capacitance of the capacitor.
This derivative kind of relationship also has some implications for what
happens in a capacitor, and we are going to spend some time exploring that
relationship. Clearly, we need to understand what this relationship implies,
and then we need to learn how it affects things when we write circuit
equations using KVL and KCL.
We'll start by considering a time varying
voltage across a capacitor. To have something
specific, let's say that we have a 4.7mf capacitor,
and that the voltage across the capacitor is the
voltage time function shown below. That voltage
rises from zero to ten volts in one millisecond,
then stays constant at ten volts. Before you go
on try to determine what the current through the
capacitor looks like, then answer these
questions.
Energy In Capacitors
Storing energy is very important. You count on the energy stored in your
gas tank if you drove a car to school or work today. That's an obvious case of
energy storage. There are lots of other places where energy is stored. Many
of them are not as obvious as the gas tank in a car. Here are a few.
Capacitors can't really be used to store a lot of energy, but there are
many situations in which a capacitor's ability to store energy becomes
important. In this lesson we will discuss how much energy a capacitor can
store.
Capacitors are often used to store energy.
gives
Since the square of the voltage appears in the energy formula, the
energy stored is always positive. You can't have a negative amount
of energy in the capacitor. That means you can put energy into the
capacitor, and you can take it out, but you can't take out more than
you put in.
The voltage and the current are both sinusoidal signals (a sine
function or a cosine function) at the same frequency.
The current leads the voltage. In other words, the peak of the
current occurs earlier in time than the peak of the voltage signal.
Now, with these observations in hand, it is possible to see that there may
be an algebraic way to express all of these facts and relationships. The
method reduces to the following.
Using Impedance
In the last section we began to talk about the concept of impedance. Let
us do that a little more formally. We begin by defining terms.
This expression relates the current phasor to the phasor that represents the
voltage across the capacitor. The quantity 1/jC is the impedance of the
capacitor. In the last section we justified this relationship.
We can also compute the phasor for the voltage across the resistor.
VR = IR
This looks amazingly like Ohm's law, and it is, in fact, Ohm's law, but it is in
phasor form. For that matter, the relationship between voltage and current
phasors in a capacitor - just above - may be considered a generalized form of
Ohm's law!
Now, we can also apply Kirchhoff's Voltage Law (KVL) to compute the
phasor for the input voltage.
VIN = VR + VC = IR + I/jC = I(R + 1/jC)
You should note the similarities in what happens here and what happens
when you have two resistors in series.
If you have a resistor, R, and a capacitor, C, in series, the current
phasor can be computed by dividing the input voltage phasor by the
sum of R and 1/jC.
If you have two resistors in series (call them R1and R2), the current can
be computed by dividing the input voltage by the sum of R1and R2.
Example
Consider a series circuit of a resistor and capacitor. The series
impedance is:
Z = R + 1/jC
That's the same as we showed just above. The impedance can be used to
predict relationships between voltage and current. Assume that the voltage
across the series connection is given by:
vSeries(t) = Vmax cos(t)
That corresponds to having a voltage phasor of:
V = Vmaxo
We also know that the impedance establishes a relationship between the
voltage and current phasors in the series circuit. In particular, the voltage
phasor is the product of the current phasor and the impedance.
V=IZ
For our particular impedance, we have:
V = I*(R + 1/jC)
So, we can solve for the current phasor:
I = V / (R + 1/jC)
Now, we know the voltage phasor and we know the impedance so we can
compute the current phasor. Let us look at some particular values.
Assume:
R = 1.0 k
C = .1f = 10-7 f
f = 1 kHz, so = 2 103
Vmax = 20 v
Then:
ZR = 1.0 k
ZC = 1/(jC) = 1/(j2 103 10-7 ) = j 1.59 k
And, the total impedance is:
Z = ZR + ZC = (1.0 + j 1.59) k
This impedance value can also be expressed in polar notation:
Z = 1.878 o
Now, compute the current phasor:
I = V / (R + 1/jC)
Substituting values, we find:
I = V / Z = Vmaxo / 1.878 o =20o / 1.878 o
I = V / Z = (20 / 1.878) o = 10.65 oamps
And, we need to examine exactly what this means for the current as a function
of time. But that isn't very difficult. We can write out the expression for the
current from what we have above.
the instant that the switch opens and becomes zero instantaneously. Now,
answer the following questions:
What is the voltage across the inductor?
What is the voltage across the source?
What is the voltage across the resistor?
What is the voltage across the switch?
In each case, as you answer the question, be sure to supply reasons for your
conclusions.
An Example Circuit
We are going to examine a simple circuit that has frequency
dependent behavior, a resistor-capacitor (RC) circuit. It is shown below.
To illustrate how this circuit responds to a sinusoidal signal input we can
do any of the following.
We can write the differential equation relating the input and output
voltages and solve for the output assuming a sinusoidal signal input.
We can assume a sinusoidal input and use LaPlace transform
methods to compute the output voltage.
Since the input is a sinusoid, we know that the output contains a
sinusoid and terms that decay to zero. We can work from there.
We will use the third approach - and we will assume a steady state
output and work backwards from the output to compute the input.
Since the first thing we want to do is just to look at how a circuit
can affect sinsusoidal signals, we're going to assume a sinusoidal output
and work backwards to calculate the input voltage that produces that
output. That's not a very general approach, but it will get us what we want
now, and prepare us for other things to come. We will be able to do that
without too much algebraic pain, and we can learn some things from the
result.
So, we will assume that the output voltage is given by:
vout(t) = B sin(t)
Be sure that you understand that B is the magnitudeof the output
signal
Now, what does that form for the
output voltage imply?
And then we can compute the voltage across the resistor, R, as:
vR(t) = Ri(t) = RCB cos(t)
Or:
We know:
sin(x+y) = sin(x)cos(y) + cos(x)sin(y)
And, we know:
vin(t) = B(RC cos(t) + sin(t))
And the second expression can be put into the form of the first
There are two conclusions to draw from the resulting expression for the
input voltage.
You can use the expressions for the gain, B/A, and the phase
shift, , to predict behvarior of circuits like this. You should note the
following in these expressions.
to zero - i.e. DC) and the high frequency phase (which tends toward
-90o as the frequency gets very high).
So, there are two reasons to think of that frequency (f = 1/2RC)
as a critical frequency.
Note that that frequency is sometimes referred to as the
bandwidth of the circuit. It's one way to measure the band of
frequencies that get through the circuit relatively unscathed.
With those thoughts you can think a little more deeply using the
simulator we have just below.
A Simulation of the Circuit
Note: - This simulator is real time. However, to let you see how the
circuit behaves, we have made the signals very slow - on the order of a
few Hertz, or even a fraction of a Hertz. The time constant (the R-C
product) should be correspondingly long - on the order of a second (from
a fraction of a second to a few seconds). You won't see much if you stray
far from these limits - even though these are long time constants and the
bandwidths are quite low. That's just for purposes of illustration.
(However, note that you could get a one second time constant using R =
1.0 M, and C = 1.0f.)
Here is the simulator.
R = 10 k
C = 0.1 f
R = 10 k
C = 0.1 f
P4. Assume that you have an RC filter circuit with a 0.5 second time
constant. Determine the phase shift between output and input at 1.0Hz.
Remember the sign and give your answer in degrees (not radians).
NOTE: This problem has a long time constant and a low frequency so that
you can use a real time simulator to check your answer before you submit
it. Click here to get the simulator in a separate window.
R = 1 k
C = 0.047 f
Determine the frequency (in Hertz) for which the attenutation is 0.707.
In other words, the output is reduced by 29.3%.
Problems
o Problem Freq1P01
o Problem Freq1P02
o Problem Freq1P03
o Problem Freq1P04
o Problem Freq1P05
Labs
o Resistor Capacitor Filter Frequency Response
Bode' Plots
Why Bode' Plots?
What are Bode' Plots?
First Order Systems
Decibels
Bode' Plots for
Second Order Systems
Bode Plots for Larger Systems (Examples)
You are at: Basic Concepts - System Models - Frequency Response - Bode' Plots
Click here to return to the Table of Contents
discerned to have the common factors that lead to those shapes. For example,
first order systems have two straight line asymptotes and if you take data and plot
a Bode' plot from the data, you can pick out first order factors in a transfer
function from the straight line asymptotes.
You may have used Bode' plots without knowing it. Stereo equipment amplifiers, speakers, microphones, headsets, etc. - often have frequency response
specifications, and when you buy that kind of equipment, you may have seen a Bode'
plot used to communicate frequency response specifications.
All in all, Bode' plots are widely used, not just to specify or show a frequency
response, but they also give useful information for designing control systems.
Stability criteria can be interpreted on Bode' plots and there are numerous design
techniques based on Bode' plots.
You need to know how to use Bode' plots when you encounter them in those
situations, so this lesson will help you to understand the basics of Bode' plots.
What do you need to learn about Bode' plots? Here is a short summary:
or w.
The vertical axis is gain, expressed in decibels - a logarithmic measure of gain.
Sometimes, the vertical axis is simply a gain on a logarithmic scale.
Given these characteristics, you still need to know what a Bode' plot looks
like. Our strategy in this lesson will be to examine some simple systems - first
order and second order systems - to see what Bode' plots for the frequency
response of those systems look like. We'll start with the simplest system first,
and work from there. We will end by looking at how those simple systems can be
combined to make more complex systems with more complex Bode' plots.
Remember one of our goals above.
Enter your answer in the box below, then click the button to submit your
answer.
Problem 3
Here is another Bode' plot like the one we have been examining.
Determine the corner frequency, in Hz, for this system.
Enter your answer in the box below, then click the button to submit your
answer.
Your grade is:
There's one last point to observe regarding first order systems. The
general first order system has a transfer function of this form.
G(j) = Gdc/(j + 1)
The point to note is that there is a DC gain term in the numerator.
This really is the DC gain. Let the frequency, , be zero:
G(j0) = Gdc/(j0 + 1) = Gdc
The effect of DC gain is to raise or lower the entire plot. You need to
understand the effect of a DC gain on a Bode' plot. Let's look at the entire
transfer function.
G(j) = Gdc/(j + 1)
log(|G(j)|) = log(Gdc) - log(1/(()2 + 1))
This really says that log(Gdc) is added at every frequency.
Here is a movie where you can set the gain and see how the gain
changes the Bode' plot.
We'll start with second order factors in the denominator, i.e. second
order poles. We're not done with Bode' plots. Remember:
Our Bode' plots so far were all plotted with a log scale on the
vertical (gain) axis. Decibels are more often used and you need to
learn about them.
Second order systems have interesting Bode' plots - and it is
important to know about them. Click here to look at Bode' plots for
second order systems.
The gain can be expressed as the logarithm - to the base ten (10) - of
the power gain
Gain = log10(Po/Pi)
When expressed this way, the units are bels.
A decibel is one tenth of a bel, so the gain expressed in decibels is:
Gaindb = 10 log10(Po/Pi)
The unit bel is something of a story in itself.
Alexander Graham Bell did a lot of work with the deaf, and he was
recognized for his work with an honorary doctorate in 1880 by Gaulladet
College in Washington, D.C.(and he also delivered the commencement
address) He is more famous for his founding of the National Geographic
Society, and other work he did.
Alexander Graham Bell was also honored by having a unit named in his
honor - the bel.
Today, the decibel is a commonly used unit to measure sound intensity
and it is well known that high decibel levels contribute to deafness - a
very ironic closing of the circle.
Today, power is not so much an issue. We're more interested in voltage
gain of an amplifier. There's an interesting transition from power to
voltage that will help us understand how gain - expressed in decibels - is
viewed today.
In an amplifier, if the amplifier has an input resistance R1, then the
power input to the amplifier is given by:
Power In = V12/R1
Similarly, the output power into a resistor Ro is given by:
Check that this is the slope for any decade, from 1000 to 10,000 or
from 3000 to 30,000 Hz.
log(|G(j)|) = log(1/)
= -log()
= -log() - log()
Express things in terms of decibels.
log(|G(j)|) = -log() - log()
Gaindb = 20 log10(|G(j)|) = -20 log() - 20 log()
Now, if we start with some frequency, o, we can calculate the gain at the
frequency.
Gaindb(o) = -20 log(o) - 20 log()
Now, take a frequency one decade higher, at 10o.
Gaindb(10o) = -20 log(10o) - 20 log()
We can calculate the difference in the db gain at these two frequencies.
Gaindb(10o) - Gaindb(o)
= [-20 log(10o) - 20 log()] - [-20 log(10o) - 20 log()]
The difference is:
Gaindb(10o) - Gaindb(o)
= -20 log(10o) + 20 log(o)
= -20 log(10) - 20 log(o) + 20 log(o)
= -20 log(10) = -20 db - in one decade!
Reflecting on the derivation above, we realize that this derivation says that
the slope is -20 db/decade for the high frequency asymptote in the Bode' plot.
It's also possible to express that another way. If we consider two frequencies
that are an octave apart, we can see that the slope can also be said to be 6db/octave.
The difference in the frequency response between the two frequencies is:
Gaindb(2wo) - Gaindb(wo)
= -20 log(2o) + 20 log(o)
= - 20 log(2) - 20 log(o) + 20 log(o)
= -20 log(2) = -6.0206 db - in one decade - and it's usually just rounded
to -6db/octave.
It's time to leave this topic. However consider this. We've only looked at one
first order system. Higher order systems - even second order systems - are bound
to have some differences in their Bode' plot behavior. High frequency asymptotes
will drop off at different slopes, for example, although we'll find that they drop
off at integral multiples of -20db/decade or -6 db/octave.
There are lots of interesting things you need to know, and you can start
looking at second order systems now.
Here's a Bode' plot for a second order system. This system has the following
parameters:
This system also has at least one unexpected feature - the "hump" in the
frequency response between f = 100 and f = 200 - a resonant peak. It's important
to understand how that peak in the frequency response comes about. Let's look at
the transfer function of a second order system. Here's a general form for such a
system. Examine how that system behaves for different frequencies.
That means that the high frequency gain drops off at -40 db/decade.
At the natural frequency, the (j)2 term becomes -n2, cancelling out the
Now we can find an explanation for the hump in the frequency response.
The only term that involves the damping ratio is the one left in the
denominator when = n.
The damping ratio is in the denominator, so the smaller the damping ratio,
the larger the frequency response is going to be.
or G(jn) =Gdc/j2
It depends only upon the DC gain and the damping ratio, and, the smaller the
damping ratio, the higher the gain at the natural frequency.
Now, recall the other important behavior at low frequencies and high
frequencies.
For small , the gain is just Gdc, assuming Gdc = 10 (or 20 db) on the plot.
And, we can insert the point at the resonant frequency, using our formula.
o
G(jn) =Gdc/j2
so this works out to be a gain of 50 at the resonant peak, the equivalent of 34 db.
Do we have a problem here?
The peak is well above either of the asymptotes at the natural frequency.
We should believe all of the math we've done.
Is there really a problem here? Should we look at the actual frequency
response? Here it is. There's the peak. It does exist.
Let's examine the parameters here again to be sure that his all
hangs together. The system parameters were:
Gdc= 10,
= 0.1,
and the natural frequency. Hopefully, you'll see how this peak depends upon the
system's damping ratio. Use the right and left arrow controls to step the movie a
single step forward or backward.
Gdc = 1.0.
Natural frequency = 159 Hz.
Damping ratio - variable and controllable by user.
What should we note about the second order system response in the movie?
Finally, we have to deal with the phase. A Bode' plot isn't complete until you
have the phase plot. Here's a phase plot for a system with:
How the phase plot depends upon damping ratio is something you should know.
Next, we have a movie of phase shift as a function of damping ratio.
For the system in the plot, the parameters are:
Gdc = 1.0.
Natural frequency = 159 Hz.
Damping ratio - variable.
Now, at this point you've seen Bode' plots for second order system with
complex poles. Second order systems with real poles are really combinations of
two first order systems, and they will be covered in the next section.
At this point, one direction to continue would be to continue to the next
section. However, you might want to go in the direction of looking at Nyquist plots
for the systems discussed above. In that case, use this link to go to the lesson on
Nyquist plots.
Nyquist Plots
At slightly higher frequencies, the (.002s + 1) term will start to have an effect.
The (.002s + 1) term will add another -20db/decade slope to the plot, for a
total of -40 db.decade.
We get -40 db/decade because we now have two poles contributing to the
roll-off, and 2*(-20db/dec) = -40 db/dec.
The second corner frequency is at f = 500/2p = 79.5Hz.
The straight line approximation is high at the corners, but gives a pretty
good idea of where the actual Bode' plot lies.
Now, let us make this slightly more complicated. Here's another transfer
function.
And don't forget we still have one more corner frequency. so let's add the last
corner frequency.