Lite / Engineering Complex Systems / 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?
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.
Predict
You add integral action to a P loop with a steady error. What happens to the steady error?
- It shrinks but stays
- It goes to zero
- It doubles
- It oscillates forever
Guess first, then reveal
It goes to zero. While any error remains, the integral keeps growing, raising the command, until the error is exactly zero. The cost is usually some extra overshoot.
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?
What the interactive shows (text version)
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.
Watch (optional)
Watch for: 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.
“What Is PID Control? | Understanding PID Control, Part 1” by MATLAB (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
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
Intuitive
P looks at the present, I remembers the past, D predicts the future.
Technical
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.
Mathematical
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.
Applied
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).
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
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.
Reflect
Which PID term would you add first to a noisy temperature loop, and which would you leave out?
Write your answer on paper or in your own notes. Lite never stores what you write.