SlideShare uma empresa Scribd logo
1 de 32
Baixar para ler offline
EL2450 Hybrid and Embedded Control
Spring 2022
Dimos Dimarogonas
http://people.kth.se/~dimos/
Decision and Control Systems
School of Electrical Engineering and Computer Science
KTH Royal Institute of Technology
Lecture 1 1 Spring 2022
EL2450 Hybrid and Embedded Control
• Disposition
7.5 credits, 28h lectures, 28h exercises, 3 homework
• Instructors
Dimos Dimarogonas, lecturer, dimos@kth.se
Xiao Tan, teaching assistant, xiaotan@kth.se
Fei Chen, teaching assistant, fchen@kth.se
Lecture 1 2 Spring 2022
Course goal
Participants should gain insight into computer implementation of
control algorithms, and realize the need to integrate control and
computer engineering in the design of networked embedded control
systems
Lecture 1 3 Spring 2022
Milestones
After the course, you should be able to
• Analyze, design and implement sampled-data control systems
• Characterize possibilities and limitations of real-time operating
systems through mathematical models
• Appreciate flexibilities and compensate for uncertainties in
networked control systems
• Apply hybrid systems modeling and analysis techniques to
embedded systems
Lecture 1 4 Spring 2022
EL2450 Hybrid and Embedded Control
Lecture 1: Introduction
• Practical Information
• What is Hybrid and Embedded?
• Motivating example
• Course outline
• Review of sampled signals
Lecture 1 5 Spring 2022
Course Information
• All info available at
https://canvas.kth.se/courses/31542
Lecture 1 6 Spring 2022
Material
• Reading Material: Book chapters and papers, reading per
lecture found at course homepage
• Lecture notes: Available online after each lecture
• Exercises: Class room and home exercises
• Homework: 2 computer and one laboratory exercises
• Software: Matlab etc (see homepage)
Homework need to be submitted on time (no exceptions)
Lecture 1 7 Spring 2022
What is an Embedded System?
Computer system with the computer embedded in the
application/physical process
Contrast with general-purpose and desk-top computers
Lecture 1 8 Spring 2022
Example: Design of VDC System
Vehicle dynamics control1 (VDC) systems assist car driver in
oversteering, under-steering and roll-over situations
System design flow
1. Product specification: control objectives
2. Architecture definition: control structure, communication
3. Software development: control algorithms, filters
4. Physical implementation
1
Also known as electronic stability program, dynamic stability control, or
active yaw control.
Lecture 1 9 Spring 2022
VDC Over-Steering
1. Friction limits reached for rear wheels
2. Car starts to skid, i.e., yaw rate (girvinkel) and side slip angle
deviate from driver’s intended
3. VDC detects emerging skidding and computes compensating
torque
4. Applies braking force to outer front wheel
Lecture 1 10 Spring 2022
Lecture 1 11 Spring 2022
VDC Control Architecture
VDC is a cascade control structure with three controllers:
Driver
Yaw/slip
controller
Brake
controller
Wheel
dynamics
Engine
controller
Engine
dynamics
Vehicle
dynamics
Disturbances
Disturbances
Lecture 1 12 Spring 2022
VDC Communication Architecture
• VDC is a networked embedded control system
• Utilizes the Controller Area Network (CAN) bus
• CAN is a communication bus that connects sensor, actuator
and controller nodes
• A modern car has several such electronic control units
Lecture 1 13 Spring 2022
Scania Truck CAN
A Scania truck has three CAN buses
Lecture 1 14 Spring 2022
Characteristics of Embedded Systems
• Computational systems (but not a computer)
• Integrated with physical world via sensors and actuators
• Reactive (at the speed of the environment)
• Heterogeneous (mixed hw/sw architectures)
• Networked (share data and resources)
Lecture 1 15 Spring 2022
Relevance of Embedded Systems
• Dominates computer market completely (≈ 98%)
• Increasing interest in multi-disciplinary research fields
Examples:
• Transportation: modern car has several computers and networks
• Robotics: service robots, mobile manipulators
• Manufacturing and process industry
• Power generation and distribution
Lecture 1 16 Spring 2022
What is a Hybrid System?
• A hybrid system is a
mathematical model of an
embedded system
• Dynamical system with
interacting time-driven and
event-driven dynamics
Continuous system
Discrete system
Lecture 1 17 Spring 2022
The Main Thread of the Course
Integrated design of computer-controlled systems
1. Single-task
(time-triggered)
Plant
CPU
2. Multi-task
(event-triggered)
Plant
CPU
T1 T2 T3
3. Hybrid
(networked)
C1 C2 C3
P4
P3
P2
P1
Lecture 1 18 Spring 2022
Course Outline
• Introduction: course outline, motivating examples, review of
sampled signals [L1]
• Time-triggered control: models, analysis, implementation
[L2-L5]
• Event-triggered control: real-time operating systems,
models of computations and software, scheduling [L6-L9]
• Hybrid control: modeling time-triggered and event-triggered
systems, control and verification of hybrid systems [L10-L13]
• Summary [L14]
Lecture 1 19 Spring 2022
Computer-Controlled System
.
Hold
DA Computer AD
Sample
.
. .
. .
.
Process
..
. ...
u(t)
u(t)
uk
uk ūk
y(t)
y(t)
yk
yk
ȳk
t
t
t
t
Signals in the loop have different characteristics
Lecture 1 20 Spring 2022
Signals
Continuous-valued and continuous-time signals:
• u(t) ∈ R, t ∈ [0, ∞)
• y(t) ∈ R, t ∈ [0, ∞)
Continuous-valued and discrete-time signals:
• uk ∈ R, k = 0, 1, . . .
• yk ∈ R, k = 0, 1, . . .
Discrete-valued and discrete-time signals:
• ūk ∈ {ū1, . . . , ūN} ⊂ Q, k = 0, 1, . . .
• ȳk ∈ {ȳ1, . . . , ȳN} ⊂ Q, k = 0, 1, . . .
Lecture 1 21 Spring 2022
Sampling
Uniform sampling with sampling period h > 0 generates
fk = f (kh), k = 0, 1, . . .
fk
f (t)
h
Sampler
f (t) fk
h
Lecture 1 22 Spring 2022
Zero-Order Hold
ZOH holds the input constant over intervals h:
f (t) = fk, t ∈ [kh, kh + h)
f (t)
fk
h
ZOH
circuit interpretation:
f (t)
fk
h
“Zero”: interpolation by polynomial of order zero.
Exist also first-order and higher-order holds
Lecture 1 23 Spring 2022
Fourier Transforms
F(ω) is Fourier transform of continuous-time signal f (t):
F(ω) =
Z ∞
−∞
e−iωt
f (t)dt, f (t) =
1
2π
Z ∞
−∞
eiωt
F(ω)dω
Fs(ω) is Fourier transform of discrete-time signal fk = f (kh):
Fs(ω) =
∞
X
k=−∞
fke−iωk
, fk =
1
2π
Z π
−π
eiωk
Fs(ω)dω
Lecture 1 24 Spring 2022
Shannon’s Sampling Theorem
A continuous-time signal f (t) with Fourier transform
F(ω) = 0, ω 6∈ (−ω0, ω0)
is uniquely reconstructed by its samples fk = f (kh),
if sampling frequency ωs = 2π/h is larger than 2ω0.
Then, f (t) can be reconstructed from fk as
f (t) =
∞
X
k=−∞
fk sinc
ωs(t − kh)
2
Note: Shannon reconstruction is not casual, ZOH practical
alternative
Lecture 1 25 Spring 2022
Example: Sinusoid
Reconstruction possible if sampled at least twice per period:
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
−1
−0.8
−0.6
−0.4
−0.2
0
0.2
0.4
0.6
0.8
1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
−1
−0.8
−0.6
−0.4
−0.2
0
0.2
0.4
0.6
0.8
1
Lecture 1 26 Spring 2022
Nyquist Frequency
ωN = ωs/2 is called the Nyquist frequency
Shannon’s Sampling Theorem:
If f (t) has no component above ωN, then f (t) is uniquely
determined by its samples fk
What happens when ωs < 2ω0? (equiv. ωN < ω0)
High frequencies of f (t) are interpreted as low frequencies
when not sampled sufficiently often
This is called aliasing or frequency folding
Lecture 1 27 Spring 2022
Aliasing
Components above ωN in f (t) cannot be distinguished in fk
Fs(ω) =
1
h
∞
X
k=−∞
F(ω + kωs)
Frequencies kωs ± ω1 > ωN of
f (t) are mapped into lower fre-
quencies 0 ≤ ω1 < ωN in the
sampled signal.
0 ≤ ω1 < ωN is called alias of
kωs ± ω1
Example:
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
−1
−0.8
−0.6
−0.4
−0.2
0
0.2
0.4
0.6
0.8
1
Lecture 1 28 Spring 2022
Aliasing: Frequency domain visualization
F(ω) Fs (ω)
ωN
ωN −ωN
−ωN 2ωN
−2ωN
The original signal can be reconstructed from Fs(ω) in the first
case with a low pass filter with appropriate cut-off frequency, since
F(ω) does not contain frequencies over ωN. This is in contrast to
the second figure.
Lecture 1 29 Spring 2022
Discrete-Time Systems
We need tools to analyze discrete-time system uk → yk:
Process
Sample
AD
Computer
DA
Hold
u(t)
uk
y(t)
yk
Lecture 1 30 Spring 2022
Discrete-Time Models
Many results similar to continuous-time systems
• Input–output models: yk+1 + ayk = buk
• State-space model: xk+1 = axk + buk, yk = xk
• z-transform: Y (z) =
P∞
k=0 ykz−k
• (Pulse-)Transfer function H(z) with Y (z) = H(z)U(z)
Please, revisit the Signals & Systems Course (or similar)
Lecture 1 31 Spring 2022
Next Lecture
Models of sampled systems
• Sampling of continuous-time systems
• State-space and input–output models
• Poles and zeros
Lecture 1 32 Spring 2022

