Professional Documents
Culture Documents
Lebanese University
Faculty of Engineering - Branch III - Hadath
Department of Electrical and Electronics Engineering
Table of Contents
2 Course Content
Table of Contents
2 Course Content
Disturbances
ŷ(t)
Measurements
r is the reference or the desired output that the system should reach
y is the output of the system
ŷ is the measured output
e is the error between the reference and the output
u is the control input or the output of the controller
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 5 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
Resistors
Capacitors
Issue
Potentiometers Complication of the design especially with
advanced control
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 7 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
Digital Control
Digital control is a branch of control theory that uses digital computers
to act as system controllers. A digital control system can take the form
of a microcontroller, microprocessor or a standard desktop computer.
Digital Control Advantages
Accuracy: small errors compared to analog signals where noise and
power supply drift are present.
Implementation errors: The errors that result from digital
representation and arithmetic are negligible.
Flexibility: An analog controller is difficult to modify or redesign
once implemented in hardware.
Speed: digital controllers achieve performance that is essentially the
same as continuous controllers.
Cost
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 8 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
Digital Control
Digital Control
w(t)
ŷ(kT ) Clock
A/D Sensor
ŷ(t)
v(t)
Table of Contents
2 Course Content
Course Content
This course entitled ”Automatique II” will cover the following topics:
Part I - Digital Control Systems
Discrete Time System Analysis and Modeling (Z-Transform, difference
equations, transfer function, Stability)
Frequency Analysis of Discrete Systems
Design of Discrete Controller
Part II - State Space Control for Continuous and Discrete Systems
Control Law Design
Estimator Design
Reference Tracking and Disturbance Rejection
Multivariable and Optimal Control
The course will be based on two main textbooks:
G. Franklin and al., Digital Control of Dynamic Systems,
Addison-wesley, 1998.
G. Duc, Commande des Systèmes Linéaires par Variable d’Etats,
Supélec, 2005.
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 15 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
Table of Contents
2 Course Content
Dynamic Response
Differential Equations
Dynamic Response
Differential Equations
+ di i
V C R + =0
− dt C
Solving the equation gives us:
The voltage across the resistor and V −t/RC
capacitor are: Z e i=
1 R
vR = R · i and vC = i dt vR = Ve −t/RC
Z C Z
1
KVL ⇒ Ri + i dt = V vC = i dt = V 1 − e −t/RC
C
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 18 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
Dynamic Response
Differential Equations
Example
Write the state-space representation of the 2nd-order differential equation:
ÿ + 2ζω0 ẏ + ω02 y = K0 u
Solution:
ẋ1 0 1 x1 0
ẋ2 = −ω 2 −2ζω + u
0 0 x2 K0
x1
y= 1 0
x2
where the state vector is:
x y
x= 1 =
x2 ẏ
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 19 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
Dynamic Response
Laplace Transform and Transfer Functions
The most important property of the Laplace Transform (with zero initial
conditions) is the transform of the derivative signal:
L [ẋ(t)] = sX (s)
Considering the differential equation of a second order system:
ÿ + 2ζω0 ẏ + ω02 y = K0 u
The Laplace Transform of this equation is: Transfer Function
A transfer function is a
s 2 + 2ζω0 s + ω02 Y (s) = K0 U(s) mathematical function which
theoretically models the
The transfer function of this system is:
device’s output for each
Y (s) K0 possible input.
G (s) = = 2
U(s) s + 2ζω0 s + ω02
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 20 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
Dynamic Response
Laplace Transform and Transfer Functions
The theorem allows us to solve for that final value without solving for the
system’s entire response. This will be very useful when examining
steady-state errors of control systems.
Block Diagrams
Poles
The values of s such that a(s) = 0 will be the places where H(s) is
infinity, and these values of s are called poles of H(s).
Zeros
The values of s such that b(s) = 0 will be the places where H(s) is zero,
and these values of s are called zeros of H(s).
0.8
Stability
If σ > 0, the pole is located at
0.6
s < 0, the exponential decays and
h(t)
Complex poles can be described in terms of their real and imaginary parts:
s = −σ ± jωd
Since complex poles always come in complex conjugate pairs for real
polynomials, the denomiator corresponding to a complex pair will be:
ωn2 ωn2
H(s) = ⇒ H(s) =
s 2 + 2ζωn s + ωn2 (s + ζωn )2 + ωn2 (1 − ζ 2 )
θ = sin−1 ζ Im(s) Second Order Step Response
2
ζ=0
ζ = 0.2
ζ = 0.4
1.5
ζ = 0.6
ωn ζ = 0.8
y(t) ζ=1
1
Re(s)
ωd 0.5
σ
0
0 2 4 6 8 10 12
Time (s)
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 29 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
Stability
Disturbances
Steady-State Errors
Disturbances
If r (t) is a step input and the system
r(t) e(t) Compensation u(t) System y(t)
+
− D(s) G(s) is stable, using the final value
ŷ(t)
theorem:
Sensor
1 1
ess =
The difference between the reference 1 + Kp
input r and the output y is the where Kp = lim D(s)G (s) is called
system error: s→0
the position-error constant.
E (s) 1 For type 0 system, D(s)G (s) has a
= = S(s)
R(s) 1 + D(s)G (s) denominator that does not have s as
a factor.
The transfer function S(s) is ⇒ Kp and ess are finite.
sometimes called the sensitivity.
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 33 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
Steady-State Errors
Disturbances
Velocity Constant:
r(t) e(t) Compensation u(t) System y(t)
+
− D(s) G(s) Kv = lim sD(s)G (s)
s→0
ŷ(t) Acceleration Constant:
Sensor
1
Ka = lim s 2 D(s)G (s)
s→0
Kv is finite ⇒ type 1 system.
The higher the forward loop gain of
K is finite ⇒ type 2 system.
DG , the lower the value of the error e. a
Step Ramp Parabola
An integrator has the property that a 1
zero steady input can produce a finite Type 0 ∞ ∞
1 + Kp
output, thus producing an infinite 1
gain. Type 1 0 ∞
Kv
If there is an integrator in D or G , 1
Type 2 0 0
the steady-state gain will be ∞ and Ka
the error will be zero.
Dr. Bilal Komati (ULFG) Digital Control Systems-Chapter 1 Fall 2020/2021 34 / 37
Digital Control Systems – Introduction Course Content Review of Continuous Control
PID Control
PID Control
PID Control