Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ......

40
Intro. Computer Control Systems: F1 Introduction Dave Zachariah Dept. Information Technology, Div. Systems and Control 1 / 18 [email protected]

Transcript of Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ......

Page 1: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Intro. Computer Control Systems:F1

Introduction

Dave Zachariah

Dept. Information Technology, Div. Systems and Control

1 / 18 [email protected]

Page 2: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

What is control theory?

The study of dynamical systems and their control.

System = Process = An object whose properties we wish tostudy/control.

Systemoutput(s)input(s)

u y

I The output y is a signal that we can measure and/or wish tocontrol.

I Using the input u we can affect the system and its output.

2 / 18 [email protected]

Page 3: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

What is control theory?

The study of dynamical systems and their control.

System = Process = An object whose properties we wish tostudy/control.

Systemoutput(s)input(s)

u y

I The output y is a signal that we can measure and/or wish tocontrol.

I Using the input u we can affect the system and its output.

2 / 18 [email protected]

Page 4: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Dynamical systems

I Static systems: y(t) = f (u(t)), depends on u:s current value!

I Dynamical systems: y(t) may depend on u(τ) for τ ≤ t.

0 10 20 30 40 50 6050

55

60

65

70

75

80

85

90

95

time (s)

thro

ttle

(%

), s

pe

ed

(km

/h)

y(t) = velocity of car

u(t) = throttle

Consequence: Dynamical systems have ‘memory’. Current inputaffects the future output!

3 / 18 [email protected]

Page 5: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Dynamical systems

I Static systems: y(t) = f (u(t)), depends on u:s current value!

I Dynamical systems: y(t) may depend on u(τ) for τ ≤ t.

0 10 20 30 40 50 6050

55

60

65

70

75

80

85

90

95

time (s)

thro

ttle

(%

), s

pe

ed

(km

/h)

y(t) = velocity of car

u(t) = throttle

Consequence: Dynamical systems have ‘memory’. Current inputaffects the future output!

3 / 18 [email protected]

Page 7: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Application examples

Figure : Biomedicine and molecular interactions

5 / 18 [email protected]

Page 8: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Application examples

Figure : Autonomous driving and emission reduction

5 / 18 [email protected]

Page 9: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Application examples

Figure : Aircraft control och stabilization

5 / 18 [email protected]

Page 10: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Application examples

Figure : Robotics and autonomous systems

5 / 18 [email protected]

Page 11: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Application examples

Figure : Industrial processes and power systems

5 / 18 [email protected]

Page 12: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Application examples

Figure : Communication and data networks

5 / 18 [email protected]

Page 13: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Computer control in a nutshell

6 / 18 [email protected]

Page 14: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Computer control in a nutshell

y

u+ −

Q: Which input u to the motor such that the output y staysaround desired reference signal r = 0◦?

That input u should be computed by a controller!

Design of the controller is the practical goal of control theory

7 / 18 [email protected]

Page 15: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Computer control in a nutshell

y

u+ −

Q: Which input u to the motor such that the output y staysaround desired reference signal r = 0◦?

That input u should be computed by a controller!

Design of the controller is the practical goal of control theory

7 / 18 [email protected]

Page 16: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Computer control in a nutshell

y

u+ −

Q: Which input u to the motor such that the output y staysaround desired reference signal r = 0◦?

That input u should be computed by a controller!

Design of the controller is the practical goal of control theory

7 / 18 [email protected]

Page 17: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Computer control in a nutshellExample

Lab exercise in Automatic Control II

8 / 18 [email protected]

Page 18: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Control without feedback

Determine u(t) such that: y(t) should follow a reference signalr(t) closely, despite presence of disturbance v(t).

Open loop: u(t) predetermined by reference r(t).

y(t)u(t)System

v(t)

Controllerr(t)

Challenges:

I Requires accurate knowledge about the system.

I Does not take into account unknown disturbances.

9 / 18 [email protected]

Page 19: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Control without feedback

Determine u(t) such that: y(t) should follow a reference signalr(t) closely, despite presence of disturbance v(t).

Open loop: u(t) predetermined by reference r(t).

y(t)u(t)System

v(t)

Controllerr(t)

Challenges:

I Requires accurate knowledge about the system.

I Does not take into account unknown disturbances.9 / 18 [email protected]

Page 20: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Control using feedback

Feedback: u(t) also determined by measuring y(t).

y(t)u(t)System

v(t)

Controllerr(t)

Advantages:

I Requires only an approximative model of the system.

I Can mitigate unknown disturbances.

Challenges:

I Feedback controller may create instability if poorly designed.

10 / 18 [email protected]

Page 21: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Control using feedback

Feedback: u(t) also determined by measuring y(t).

y(t)u(t)System

v(t)

Controllerr(t)

Advantages:

I Requires only an approximative model of the system.

I Can mitigate unknown disturbances.

Challenges:

I Feedback controller may create instability if poorly designed.

10 / 18 [email protected]

Page 22: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Control using feedback

Feedback: u(t) also determined by measuring y(t).

y(t)u(t)System

v(t)

Controllerr(t)

Advantages:

I Requires only an approximative model of the system.

I Can mitigate unknown disturbances.

Challenges:

I Feedback controller may create instability if poorly designed.10 / 18 [email protected]

Page 23: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Typical design requirements

I Main requirement: The system under control should be stable.

I When reference signal changes, the output should quicklytrack it with minimal oscillations, using a reasonable input.

I If a disturbance occurs, the output should quickly return tothe reference signal.

The control problem: Design a controller such that thecontrolled system fullfills the desired requirements.

11 / 18 [email protected]

Page 24: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Typical design requirements

I Main requirement: The system under control should be stable.

I When reference signal changes, the output should quicklytrack it with minimal oscillations, using a reasonable input.