Mais conteúdo relacionado

Semelhante a lec01_VT22.pdf

ENG3104 Engineering Simulations and Computations Semester 2, 2.docx
ENG3104 Engineering Simulations and Computations Semester 2, 2.docxENG3104 Engineering Simulations and Computations Semester 2, 2.docx
ENG3104 Engineering Simulations and Computations Semester 2, 2.docx
YASHU40
 
1999_MODELING_ENVIRONMENT_HDT
1999_MODELING_ENVIRONMENT_HDT1999_MODELING_ENVIRONMENT_HDT
1999_MODELING_ENVIRONMENT_HDT
Piero Belforte
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02
Vivek chan
 

Semelhante a lec01_VT22.pdf (20)

ENG3104 Engineering Simulations and Computations Semester 2, 2.docx
ENG3104 Engineering Simulations and Computations Semester 2, 2.docxENG3104 Engineering Simulations and Computations Semester 2, 2.docx
ENG3104 Engineering Simulations and Computations Semester 2, 2.docx
 
1999_MODELING_ENVIRONMENT_HDT
1999_MODELING_ENVIRONMENT_HDT1999_MODELING_ENVIRONMENT_HDT
1999_MODELING_ENVIRONMENT_HDT
 
Eee3420 lecture01 rev2011
Eee3420 lecture01 rev2011Eee3420 lecture01 rev2011
Eee3420 lecture01 rev2011
 
