Skip to content
You Start with one site
Amounts in Start with one site
Simulator · Monitoring

PID tuning

Too timid drifts, too eager swings. Find the tune that is quick and steady.

Found this useful?

Overshoot
Settles within 2 % in
Dip after cold water
Heater pinned at a limit
Predict first

The loop is slow to reach a new setpoint. You triple the controller gain. What happens?

Design check
Try this
  1. Make the tank settle within 5 minutes with less than 5 % overshoot.
  2. Raise the gain until it swings up and down. Now double the dead time: what gain is safe now?
  3. Turn anti-windup off on the good tune. Where does the extra overshoot come from?
How the numbers are worked out

The tank follows τ dT/dt = −(T − Tair) + K u(t − θ) + d: the heater output u (0 to 100 %) warms it by K °C per %, but only after the dead time θ. The controller is the textbook PID: u = Kp (e + (1/Ti) ∫e dt) − Kp Td dT/dt, with the derivative on the measurement so a setpoint change does not kick the heater. When the output is pinned at 0 or 100 %, anti-windup pulls the integral back toward the limit (back-calculation, with tracking time Ti for PI). The good starting tune is SIMC (Skogestad 2003): Kp = τ / (K × 2θ), Ti = the smaller of τ and 8θ. Worked out every half second.

The lessons PID tuning methods and real loop problems go through each step; the concept PID explains it in five minutes, and integral windup the trap.

Found this useful?

Discussion

    Comments show your name. Be kind, stay on the topic.