Proportional-Derivative-Integral (PID) Control
Click here to load reader
-
Upload
guest9006ab -
Category
Technology
-
view
10.620 -
download
3
description
Transcript of Proportional-Derivative-Integral (PID) Control
![Page 1: Proportional-Derivative-Integral (PID) Control](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/1.jpg)
Proportional-Integral-DerivativeController
Presented by: Sancho McCann
![Page 2: Proportional-Derivative-Integral (PID) Control](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/2.jpg)
Simple Control Loop
Control Plant Feedback
![Page 3: Proportional-Derivative-Integral (PID) Control](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/3.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/4.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/5.jpg)
What to do?
Goal (set-point): 21 kph
How much should you change your throttle?
![Page 6: Proportional-Derivative-Integral (PID) Control](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/6.jpg)
What to do?
Set-point: 80 kph
How much should you change your throttle?
![Page 7: Proportional-Derivative-Integral (PID) Control](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/7.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/8.jpg)
Example
![Page 9: Proportional-Derivative-Integral (PID) Control](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/9.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/10.jpg)
Example
![Page 11: Proportional-Derivative-Integral (PID) Control](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/11.jpg)
Problem with Derivative Term
Enhances noise
![Page 12: Proportional-Derivative-Integral (PID) Control](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/12.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/13.jpg)
Examples
![Page 14: Proportional-Derivative-Integral (PID) Control](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/14.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/15.jpg)
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](https://reader038.fdocuments.us/reader038/viewer/2022100601/5576ba28d8b42ad0448b51b0/html5/thumbnails/16.jpg)
Can be complex: Autopilot
Heading AileronRoll