School/□ Systems Engineer/Week 17
I removes the error, D adds the damping
P gets you close. Which two extra terms get you exactly there, smoothly, and what does each cost?
About 35 min · 3 goals · Checked by automated tests
1.Why should I care?
PID controllers run a huge share of industrial loops. Each term solves one problem and creates another. Knowing the trade-offs is what turns random slider-pushing into engineering.
- ◇ Explain how integral action drives steady-state error to zero for step inputs and constant loads.
- ◇ Explain how derivative action adds damping and why it amplifies noise.
- ◇ Predict the qualitative effect of changing each PID gain.
2.Predict
You add integral action to a P loop with a steady error. What happens to the steady error?
Guess first. Being wrong here is how the surprise works.
3.Discover
Set the actuator limit to None. Start with P (Kp = 4): note the steady error. Switch to PI and raise Ki from 0 until the error disappears; note the overshoot. Then switch to PID and raise Kd: what happens to overshoot?
Loading the interactive…
Can't use the interactive? Read a description instead
In the PID tuner with no actuator limit, P control alone settles below the set point. PI removes that error but adds overshoot. Adding derivative action with PID reduces the overshoot.
4.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
What does integral action remove that P alone cannot?
5.Watch
→ Listen for which problem each of P, I and D is introduced to solve.
Shows how proportional, integral and derivative terms each help a system reach its setpoint quickly without overshooting or drifting.
11 min 42 s · captions on YouTube · source
Nothing loads from YouTube until you press play.
The video is optional: everything you need is also in the lesson text and the interactive.
6.Understand
Integral: memory of past error
u = Kp·e + Ki·∫e dt. The integral keeps adding up error, so the command keeps changing until e = 0. At steady state the integral alone supplies the command the plant needs. That is why PI removes steady-state error for steps and constant loads.
Derivative: brakes before the target
Kd·de/dt reacts to how fast the error is shrinking. As the output races towards the set point, D pushes back, like a damper. Many implementations differentiate the measurement, not the error, to avoid a 'kick' when the set point jumps.
The costs
Too much I: slow wobbles and overshoot, and windup when the actuator saturates (next lesson). Too much D: it amplifies sensor noise, because noise changes fast. Real D terms include a low-pass filter. P sets the basic stiffness; I and D trim accuracy and damping.
Explain it another way
P looks at the present, I remembers the past, D predicts the future.
C(s) = Kp + Ki/s + Kd·s/(T_f·s + 1). The integrator adds a pole at s = 0, making the loop type 1 (zero step error). The filtered derivative adds phase lead up to about 1/T_f.
At steady state with PI: dy/dt = 0 and d(∫e)/dt = e must be 0, so e∞ = 0 regardless of K, Kp or a constant load d.
3D printer hot ends and drone attitude loops use PID. Temperature loops often use little or no D because temperature sensors are noisy and the process is slow.
Worked example 1
PI controller, Kp = 2, Ki = 1, plant K = 1. At steady state with set point 1, what is the integral value?
e = 0, so u = Ki·∫e = 1 × ∫e. The plant needs u = y/K = 1, so ∫e = 1. The integral has stored exactly the command the plant needs.
Common mix-ups
- PID always needs all three terms.
✓ Many loops work best as PI (noisy, slow processes) or PD (when a plant already integrates, like position from velocity).
7.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
Why is derivative action sensitive to sensor noise?
Practice 3
Why do many PID implementations differentiate the measurement instead of the error?
Practice 4 · a fresh version every time
A first-order plant with static gain K = 2 is under proportional control with gain Kp = 5. The set point steps to r = 50. What steady-state error r − y∞ remains?
Practice 5 · a fresh version every time
An underdamped second-order system has damping ratio ζ = 0.72. What percent overshoot does its step response have?
8.Apply it
Make a three-row table (P, I, D) with columns 'raises', 'lowers', 'risk'. Fill it from your own experiments in the PID tuner, not from memory, and note the settings you used.
9.Reflect
Concepts: Steady-state error and integral action · Derivative action and damping · Tuning a PID controller · Noise and filtering