The parts
Cruise control holds a car at the speed the driver sets. The driver dials in 25 m/s (90 km/h); the car is doing 20 m/s (72 km/h). Four parts share the work, and each has one job.
The plant is the thing being controlled: the car. Its output is the quantity we care about, its speed. Its input is the push from the engine. With no push, air and tyres slow it down.
Nobody can set a speed directly. The engine is the actuator: it turns a throttle command, from 0 to 100 %, into a push on the car, from 0 to 3000 N. It is strong, but it has a limit.
A sensor measures the output. Here a toothed ring turns with the wheel, and a sensor counts the teeth going past. More teeth per second means faster. The car's computer turns the count into a speed reading.
The controller
The reading travels back to the controller. That trip is feedback, as in Open loop versus closed loop. The controller subtracts the reading from the setpoint: 25 − 20 = +5 m/s. That difference is the error. Positive means too slow.
Our rule: open the throttle 100 % for every 1 m/s of error, kept between 0 and 100 %. An error of 5 m/s asks for 500 %, so the command is full throttle. The controller only decides; the engine does the pushing.
Round the loop
Follow the loop and the signal changes kind at every part: setpoint (m/s), error (m/s), throttle command (%), push (N), speed (m/s), reading (m/s). Each part turns one kind of signal into the next.
Now the loop runs, 20 times a second. The engine stays at its limit, full throttle, for 2.1 s. Then the error shrinks and the throttle eases to 25 %. The car settles at 24.8 m/s.
Now fit bigger tyres without telling the computer, so the sensor reads 10 % low. The loop holds the reading near the goal (24.7 m/s), so the car really does 27.5 m/s, about 99 km/h. Feedback cannot fix a wrong sensor.
The sensor measures. The controller compares and decides. The actuator pushes. The plant responds. A weak actuator makes the loop slow, a wrong sensor makes it wrong. This rule still leaves 0.25 m/s of error.
What is happening
# step 1/10 · job # about: Set speed (setpoint), Car (plant) setpoint (goal) 25 m/s = 90 km/h car right now 20 m/s = 72 km/h m/s = metres per second. Multiply by 3.6 to get km/h. The four parts: plant, actuator, sensor and controller.
The car is a simple model with illustrative numbers: 1200 kg, drag of 30 N per m/s (real drag grows faster than this, roughly with speed squared), and an engine that can push up to 3000 N. Every curve and number in the figure is computed from that model. The Python on each step is plain Python 3 with the math module. It updates the controller every 0.05 s and moves the car forward with the exact solution of its equation between updates, just as the figure does.