proportional-derivative-integral (pid) control

16

Click here to load reader

Upload: guest9006ab

Post on 09-Jun-2015

10.620 views

Category:

Technology


3 download

DESCRIPTION

A simple, widely used control method. This presentation will provide an introduction to PID controllers, including demonstrations, and practise tuning a controller for a simple system.From the Un-Distinguished Lecture Series (http://ws.cs.ubc.ca/~udls/). The talk was given Mar. 30, 2007.

TRANSCRIPT

Page 1: Proportional-Derivative-Integral (PID) Control

Proportional-Integral-DerivativeController

Presented by: Sancho McCann

Page 2: Proportional-Derivative-Integral (PID) Control

Simple Control Loop

Control Plant Feedback

Page 3: Proportional-Derivative-Integral (PID) Control

Examples

CPU temp sensorCPU tempFan speed

Fan speedElectric motorVoltage

Distance from pathCarSteering direction

Thermostat tempRoom tempAir temp

Wheel speedAuto-engineThrottle

FeedbackPlantControl

Page 4: Proportional-Derivative-Integral (PID) Control

Speed control: lookup table

100% Throttle140 kph

50% Throttle80 kph

20% Throttle40 kph

6% Throttle20 kph

3% Throttle10 kph

Page 5: Proportional-Derivative-Integral (PID) Control

What to do?

Goal (set-point): 21 kph

How much should you change your throttle?

Page 6: Proportional-Derivative-Integral (PID) Control

What to do?

Set-point: 80 kph

How much should you change your throttle?

Page 7: Proportional-Derivative-Integral (PID) Control

Proportional Controller

• Far from set point? Change throttle more• Close to set point? Change throttle less

!

"control = (setpoint # currentState)•pGain

Page 8: Proportional-Derivative-Integral (PID) Control

Example

Page 9: Proportional-Derivative-Integral (PID) Control

Proportional-Derivative Control

• Approaching set point quickly? Ease offthrottle.

!

pTerm = (setPoint " currState) •pGain

dTerm = (prevState " currState) •dGain

#control = pTerm + dTerm

Page 10: Proportional-Derivative-Integral (PID) Control

Example

Page 11: Proportional-Derivative-Integral (PID) Control

Problem with Derivative Term

Enhances noise

Page 12: Proportional-Derivative-Integral (PID) Control

Integral Term

• Helps state average around the set point

• Accumulate historic error• Allow this integral to inform the control

decision

Page 13: Proportional-Derivative-Integral (PID) Control

Examples

Page 14: Proportional-Derivative-Integral (PID) Control

Extremes

• What if– P term is too low?– P term is too high?– D term is too low?– D term is too high?– I term is too low?– I term is too high?

Page 15: Proportional-Derivative-Integral (PID) Control

Tuning (one manual method)• Start with low pGain (< 1)• Set dGain ~ 100x pGain• Increase dGain until oscillation

– Halve until no oscillation reduced

• Increase pGain until oscillation– Halve that value

• Set iGain very low and increase until asmall overshoot is noticeable

Page 16: Proportional-Derivative-Integral (PID) Control

Can be complex: Autopilot

Heading AileronRoll