Simulation
Load scenarios (up to 3):
How to run the simulation + useful info
% MatLab(©) Script to generate Bode plots of custom zero/pole location.
%
% Tomas Sadilek @ ControlSystemsAcademy.com
% 2017
%
% Please use appropriate MatLab(? license
clc; clear all; format compact; close all
poles = [];
zeroes = [];
z = poly(zeroes)
p = poly(poles);
Hs = tf(z,p)
x = bodeoptions;
x.XLim = [0.01 100]
figure(1)
bode(Hs,x)
% no more
Bode Plot Theory
Transfer Function
See the System Modeling with Transfer Functions article for more details.
Magnitude Bode Plot & Phase Bode Plot
There is so much great material online, please follow these links for excellent lectures and slides:
Examples
A low-pass filter decreases the magnitude of high frequency components. Three examples are provided : single-pole, complex-pole, and three-pole. Higher order results in more aggressive filtering (-20 dB per decade per pole) and phase lag.
See the First-Order Low-Pass Filter Discretization article for more details on low-pass filters.
The corner frequency of all three filters is 100 rad/s.
The Bode plots of the example three low pass filters:
A high-pass filter decreases the magnitude of low frequency components. Three examples are provided : single-pole, complex-pole, and three-pole. Higher order results in more aggressive filtering (-20 dB per decade per pole) and phase lag.
The corner frequency of all three filters is 100 rad/s.
The Bode plots of the example three high-pass filters:
From Reference 2:
Notch filter could in theory be realized with two zeros placed at +/-(j omega_0). However, such a filter would not have unity gain at zero frequency, and the notch will not be sharp.
To obtain a good notch filter, put two poles close the two zeros on the semicircle as possible. Since the both pole/zero pair are equal-distance to the origin, the gain at zero frequency is exactly one. Same for omega = +/- inf.
The Bode plots of the example notch filter:
The pole-zero map of the example notch filter:
See the Lead-lag compensator @ Wiki
The lead controller helps us in two ways: it can increase the gain of the open loop transfer function, and also the phase margin in a certain frequency range.
The Bode plots of the example lead compensator:
The pole/zero plot of the example lead compensator:
See the Lead-lag compensator @ Wiki
The Bode plots of the example lag compensator:
The pole/zero plot of the example lag compensator:
The text below is copied from a public PDF provided by the University of Leuven. It is very well written.
Lead compensation achieves the desired result through the merits of its phase lead contribution.
Lag compensation accomplishes the result through the merits of its attenuation property at high frequencies.
Lag compensation reduces the system gain at higher frequencies without reducing the system gain at lower frequencies. Since the system bandwidth is reduced, the system has a slower speed to response. Thanks to this, the total system gain can be increased, as well as the low-frequency gain and the steady state accuracy can be improved. Also, any high-frequency noise involved in the system is attenuated.
Lag compensation will introduce a pole-zero combination near the origin that will generate a long tail with small amplitude in the transient response.
If both fast responses and good static accuracy are desired, a lag-lead compensator may be employed. By use of the lag-lead compensator, the low-frequency gain can be increased (which means an improvement in steady state accuracy), while at the same time the system bandwidth and stability margins can be increased.
See the Lead-lag compensator @ Wiki
See Chapter 12: Lead and Lag Compensators from the University of Leuven
The Bode plots of lead-lag compensator:
The pole/zero plot of the example lead-lag compensator:
See the PI Controller : THEORY + DEMO article for more details.
The Bode plots of PI controller:
The pole/zero plot of the example PI controller:
A filter is typically applied to the measured signal - voltage, current, speed to remove undesired noise.
See the PI Controller : THEORY + DEMO article for more details.
The Bode plots of example PI controller with LPF:
The pole/zero plot of the example PI controller with LPF:
References
Version
Version of this article is 10/24/2017.
Further Reading
In MatLab, DSPs, and FPGAs.
.
The fundamentals of signal flow.
Introduction to dynamic systems.
It is all sine waves.