Bode plot
From Wikipedia, the free encyclopedia
A Bode plot, named after Hendrik Wade Bode, is usually a combination of a Bode magnitude plot and Bode phase plot:
A Bode magnitude plot is a graph of log magnitude against log frequency often used in signal processing to show the transfer function or frequency response of a linear, time-invariant system.
It makes multiplication of magnitudes a simple matter of adding distances on the graph, since
The Bode plot describes the output response of a frequency-dependent system for a normalised input. The magnitude axis of the Bode plot is often converted directly to decibels.
A Bode phase plot is a graph of phase against log frequency, usually used in conjunction with the magnitude plot, to evaluate how much a frequency will be phase-shifted. For example a signal described by: Asin(ωt) may be attenuated but also phase-shifted. If the system attenuates it by a factor x and phase shifts it by −Φ the signal out of the system will be (A/x) sin(ωt − Φ). The phase shift Φ is generally a function of frequency.
The magnitude and phase Bode plots can seldom be changed independently of each other — changing the amplitude response of the system will most likely change the phase characteristics and vice versa. For minimum-phase systems the phase and amplitude characteristics can be obtained from each other with the use of the Hilbert transform.
If the transfer function is a rational function, then the Bode plot can be approximated with straight lines. These asymptotic approximations are called straight line Bode plots or uncorrected Bode plots and are useful because they can be drawn by hand following a few simple rules. Simple plots can even be predicted without drawing them.
The approximation can be taken further by correcting the value at each cutoff frequency. The plot is then called a corrected Bode plot.
Contents |
[edit] Rules for hand-made Bode plot
The main idea about Bode plots is that one can think of the log of a function in the form:
as a sum of the logs of its poles and zeros:
This idea is used explicitly in the method for drawing phase diagrams. The method for drawing amplitude plots implicitly uses this idea, but since the log of the amplitude of each pole or zero always starts at zero and only has one asymptote change (the straight lines), the method can be simplified.
[edit] Straight-line amplitude plot
Amplitude decibels is usually done using the 20log10(X) version. Given a transfer function in the form
-
- where s = jω, xn and yn are constants, and H is the transfer function:
- at every value of s where ω = xn (a zero), increase the slope of the line by per decade.
- at every value of s where ω = yn (a pole), decrease the slope of the line by per decade.
- The initial value of the graph depends on the boundaries. The initial point is found by putting the initial angular frequency ω into the function and finding |H(jω)|.
- The initial slope of the function at the initial value depends on the number and order of zeros and poles that are at values below the initial value, and are found using the first two rules.
To handle irreducible 2nd order polynomials, can, in many cases, be approximated as .
Note that zeros and poles happen when ω is equal to a certain xn or yn. This is because the function in question is the magnitude of H(jω), and since it is a complex function, . Thus at any place where there is a zero or pole involving the term (s + xn), the magnitude of that term is .
[edit] Corrected amplitude plot
To correct a straight-line amplitude plot:
- at every zero, put a point above the line,
- at every pole, put a point below the line,
- draw a smooth line through those points using the straight lines as asymptotes (lines which the curve approaches).
Note that this correction method does not incorporate how to handle complex values of xn or yn. In the case of an irreducible polynomial, the best way to correct the plot is to actually calculate the magnitude of the transfer funcition at the pole or zero corresponding to the irreducible polynomial, and put that dot over or under the line at that pole or zero.
[edit] Straight-line phase plot
Given a transfer function in the same form as above:
the idea is to draw separate plots for each pole and zero, then add them up. The actual phase curve is given by
To draw the phase plot, for each pole and zero:
- if A is positive, start line (with zero slope) at 0 degrees,
- if A is negative, start line (with zero slope) at 180 degrees,
- at every ω = xn (a zero), slope the line up at degrees per decade, beginning one decade before ω = xn (that is, start at ),
- at every ω = yn (a pole) slope the line down at degrees per decade, beginning one decade before ω = yn (that is, start at ),
- flatten the slope again when the phase has changed by degrees (for a zero) or degrees (for a pole),
- After plotting one line for each pole or zero, add the lines together to obtain the final phase plot; that is, the final phase plot is the super-position of each earlier phase plot.
[edit] Example
A lowpass RC filter, for instance has the following frequency response:
The cutoff frequency point fc (in hertz) is at the frequency
- .
The line approximation of the Bode plot consists of two lines:
- for frequencies below fc it is a horizontal line at 0 dB,
- for frequencies above fc it is a line with a slope of −20 dB per decade.
These two lines meet at the cutoff frequency. From the plot it can be seen that for frequencies well below the cutoff frequency the circuit has an attenuation of 0dB, the filter does not change the amplitude. Frequencies above the cutoff frequency are attenuated - the higher the frequency, the higher the attenuation.
[edit] Bode plotter
The Bode plotter is an electronic instrument resembling an oscilloscope, which produces a Bode diagram, or a graph, of a circuit's voltage gain or phase shift plotted against frequency in a feedback control system or a filter. It is extremely useful for analyzing and testing filters and the stability of feedback control systems, through the measurement of corner (cutoff) frequencies and gain and phase margins.
This is identical to the function performed by a vector network analyzer, but the network analyzer is typically used at much higher frequencies.
[edit] See also
[edit] External links
- Explanation of Bode plots with movies and examples
- How to draw piecewise asymptotic Bode plots
- Summarized drawing rules (PDF)
- Bode plot applet - Accepts transfer function coefficients as input, and calculates magnitude and phase response
- Bode Plotting on the HP49
- Circuit analysis in electrochemistry