Professional Documents
Culture Documents
Lec 1
Lec 1
Faulty of Engineering
Mechatronics Engineering Dept.
Lec 1
Introduction and Mathematical modeling of control systems
➢ Transfer Function
Control System
➢ A physical system is defined as a system in which physical components are connected by one
of some regular forms to perform an objective.
Input Output
System
Classification of Control Systems
• Thermal Systems
• Pneumatic Systems
Input 1
Input 2
Input Output Input 3 MISO
SISO Output
System
. System
.
.
Input n
V1 H
Outlet flow
𝑸𝒐
Closed - loop Tank Level Control System Open- loop Tank Level Control System
The basic elements of a feedback control system
reference
error control output
signal
signal signal signal
r(t) + Controller /
e(t) u(t) y(t)
Compensator Plant / System
Actuators
_ GC(s) G(s)
H(s)
Sensors
The basic elements of a feedback control system
1) sensors (sensor is a device that detects and responds to some type of input from the physical environment like
3) Plant / System (Robot, Self Autonomous Vehicle, CNC Machine, Vehicle engines, Conveyor systems,
4) Analog Controllers / Digital controllers (Computer /Microprocessor / Microcontroller / PLC ,……, etc.)
For example, the washing machine as a control system:
1) Sensors
• Sensors that detect conditions such as water level and temperature sensors.
2) Actuators
• The motor that spin the tub
3) Plant
• The machine body that contains the inner drum to be loaded with clothes and water
4) Controller
• Embedded controller (microprocessor/microcontroller based) on an integrated circuit
• It tells the washing machine what to do, based on the selections you make, such as the
wash cycle and water temperature.
The electric water valve
The Plant
The Controller
Mathematical Representation of a Control System
(System Modelling)
The control System can be mathematically represented (or modelled) by one of the
following forms:
➢ State-space Representation
Transfer Function (T.F)
The T.F is the relation between the 𝑂/𝑃 in 𝑠 − 𝑑𝑜𝑚𝑎𝑖𝑛 to the 𝐼/𝑃 in 𝑠 − 𝑑𝑜𝑚𝑎𝑖𝑛.
𝑂/𝑃(𝑠)
𝑇. 𝐹 =
𝐼/𝑃(𝑠)
𝑰/𝑷(𝒔) 𝑶/𝑷(𝒔)
T.F
𝑌(𝑠)
𝑹(𝒔) 𝒀(𝒔) 𝑇. 𝐹 = 𝐺 𝑠 =
𝑮(𝒔) 𝑅(𝑠)
𝑌(𝑠) = 𝑅(𝑠) 𝐺(𝑠)
Transfer Function (T.F)
➢ Poles: the values of 𝑠 that make the denominator equal zero.
Example:
𝑠 + 2 (𝑠 − 1)
𝑇. 𝐹 =
𝑠 𝑠 + 3 (𝑠 + 4)
➢ Poles: the system has three poles at 𝑠 = 0, −3, −4
➢ Obtain the DEs. Of the system in terms of input and output of the system
➢ Take LaPlace transform (ℒ) for these DEs. considering zero initial conditions.
Note that:
ሶ
ℒ 𝑦(𝑡) = 𝑠 𝑌(𝑠)
ሷ = 𝑠 2 𝑌(𝑠)
ℒ 𝑦(𝑡)
ሸ = 𝑠 3 𝑌(𝑠)
ℒ 𝑦(𝑡)
.
.
𝑛
ℒ 𝑦 (𝑡) = 𝑠 𝑛 𝑌(𝑠)
Example 1:
𝑉𝑂 (𝑠)
➢ Find the transfer funtion , for the following electrical system.
𝑉𝐼 (𝑠)
Solution:
𝑑𝑖 𝑡
(1) using K.V.L ⇒ 𝑣𝑖 (𝑡) = 𝑅𝑖(𝑡) +𝐿 + 𝑣𝑜 (𝑡)
𝑑𝑡
𝑑𝑣𝑜 (𝑡)
(2) 𝑖(𝑡) = 𝐶
𝑑𝑡
Substituting from 2) in 1):
𝑉𝑜 𝑠 1
𝑇. 𝐹 = =
𝑉𝐼 𝑠 𝐿𝐶𝑠 2 + 𝑅𝐶𝑠 + 1
1
𝑉𝑜 𝑠 𝐿𝐶
∴ 𝑇. 𝐹 = =
𝑉𝐼 𝑠 2 𝑅 1
𝑠 + 𝑠+
𝐿 𝐿𝐶
𝑉𝐼 𝑠 1 𝑉𝑜 𝑠
𝐿𝐶
2 𝑅 1
𝑠 + 𝑠+
𝐿 𝐿𝐶
Another Solution:
Time-domain 𝒔 −domain
𝑅 𝑅
𝐿 𝐿s Circuit in time-domain
𝐶 1
𝐶𝑠 𝑰(𝒔) 𝑹 𝑳𝒔
𝑣𝑖 𝑡
𝑉𝐼 𝑠
𝑣𝑜 (𝑡)
𝑉𝑂 (𝑠) 𝟏
𝑖(𝑡) 𝑽𝑰 (𝒔) 𝑽𝑶 (𝒔) 𝑪𝒔
𝐼(𝑠)
Circuit in 𝒔-domain
➢ When we transform the circuit to s-domain, we can then deal with L & C like resistances.
𝑰(𝒔) 𝑹 𝑳𝒔
𝟏
𝑽𝑰 (𝒔) 𝑽𝑶 (𝒔) 𝑪𝒔
1
(2) 𝑉𝑜 (𝑠) = 𝐼 𝑠 ⇒ 𝐼 𝑠 = 𝐶𝑠 𝑉𝑜 (𝑠)
𝐶𝑠
𝑉𝑜 𝑠 1
Substituting from 2) in 1): 𝑇. 𝐹 = =
𝑉𝐼 𝑠 𝐿𝐶𝑠 2 + 𝑅𝐶𝑠 + 1
𝑉𝐼 𝑠 = 𝑅𝐶𝑠 𝑉𝑜 𝑠 + 𝐿𝐶𝑠 2 𝑉𝑜 𝑠 + 𝑉𝑜 (𝑠)
1
= (𝑅𝐶𝑠 + 𝐿𝐶𝑠 2 + 1) 𝑉𝑜 (𝑠) 𝑉𝑜 𝑠 𝐿𝐶
∴ 𝑇. 𝐹 = =
= (𝐿𝐶𝑠 2 + 𝑅𝐶𝑠 + 1) 𝑉𝑜 (𝑠) 𝑉𝐼 𝑠 𝑅 1
𝑠2 + 𝑠 +
𝐿 𝐿𝐶
Example 2:
𝑉𝑂 (𝑠) 𝐼𝑂 (𝑠)
➢ Find the transfer funtion and , for the following electrical system.
𝑉𝐼 (𝑠) 𝑉𝐼 (𝑠)
R R
+ +
𝑖𝑜 (𝑡)
𝑣𝑖 𝑡
C C 𝑣𝑜 (𝑡)
ـــ ـــ
ـــ ـــ
R R
+ +
)𝑠( 𝑜𝐼
1 1
𝑠 𝐼𝑉 )𝑠( 𝑂𝑉
𝑠𝐶 𝑠𝐶
ـــ ـــ
1
2
R R
+ +
)𝑠(𝐼 )𝑠( 𝑜𝐼
1 1
𝑠 𝐼𝑉 )𝑠( 𝑂𝑉
𝑠𝐶 𝑠𝐶
ـــ ـــ
Remember 𝒇 𝒕 𝓛 𝑭(𝒔)
𝛿(𝑡) 1
1
𝑢(𝑡)
𝑠
1
𝑡
𝑠2
𝑛!
𝑡𝑛
𝑠 𝑛+1
1
𝑒 ±𝑎𝑡
𝑠∓𝑎
𝜔
sin(𝜔𝑡)
𝑠2 + 𝜔2
𝑠
cos(𝜔𝑡)
𝑠2 + 𝜔2
𝜔
𝑒 ±𝑎𝑡 sin(𝜔𝑡)
(𝑠 ∓ 𝑎)2 +𝜔 2
𝑠∓𝑎
𝑒 ±𝑎𝑡 cos(𝜔𝑡)
(𝑠 ∓ 𝑎)2 +𝜔 2