Integrated fuzzy logic controller for a Brushless DC Servomotor system
Integrated fuzzylogic controller for a Brushless DC Servomotor systemIntegrated fuzzylogic controller for a Brushless DC Servomotor system
Integrated fuzzy logic controller for a Brushless DC Servomotor system
 
Control of computing systems
Control of computing systemsControl of computing systems
Control of computing systems
 
ESDL Research Overview
ESDL Research OverviewESDL Research Overview
ESDL Research Overview
 
Mathematics 08-00326
Mathematics 08-00326Mathematics 08-00326
Mathematics 08-00326
 
Design and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilogDesign and implementation of 32 bit alu using verilog
Design and implementation of 32 bit alu using verilog
 
Pid controller
Pid controllerPid controller
Pid controller
 
CapellaDays2022 | ThermoFisher - ESI TNO | A method for quantitative evaluati...
CapellaDays2022 | ThermoFisher - ESI TNO | A method for quantitative evaluati...CapellaDays2022 | ThermoFisher - ESI TNO | A method for quantitative evaluati...
CapellaDays2022 | ThermoFisher - ESI TNO | A method for quantitative evaluati...
 
vorlage
vorlagevorlage
vorlage
 
02 intel v_tune_session_02
02 intel v_tune_session_0202 intel v_tune_session_02
02 intel v_tune_session_02
 
