automatic control (tsrt15): lecture 1 · automatic control (tsrt15): lecture 1 ... * all lecture...

39
Automatic Control (TSRT15): Lecture 1 Tianshi Chen* Division of Automatic Control Dept. of Electrical Engineering Email: [email protected] Phone: 13-282226 Office: B-house extrance 25-27 * All lecture notes in this course are revised on the ones used before. I sincerely appreciate Johan Löfberg for his permission to use them.

Upload: lenhu

Post on 18-May-2018

225 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

Automatic Control (TSRT15): Lecture 1

Tianshi Chen*Division of Automatic ControlDept. of Electrical EngineeringEmail: [email protected]: 13-282226Office: B-house extrance 25-27

* All lecture notes in this course are revised on the ones used before.

I sincerely appreciate Johan Löfberg for his permission to use them.

Page 2: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

2Course plan

Lecture notes will (hopefully) be posted some days in advance

12 lectures

12 exercise sessions

3 mandatory laboratory sessions (all materials on homepage)Lab 1: PID-control (preparation questions in the PM)Lab 2: Control of double-tanks (preparation takes time!)Lab 3: Control of inverted pendulum (computer lab)Lablists will be sent out on email and be posted on-line

Exam: Course book, tables and formula collection allowed. Separate notes and other sheets not allowedStudy notes in book are allowed

Page 3: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

3Outline

Automatic control in practice

Definition of basic principlesSignal, system, Control

Fundamental Principle of Control: Feedback

Linear Dynamic systems

Design of a cruise controllerOpen vs closed-loop control, P-control

Page 4: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

4Automatic control

Makes ”impossible” problems solvable

Often called the ”hidden technology”

Central for Swedish technology companies

Many interesting applications!

A lot of interesting math

Page 5: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

5Control examples

Mobile phones

Automatic control is used to control the power in radio signals between phone and base-station.

Page 6: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

6Control examples

Head-phones

Active noise cancellation in head-phones use automatic control to transmit counteracting sound in anti-phase.

Similar technique for sound and vibration damping in airplanes, cars, snowboards and buildings.

Page 7: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

7Control examples

Hard disks

The reading arm must be positioned at they right spot as fast as possible.

Without active control, the arm oscillates after movements, and prevents reading data until it has settled.

Page 8: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

8Control examples

Segway

One of the most obvious consumer products,and it does not work without a control system.

Page 9: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

9Control examples

Modern cars

Most acronyms hides a control system!

ABS (anti-lock braking system)ESC (electronic stability control)ACE (active cornering enhancement)TCS (traction control system)ACC (adaptive cruise control)ANC (active noise control)…

Page 10: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

10Control examples

Heavy trucks

The aim is to utilize an on-board database with road topography information in combination with a positioning system in order to calculate fuel-optimal velocity trajectories and gear shifting schemes.

Page 11: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

11Control examples

Modern fighters

Designed so that they are impossible to fly manually(to obtain better performance)

Requires a control system

If the control system has a design problem, it can go very wrong. This is what happened in the Gripencrashes in 89’ and 93’

Page 12: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

12Control examples

Kite-Powered Cargo Ship

Has been tested in practice over the Atlantic

Reduced fuel consumption by 20%

Kite position controlled for maximalpower

Page 13: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

13Control examples

Extremely large telescopes

We have reached the limit on mirror size

Large telescopes are built with many small mirrors whose position is continuously controlled to focus the image(called adaptive optics)

Page 14: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

14Control examples

Industrial robots

Same as the hard disk

A robot arm is weak, and oscillates after movements

Page 15: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

15Control examples

Automatic Anaesthesia

A control system replaces the nurse (still research)

The system controls the level of consciousness

Page 16: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

16Control examples

Interest rates and Inflation

The Swedish bank uses state interest rate to control inflation

Page 17: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

17Automatic control?

The ”thing” we control can be conceptually illustrated

u(t)

w(t)

y(t)Systemr(t)

Design the control u(t) so that the system (according to the outputy(t)) behaves as wanted (reference r(t)) despite disturbances w(t).

Here, u(t), y(t), r(t) and w(t) are functions of time and called signals.

Page 18: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

18Control examples

System u(t) y(t) w(t) r(t)

