Pid controller tuning methods
Pid controller theory, tuning rules including ziegler-nichols, e practical guidelines.
pidcontrollertuning
Overview
A PID controller continuously calculates an error value and applies a correction based on proportional (P), integral (I), and derivative (D) terms:
where:
- = error = setpoint − process variable
- = proportional gain
- = integral gain
- = derivative gain
Ziegler-Nichols Tuning (Open Loop)
Based on the process reaction curve with parameters: gain , dead time , time constant :
3 linhas
Controller | Kp | Ti | Td |
|---|---|---|---|
| P | T / (K·L) | ∞ | 0 |
| PI | 0.9·T / (K·L) | 3.33·L | 0 |
| PID | 1.2·T / (K·L) | 2·L | 0.5·L |
Fonte: engineeringtoolbox.com
Ziegler-Nichols (Closed Loop / Ultimate Gain)
Using the ultimate gain and ultimate period :
| Controller | |||
|---|---|---|---|
| P | — | — | |
| PI | — | ||
| PID |
Effect of Each Term
| Term | Effect of Increasing | Side Effect |
|---|---|---|
| P (proportional) | Faster response, reduces steady-state error | May oscillate |
| I (integral) | Eliminates steady-state error | May cause overshoot, slow settling |
| D (derivative) | Reduces overshoot, dampens oscillations | Sensitive to noise |
Practical Tips
- Start with PI control (set ) for most processes
- Add D term only for slow processes with significant dead time
- Typical anti-windup: limit integrator output range
- Derivative filter: use with