What the lesson covers
A PID controller compares a measurement with its target and corrects the error in three ways. Students drag the proportional gain to see the offset shrink, then learn what the integral and derivative terms add.
The slides, one by one
1 PID controllers
Feedback that corrects itself
How does an oven hold exactly 180 °C?
2 Proportional control alone leaves an offset
y_\infty = \dfrac{K}{1 + K}
y = \frac{k}{1 + k} \left(1 - e^{-\left(1 + k\right) x}\right)
Live graph: y = (((2))/(((1)+((2)))))·(((1)-(exp((((-(((1)+((2))))))·(x))))))
\begin{aligned}&\textsf{Drag the gain }k\textsf{: the gap to 1}\\
&\textsf{shrinks}\end{aligned}
3 Each term looks at the error differently
u = K_p e + K_i \int e\,dt + K_d \dfrac{de}{dt}
4 The offset of a P controller
A heater with plant gain 1 is set to 50 °C using P control. Find the steady temperature with Kp = 4 and with Kp = 9.
→ Steady output = setpoint × Kp / (1 + Kp)
K_p = 4: \; 50 \times \dfrac{4}{5} = 40\ ^\circ\text{C}
K_p = 9: \; 50 \times \dfrac{9}{10} = 45\ ^\circ\text{C}
Errors of 10 °C, then 5 °C: smaller, never zero
5 Quick check
Which term removes the steady-state error?
- Proportional
- Integral
- Derivative
- None of them
Show the answer
Integral
The integral grows while any error remains, pushing it to zero.
6 What to remember
Feedback: measure, compare, correct
P alone leaves an offset
I removes it, D damps overshoot
u = K_p e + K_i\int e + K_d \dot e
Challenge: Why can too much integral gain make a system oscillate?
Every slide is built click by click: text, formulas and pictures come in one step at a time, so the class follows the reasoning instead of reading ahead. Graphs with sliders can be dragged live while you present.
Make your own version with AIChange the level, the numbers or the language: type the topic and get a new deck that moves in about 30 seconds. Free, no account needed.
Questions teachers ask
What do the P, I and D terms do?
P reacts to the present error, I adds up past error to remove any steady offset, and D reacts to how fast the error changes to damp overshoot. u = Kp e + Ki ∫e dt + Kd de/dt.
Are these slides really free?
Yes. Watch them on this page or present them full screen with no account. Making your own copy to edit is free too.
Can I change the slides before my lesson?
Yes. Press "Make my own copy" and the deck becomes one of your projects in the Tracé editor, where you can change the text, the numbers, the colours or the order of the clicks.
Do they work on a classroom projector or an interactive whiteboard?
Yes. They run in the browser on any laptop, so anything that shows your screen works. Press the right arrow or click to go to the next step.