Classical Control

PID control

PID control is the most widely used recipe in all of control engineering — a simple, dependable formula for turning an error (how far off you are from the goal) into a corrective action that drives that error to zero. The name is just its three ingredients: Proportional, Integral, and Derivative. Each one looks at the error in a different way — right now, over the whole past, and where it is heading — and the controller adds the three together to decide how hard to push.

Picture filling a bath to a marked line. The Proportional part reacts to how far you are from the line right now: way below, open the tap wide; almost there, ease it down — strong response when far off, gentle when close. The Integral part watches the steady leftover gap that refuses to disappear: if the level keeps sitting just a hair under the line, integral patiently accumulates that small shortfall and opens the tap a touch more until even that last bit is gone. The Derivative part watches how fast the level is rising and acts as a brake — if water is climbing quickly toward the line, it eases the tap early so you don't shoot past it.

Together these three give a response that is fast, accurate, and smooth: proportional supplies the muscle, integral guarantees you actually arrive exactly on target, and derivative tames the overshoot and wobble. PID is everywhere — drone stabilizers, 3D-printer heaters, car cruise control, factory robot joints — precisely because you can make it work well by adjusting just three knobs, without ever writing down the physics of the thing you are controlling.

A self-balancing scooter runs PID on its tilt: proportional pushes back when it leans, integral cancels a persistent forward droop from your weight, and derivative damps the jiggle so it holds you upright without trembling.

Three views of one error — now, the past, and the future — added into a single steadying push.

Not every job needs all three terms: many simple loops run as P or PI only, dropping the derivative term because it amplifies sensor noise.

Also called
PID controllerthree-term controllerPID 控制器三项控制器