I If a disturbance occurs, the output should quickly return tothe reference signal.

The control problem: Design a controller such that thecontrolled system fullfills the desired requirements.

11 / 18 [email protected]

Page 25: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Typical design requirements

I Main requirement: The system under control should be stable.

I When reference signal changes, the output should quicklytrack it with minimal oscillations, using a reasonable input.

I If a disturbance occurs, the output should quickly return tothe reference signal.

The control problem: Design a controller such that thecontrolled system fullfills the desired requirements.

11 / 18 [email protected]

Page 26: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

About the course

12 / 18 [email protected]

Page 27: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

The courseContent

Book options:

I Reglerteknik — Grundlaggande teori, T. Glad & L. Ljung, 4thedition from 2006, Studentlitteratur.

I Feedback Control of Dynamic Systems, G.F. Franklin, J.D. Powell,A. Emami-Naeini, 7th edition, Prentice Hall.

Webpage: http://www.it.uu.se/edu/course/homepage/regsysintro/vt17Studentportalen will also be used.

Content:

I Analysis of linear dynamical systems and feedback

I Basic control principles

I PID controlI Forward- och cascade controlI State feedback control

I Discrete-time models and digital control

13 / 18 [email protected]

Page 28: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

The courseContent

Book options:

I Reglerteknik — Grundlaggande teori, T. Glad & L. Ljung, 4thedition from 2006, Studentlitteratur.

I Feedback Control of Dynamic Systems, G.F. Franklin, J.D. Powell,A. Emami-Naeini, 7th edition, Prentice Hall.

Webpage: http://www.it.uu.se/edu/course/homepage/regsysintro/vt17Studentportalen will also be used.

Content:

I Analysis of linear dynamical systems and feedback

I Basic control principles

I PID controlI Forward- och cascade controlI State feedback control

I Discrete-time models and digital control

13 / 18 [email protected]

Page 29: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

The courseExamination forms

Labs:

I 3×Computer Labs (recommended)

I 1×Process Lab (mandatory)

Exam: Evaluation of each problem solution is based on:

1. demonstrating understanding of the problem using principles of thecourse

2. provided a reasonable and reproducible solution

Hand-in (recommended): 2×hand-ins which help getting your handson early and yield bonus credits for the exam.

Secret to passing course

: Get hands dirty

I by taking notes

I through problem solving!

14 / 18 [email protected]

Page 30: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

The courseExamination forms

Labs:

I 3×Computer Labs (recommended)

I 1×Process Lab (mandatory)

Exam: Evaluation of each problem solution is based on:

1. demonstrating understanding of the problem using principles of thecourse

2. provided a reasonable and reproducible solution

Hand-in (recommended): 2×hand-ins which help getting your handson early and yield bonus credits for the exam.

Secret to passing course: Get hands dirty

I by taking notes

I through problem solving!

14 / 18 [email protected]

Page 31: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

System models

15 / 18 [email protected]

Page 32: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Mathematical models of systems

y(t)u(t)G

Figure : Graphical representation of system G with input and output.

Models are neither ‘true’ nor ‘false’, but rather more or less

I accurate

I useful

representations of underlying mechanisms with measureble effects.

16 / 18 [email protected]

Page 33: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Build intuition from simple systems

Ex. #1: Vehicle in motion

u

y

mFfr

Figure : Force u(t) och velocity y(t).

Physical principles: Newton’s law

F = my,

where F = u− Ffr = u− Cy.[Board: Linear differential equation]

17 / 18 [email protected]

Page 34: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Build intuition from simple systems

Ex. #2: Damper

y

u

Figure : Force u(t) och position y(t).

Physical principles: Newton’s law

F = my,

where F = u−Ky.[Board: Linear differential equation]

17 / 18 [email protected]

Page 35: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Build intuition from simple systems

Ex. #3: Inverted pendulum

y

umg

L

Figure : Torque u(t) och angle y(t).

Physical principles: Torque equation

(mL2/3)y = u+ (mgL/2) sin(y).

Using Taylor series around y = 0:sin(y) ≈ sin(0) + cos(0)(y − 0) = y

[Board: Linear differential equation]17 / 18 [email protected]

Page 36: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Linear system models

18 / 18 [email protected]

Page 37: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Linear system models

Linear time-invariant models are useful and sufficiently accurate inmany control applications

y(t)u(t)G

19 / 18 [email protected]

Page 38: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Linear system models

Linear time-invariant models are useful and sufficiently accurate inmany control applications

y(t)u(t)G

Differential equation is one possible description of input-outputrelation, i.e. G:

dn

dtny + · · ·+ an−1

d

dty + any = b0

dn

dtmu+ · · ·+ bm−1

d

dtu+ bmu

with initial conditions.

Often hard to interpret!

19 / 18 [email protected]

Page 39: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Linear system models

Linear time-invariant models are useful and sufficiently accurate inmany control applications

y(t)u(t)G

Different mathematical descriptions of the input-output relation,i.e. G:

1. Differential equations

2. Impulse response / weighting function

3. Transfer function / frequency response

4. State-space description

The latter descriptions are more manageable and practical!

19 / 18 [email protected]

Page 40: Intro. Computer Control Systems: F1 - Introduction · Computer Control Systems: F1 Introduction ... Whichinput uto the motor such that theoutput ystays ... 7th edition, Prentice Hall.

Linear system models

Linear time-invariant models are useful and sufficiently accurate inmany control applications

y(t)u(t)G

Revise basics:

1. Complex numbers

2. Linear ordinary differential equations

3. Laplace transform

4. Linearization using Taylor series expansion

5. Vector/matrix operations and eigenvalues

See Math Tutorial on course webpage!

19 / 18 [email protected]