Sunteți pe pagina 1din 11

# 22-09-2015

Summary

##  Introduction to Control Systems

 PID Controller

 PID Tuning

 Discrete-time Implementation

## • Some systems are inherently unstable (e.g. inverted

pendulum, space rockets, airplanes in some particular
• Equilibrium: (i) Stable, (ii) Unstable and (iii) Astable
• To stabilize we need an active/passive control system
• Type of control:
• Open-loop
• Closed-loop

## The PID controller 3

1
22-09-2015

Open-loop control

## - It works as if no disturbances are present because there is no form of

feedback in the system. In presence of disturbances it fails.

- If the plant changes slightly, the output will no longer match the reference.

## The PID controller 4

Open-loop control

Perturbations Process
Reference Controller
output variable

## The PID controller 5

Closed-loop control

- The main difference between open-loop and the closed loop control is the
presence of feedback in the closed-loop system.

- If the controller is well projected, the plant output will converge to the
desired reference even in presence of undesired disturbances d(t).

Reference

Feedback

## Figure: A Mathematical Approach to Classical Control - Andrew D. Lewis

The PID controller 6

2
22-09-2015

## Open-loop Vs. Closed-loop

Open-loop system:

Closed-loop system:

## “Flyball” governor, used to regulate the

speed of a steam engine.

## This is an example of a mechanical

proportional controller.

## Regular toilet, the float ball turns off

the water valve when the deposit is
almost full.

## This is an example of a mechanical

on-off controller.

## The PID controller 8

Timing definitions

• Response time
• Lag or latency

3
22-09-2015

## Proportional- Integrative- Derivative Controller

• K - Proportional Term
• TI - Integral time
• TD - Derivative time

## + Less Sensitive to perturbations

+ Less sensible to modifications in plant modifications
+ Does not require complex modeling
+ Two PID controllers can be used together
- Be careful with sensor noise
- Can be unstable (too much gain)
- Generally they are not optimal controllers
The PID controller 12

4
22-09-2015

5
22-09-2015

## The PID controller 16

Tunning issues

• Proportional Term:
• Gain too high-> unstable
• Integral Term
• Long period with errors->Windup
• Derivative Term
• High-Frequency noise
• “Derivative Kick”

## The PID controller 17

Problem: “Windup”

## • The actuators can saturate:

• Error continues to be accumulated
• If controller regains control the response could
be exaggerated

6
22-09-2015

## • Problem: Sensor Noise is amplified by

differential term
• Possible Solution: apply a low-pass filter
before the derivative
• Consider the option of zeroing the derivative
part  PI controller

## • Problem: When operator changes set-point

cause a big variation on the derivative term
• Solution1: derivative action based on PV
rather than error.
• Solution2: Apply a fraction of the set-point
to the derivative calculation:

Tunning methods

## Manual Does not need “Maths” But needs “know-

how”
Consistent Tuning
Software May include simulation Cost and Training
Online of Offline Method

## Ziegler- Proved and Online Trial & Error

Nichols Method Process is Perturbed
Aggressive
Other alternatives: Cohen-Coon, Chien-Hrones-Reswick.
The PID controller 21

7
22-09-2015

Ziegler-Nichols Method

• Pick a P Controler

## • Raise gradually K until the

system becomes unstable(Ku)

## Tipo K TI TD • Measure the oscillation o

period (Pu)
P (1/2)*Ku - -
PI (9/20)*Ku (5/6)*Pu - • Chose the constants
correspondent with the type
of controller
PID (6/10)*Ku (1/2)*Pu (1/8)*Pu
One of the assumptions of the Ziegler-Nichols method is that the plant is Table: A Mathematical Approach to
in the form of a transport lag (delay) and a single time constant. Classical Control - Andrew D. Lewis
(Pag. 234)
The PID controller 22

Digital system

## • May be obtained by “discretizing” the continuous time

control system
• The bigger the sampling Frequency the BETTER the discrete
system resembles the continuous time control system
• The control system only works on receiving a sample. Until
next sample it works as an “open-system”

## The PID controller 24

8
22-09-2015

Numerical Approximation

uk = Pk + Ik + Dk

PID Pseudo-code

9
22-09-2015

Pratical example

## Remove integral and derivative action.

Create a small disturbance in the loop by changing the set point.
Adjust the proportional, increasing and/or decreasing, the gain until
the oscillations have constant amplitude.
Record the gain value (Ku) and period of oscillation (Pu).
The PID controller

## Open Loop (Feed Forward Loop)

time for the response to
change, and the ultimate
value that the response
Mu, for a step change of
Xo.

## The PID controller

10
22-09-2015

Bibliography

• Summary:
• http://en.wikipedia.org/wiki/PID_controller

• Books on control:
• Feedback Control of Dynamic Systems - G.F. Franklin,
J. Powell, A. Emami-Naeini
• Control System Design Lecture Notes for ME 155A -
K.J. Astrom

11