Lecture _1_ Digital Control Systems.pptx
Lecture _1_ Digital Control Systems.pptxLecture _1_ Digital Control Systems.pptx
Lecture _1_ Digital Control Systems.pptx
 
Multi-Objective design optimization of a Superconducting Fault Current Limiter
Multi-Objective design optimization of a Superconducting Fault Current LimiterMulti-Objective design optimization of a Superconducting Fault Current Limiter
Multi-Objective design optimization of a Superconducting Fault Current Limiter
 
4 ijaems nov-2015-4-fsk demodulator- case study of pll application
4 ijaems nov-2015-4-fsk demodulator- case study of pll application4 ijaems nov-2015-4-fsk demodulator- case study of pll application
4 ijaems nov-2015-4-fsk demodulator- case study of pll application
 
Short.course.introduction.to.vhdl
Short.course.introduction.to.vhdlShort.course.introduction.to.vhdl
Short.course.introduction.to.vhdl
 
Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners Short.course.introduction.to.vhdl for beginners
Short.course.introduction.to.vhdl for beginners
 
power system operation and control unit commitment .pdf
power system operation and control unit commitment .pdfpower system operation and control unit commitment .pdf
power system operation and control unit commitment .pdf
 
Control system introduction for different application
Control system introduction for different applicationControl system introduction for different application
Control system introduction for different application
 
KNL3353_Control_System_Engineering_Lectu.ppt
KNL3353_Control_System_Engineering_Lectu.pptKNL3353_Control_System_Engineering_Lectu.ppt
KNL3353_Control_System_Engineering_Lectu.ppt
 

Último

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 

Último (20)

GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLEGEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
GEAR TRAIN- BASIC CONCEPTS AND WORKING PRINCIPLE
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 