Car Throttle,break speed Slope, air resistance

Desired speed

Anaesthesia Drugs consciousness Drug tolerance, weight

Less than dead

Economy Interest Inflation Politics Inflation goal 2%

Magnetelevation

Magnet strength

Elevation Wind Desired elevation

Page 19: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

19Dynamical systems

Systems memory, current output depends on past inputs

Mathematically: System described by a differential equation

A description (often approximate) of a system is called a model

Opposite: Static system

Speed and position of a car (depends on past throttle)

Room temperature (depends on past heating and outside temperature)

Economics (depends on politics, investments past years)

Page 20: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

20Linear systems

u(t) y(t)System

Linear system means superposition holds

Page 21: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

21Linear systems

Linear ordinary differential equations fulfill this

We only work with systems described by linear ordinary differential equations

More (much more) about this next lecture

Page 22: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

22Fundamental principle of control: Feedback

A fundamental principle in control is feedback, here illustrated on a distillation column

1. Formulate a control goal (reference signal)We want a temperature of 80º

2. Measure current temperature (measurement signal)It is now 60º

3. Apply action (control using the control signal)Increase heating!

Feedback!

Page 23: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

23Fundamental principle of control: Feedback

Feedback system

u(t) y(t)System

w(t)

Controllerr(t)

Feedback!

Page 24: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

24Control examples

Feedback system

speedthrottle

Page 25: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

25Control examples

Feedback system

consciousnessDrugs

Page 26: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

26Control examples

Feedback system

interest inflationSystem2%

Page 27: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

27What we will learn?

In this course we ask

How do we describe the system to be controlled

How do we analyze the system to be controlled

How do we design a controller

How do we analyze the feedback system (what can go wrong)

Page 28: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

28Design of cruise controller

φ

u(t): Driving/breaking force [N]y(t): Velocity of car [m/s]φ : Road slope [rad]m: Car weight [kg]α: Aerodynamic coefficient [Ns/m], αy(t): Drag force [N]

Page 29: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

29Open loop control

Model: m = 1000kg, α = 200Ns/m, φ = 0

Newton

Open loop: Our goal is a reference speed r(t) = 25m/s for t ` 0.Assume y(0) = 0. We test the following control law

Solution:We reach the reference speed asymptotically

Page 30: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

30Open loop control

u(t) y(t)

mg sin(φ)

200r(t)=25

Page 31: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

31Open loop control

Non-nominal model:

Wind tunnel test wrong, in reality α = 150Ns/m

Under the assumption y(0) = 0, we use the same control law and obtain

The car achieves a too high speed

Cause: we have not feeded back the true velocity!

Page 32: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

32Open loop control

Page 33: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

33Closed-loop control

Feedback the velocity!

A reasonable strategy is to throttle more when too slow

This is called proportional control, P-control, and the constant K is the only design variable in the controller

The closed-loop system

Page 34: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

34Closed-loop control

u(t) y(t)

mg sin(φ)

Kr(t)=25

-1

e(t)

Page 35: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

35Closed-loop control

Page 36: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

36Closed-loop control

Page 37: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

37But what is a controller, really?

A controller is a computer in the car, measuring speed and desired speed, and sends command signals (desired torque) to the engine

program CruiseControl

repeatr = getReferenceMeasurementy = getSpeedMeasurementu = K*(r-y);sendCommandToEngine(u)

end

y

r

u

Page 38: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

38Summary of this lecture

Automatic control is everywhere

We use differential equation to create models of systems

Open-loop control very sensitive to model parameters and disturbances

Feedback can reduce sensitivity significantly

Feedback u(t) = K(r(t)-y(t)) is called P-control

We still haven’t achieved perfect control, better design is needed

Page 39: Automatic Control (TSRT15): Lecture 1 · Automatic Control (TSRT15): Lecture 1 ... * All lecture notes in this course are revised on the ... Automatic control is the theory about

39Summary of this lecture

Automatic control: “Making things behave as we want”.

Signal: Functions of time with information

System: An object driven by input signals, generating output signals

Model: A simplified description of reality. In this course, a mathematical description of the system we study

Dynamical systems: Systems where the output signal depends on past inputs

Feedback: Feed back information about the current state to the controller. Automatic control is the theory about feedback systems

Important concepts