lec01_VT22.pdf

  • 1. EL2450 Hybrid and Embedded Control Spring 2022 Dimos Dimarogonas http://people.kth.se/~dimos/ Decision and Control Systems School of Electrical Engineering and Computer Science KTH Royal Institute of Technology Lecture 1 1 Spring 2022
  • 2. EL2450 Hybrid and Embedded Control • Disposition 7.5 credits, 28h lectures, 28h exercises, 3 homework • Instructors Dimos Dimarogonas, lecturer, dimos@kth.se Xiao Tan, teaching assistant, xiaotan@kth.se Fei Chen, teaching assistant, fchen@kth.se Lecture 1 2 Spring 2022
  • 3. Course goal Participants should gain insight into computer implementation of control algorithms, and realize the need to integrate control and computer engineering in the design of networked embedded control systems Lecture 1 3 Spring 2022
  • 4. Milestones After the course, you should be able to • Analyze, design and implement sampled-data control systems • Characterize possibilities and limitations of real-time operating systems through mathematical models • Appreciate flexibilities and compensate for uncertainties in networked control systems • Apply hybrid systems modeling and analysis techniques to embedded systems Lecture 1 4 Spring 2022
  • 5. EL2450 Hybrid and Embedded Control Lecture 1: Introduction • Practical Information • What is Hybrid and Embedded? • Motivating example • Course outline • Review of sampled signals Lecture 1 5 Spring 2022
  • 6. Course Information • All info available at https://canvas.kth.se/courses/31542 Lecture 1 6 Spring 2022
  • 7. Material • Reading Material: Book chapters and papers, reading per lecture found at course homepage • Lecture notes: Available online after each lecture • Exercises: Class room and home exercises • Homework: 2 computer and one laboratory exercises • Software: Matlab etc (see homepage) Homework need to be submitted on time (no exceptions) Lecture 1 7 Spring 2022
  • 8. What is an Embedded System? Computer system with the computer embedded in the application/physical process Contrast with general-purpose and desk-top computers Lecture 1 8 Spring 2022
  • 9. Example: Design of VDC System Vehicle dynamics control1 (VDC) systems assist car driver in oversteering, under-steering and roll-over situations System design flow 1. Product specification: control objectives 2. Architecture definition: control structure, communication 3. Software development: control algorithms, filters 4. Physical implementation 1 Also known as electronic stability program, dynamic stability control, or active yaw control. Lecture 1 9 Spring 2022
  • 10. VDC Over-Steering 1. Friction limits reached for rear wheels 2. Car starts to skid, i.e., yaw rate (girvinkel) and side slip angle deviate from driver’s intended 3. VDC detects emerging skidding and computes compensating torque 4. Applies braking force to outer front wheel Lecture 1 10 Spring 2022
  • 11. Lecture 1 11 Spring 2022
  • 12. VDC Control Architecture VDC is a cascade control structure with three controllers: Driver Yaw/slip controller Brake controller Wheel dynamics Engine controller Engine dynamics Vehicle dynamics Disturbances Disturbances Lecture 1 12 Spring 2022
  • 13. VDC Communication Architecture • VDC is a networked embedded control system • Utilizes the Controller Area Network (CAN) bus • CAN is a communication bus that connects sensor, actuator and controller nodes • A modern car has several such electronic control units Lecture 1 13 Spring 2022
  • 14. Scania Truck CAN A Scania truck has three CAN buses Lecture 1 14 Spring 2022
  • 15. Characteristics of Embedded Systems • Computational systems (but not a computer) • Integrated with physical world via sensors and actuators • Reactive (at the speed of the environment) • Heterogeneous (mixed hw/sw architectures) • Networked (share data and resources) Lecture 1 15 Spring 2022
  • 16. Relevance of Embedded Systems • Dominates computer market completely (≈ 98%) • Increasing interest in multi-disciplinary research fields Examples: • Transportation: modern car has several computers and networks • Robotics: service robots, mobile manipulators • Manufacturing and process industry • Power generation and distribution Lecture 1 16 Spring 2022
  • 17. What is a Hybrid System? • A hybrid system is a mathematical model of an embedded system • Dynamical system with interacting time-driven and event-driven dynamics Continuous system Discrete system Lecture 1 17 Spring 2022
  • 18. The Main Thread of the Course Integrated design of computer-controlled systems 1. Single-task (time-triggered) Plant CPU 2. Multi-task (event-triggered) Plant CPU T1 T2 T3 3. Hybrid (networked) C1 C2 C3 P4 P3 P2 P1 Lecture 1 18 Spring 2022
  • 19. Course Outline • Introduction: course outline, motivating examples, review of sampled signals [L1] • Time-triggered control: models, analysis, implementation [L2-L5] • Event-triggered control: real-time operating systems, models of computations and software, scheduling [L6-L9] • Hybrid control: modeling time-triggered and event-triggered systems, control and verification of hybrid systems [L10-L13] • Summary [L14] Lecture 1 19 Spring 2022
  • 20. Computer-Controlled System . Hold DA Computer AD Sample . . . . . . Process .. . ... u(t) u(t) uk uk ūk y(t) y(t) yk yk ȳk t t t t Signals in the loop have different characteristics Lecture 1 20 Spring 2022
  • 21. Signals Continuous-valued and continuous-time signals: • u(t) ∈ R, t ∈ [0, ∞) • y(t) ∈ R, t ∈ [0, ∞) Continuous-valued and discrete-time signals: • uk ∈ R, k = 0, 1, . . . • yk ∈ R, k = 0, 1, . . . Discrete-valued and discrete-time signals: • ūk ∈ {ū1, . . . , ūN} ⊂ Q, k = 0, 1, . . . • ȳk ∈ {ȳ1, . . . , ȳN} ⊂ Q, k = 0, 1, . . . Lecture 1 21 Spring 2022
  • 22. Sampling Uniform sampling with sampling period h > 0 generates fk = f (kh), k = 0, 1, . . . fk f (t) h Sampler f (t) fk h Lecture 1 22 Spring 2022
  • 23. Zero-Order Hold ZOH holds the input constant over intervals h: f (t) = fk, t ∈ [kh, kh + h) f (t) fk h ZOH circuit interpretation: f (t) fk h “Zero”: interpolation by polynomial of order zero. Exist also first-order and higher-order holds Lecture 1 23 Spring 2022
  • 24. Fourier Transforms F(ω) is Fourier transform of continuous-time signal f (t): F(ω) = Z ∞ −∞ e−iωt f (t)dt, f (t) = 1 2π Z ∞ −∞ eiωt F(ω)dω Fs(ω) is Fourier transform of discrete-time signal fk = f (kh): Fs(ω) = ∞ X k=−∞ fke−iωk , fk = 1 2π Z π −π eiωk Fs(ω)dω Lecture 1 24 Spring 2022
  • 25. Shannon’s Sampling Theorem A continuous-time signal f (t) with Fourier transform F(ω) = 0, ω 6∈ (−ω0, ω0) is uniquely reconstructed by its samples fk = f (kh), if sampling frequency ωs = 2π/h is larger than 2ω0. Then, f (t) can be reconstructed from fk as f (t) = ∞ X k=−∞ fk sinc ωs(t − kh) 2 Note: Shannon reconstruction is not casual, ZOH practical alternative Lecture 1 25 Spring 2022
  • 26. Example: Sinusoid Reconstruction possible if sampled at least twice per period: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1 Lecture 1 26 Spring 2022
  • 27. Nyquist Frequency ωN = ωs/2 is called the Nyquist frequency Shannon’s Sampling Theorem: If f (t) has no component above ωN, then f (t) is uniquely determined by its samples fk What happens when ωs < 2ω0? (equiv. ωN < ω0) High frequencies of f (t) are interpreted as low frequencies when not sampled sufficiently often This is called aliasing or frequency folding Lecture 1 27 Spring 2022
  • 28. Aliasing Components above ωN in f (t) cannot be distinguished in fk Fs(ω) = 1 h ∞ X k=−∞ F(ω + kωs) Frequencies kωs ± ω1 > ωN of f (t) are mapped into lower fre- quencies 0 ≤ ω1 < ωN in the sampled signal. 0 ≤ ω1 < ωN is called alias of kωs ± ω1 Example: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 −1 −0.8 −0.6 −0.4 −0.2 0 0.2 0.4 0.6 0.8 1 Lecture 1 28 Spring 2022
  • 29. Aliasing: Frequency domain visualization F(ω) Fs (ω) ωN ωN −ωN −ωN 2ωN −2ωN The original signal can be reconstructed from Fs(ω) in the first case with a low pass filter with appropriate cut-off frequency, since F(ω) does not contain frequencies over ωN. This is in contrast to the second figure. Lecture 1 29 Spring 2022
  • 30. Discrete-Time Systems We need tools to analyze discrete-time system uk → yk: Process Sample AD Computer DA Hold u(t) uk y(t) yk Lecture 1 30 Spring 2022
  • 31. Discrete-Time Models Many results similar to continuous-time systems • Input–output models: yk+1 + ayk = buk • State-space model: xk+1 = axk + buk, yk = xk • z-transform: Y (z) = P∞ k=0 ykz−k • (Pulse-)Transfer function H(z) with Y (z) = H(z)U(z) Please, revisit the Signals & Systems Course (or similar) Lecture 1 31 Spring 2022
  • 32. Next Lecture Models of sampled systems • Sampling of continuous-time systems • State-space and input–output models • Poles and zeros Lecture 1 32 Spring 2022