JOVANA
Library Glossary Getting Started Three Levels Fields How it works Mission
Join the mission
All guides

What Is Control? Open Loop, Closed Loop & Feedback

Your shower, your car's cruise control, and a Mars rover all share one idea: measure how far you are from where you want to be, and use that gap to act. That idea is **feedback**, and it is the quiet engine behind almost every machine that behaves. In nine minutes you'll meet the controller, the plant, the sensor, and the summing junction — and see why a thermostat beats a toaster timer the moment the world stops cooperating.

The job of control: drive the world toward what you want

Picture yourself in a shower with two old, stiff knobs and no temperature display. You crank the hot, wait, feel the water — too cold — crank a little more, wait, feel again — now scalding — back off. Without ever thinking the word, you are doing control: you have a goal (a comfortable temperature), a thing you can adjust (the knobs), and a way to tell how you're doing (your skin). Control engineering is simply the discipline of making machines do this on purpose, reliably, and fast.

Every control problem, from this shower to a self-landing rocket, is built from the same vocabulary. The reference (or setpoint) is the value you want — say 38 °C. The plant is the physical thing you're trying to command — here the mixing valve and the pipes. The output is what the plant actually produces — the water temperature that lands on your skin. A controller decides how hard to push, and a sensor tells everyone what's really happening. Get comfortable with these five words; the entire ladder ahead is just them in richer and richer detail.

Open loop: aim, fire, and hope

The simplest controllers don't measure anything at all. Drop bread in a toaster and turn the dial to 'medium': the toaster runs the heating element for a fixed time — maybe 90 seconds — then pops up. It never looks at the toast. It is open loop: the command flows one way, from dial to heater to bread, and nothing flows back. If the toaster's calibration was set for fresh bread and you load a thin, dry, day-old slice, you get charcoal. The toaster doesn't know, doesn't care, and can't correct.

OPEN-LOOP TOASTER

  dial setting        heater          bread
  (reference)  ───▶  (controller) ──▶ (plant) ──▶  toast
     "medium"          90 s ON                      (output)

  Nothing measures the toast. The arrow only goes ONE way.
  Right model of the bread? Great toast.
  Wrong model (stale, thin)? Burnt — and no way to know.
Open-loop control: a one-way street with no measurement of the result.

Open loop isn't stupid — it's cheap, simple, and perfectly fine when two conditions hold: you have a good model of the plant (you know exactly how long this bread takes), and the world stays calm (no surprises change the outcome). A microwave on a timer, a sprinkler set to run 10 minutes, a traffic light cycling on a fixed schedule — all open loop, all useful. The trouble is that the real world rarely sits still.

Closed loop: measure the gap, then act

Now hang a thermostat on the wall. You set it to 20 °C — that's the reference. A sensor reads the room — say 17 °C — that's the output. The thermostat subtracts: 20 − 17 = 3 °C too cold. That number is the error, and it is the whole game. While the error is positive, the heater stays on; as the room warms and the error shrinks toward zero, the heater eventually cuts out. The output is fed *back* and compared to the reference, so this is a closed loop — and that backward path is the negative feedback that makes it self-correcting.

The little circle where reference meets the fed-back output has a name: the summing junction. Drawn in a block diagram, it's a circle with a plus sign for the reference and a minus sign for the sensor's reading. Its only job is one subtraction — error = reference − measurement — and that single arithmetic step is the seed from which all of feedback control grows.

CLOSED-LOOP THERMOSTAT

  reference        error
   20 C   ──▶( + )───────▶ [ controller ]──▶[  plant  ]──┬──▶ output
             ( ∑ )         (thermostat)     (heater+room) │    17 C
               ▲ −                                        │
               │                                          │
               └──────────[  sensor  ]◀───────────────────┘
                          (thermometer)

  error = reference − measurement = 20 − 17 = +3 C  →  heat ON
  As the room warms, the measurement rises, the error shrinks,
  and the loop eases off all on its own.
Closed-loop control: the five named pieces — summing junction, controller, plant, output, sensor — wired into a loop.
  1. Sense: the sensor measures the actual output (the thermometer reads 17 °C).
  2. Compare: the summing junction subtracts to form the error (20 − 17 = +3 °C).
  3. Decide: the controller turns the error into a command (error is positive → heater on).
  4. Act: the plant responds (the heater warms the room, nudging the output up).
  5. Repeat: the new output is sensed again, and the loop runs forever, chasing the error to zero.

Why feedback wins: disturbances and bad models

Here is the deep magic, and it's worth slowing down for. A closed loop reacts to the error, not to a guess about the world. It doesn't matter *why* the room is cold — a window cracked open, a cold front outside, more people leaving the room. Any of these is a disturbance, an unplanned shove on the output. The thermostat never needs to know the cause. It only sees that the measured temperature dropped, the error grew, and so it pushes harder. Feedback rejects disturbances it was never told about.

The same trick forgives an imperfect model of the plant. Cruise control is the classic example. You set 100 km/h; the car measures its real speed and corrects. Going up a hill, the car slows, the error grows, the controller feeds more throttle. Heading down, it eases off — even braking. The engineers never had to model that exact hill, your passengers' weight, or a headwind. Open loop would have demanded a perfect model of all of it in advance; closed loop just watches the speedometer and chases the gap.

DISTURBANCE REJECTION — cruise control on a hill

   set speed (reference) = 100 km/h

   flat road:    speed 100  →  error  0   →  throttle steady
   hill begins:  speed  94  →  error +6   →  MORE throttle
   crest:        speed 100  →  error  0   →  ease back
   downhill:     speed 105  →  error −5   →  LESS throttle / brake

   The controller never modelled the hill.
   It only ever reacted to (reference − measured speed).
Feedback corrects for hills, wind, and weight it was never told about — it only watches the error.

The catch: feedback can also misbehave

If feedback were pure free lunch, this would be a one-rung ladder. It isn't. The same loop that corrects errors can overcorrect. Think back to the stiff shower knobs: you crank the hot too far, scald yourself, yank it back too far, freeze, crank again — oscillating around the temperature you wanted, never settling. The loop is reacting to error, yes, but it's reacting *too strongly* and *too late*, and the result swings wildly. A loop that does this without ever calming down is unstable.

Two ingredients breed this trouble: how hard the controller pushes per unit of error (its gain), and how slowly the plant and sensor respond (delay or lag). High gain reacts fast but overshoots; long delay means you're always correcting for a past that's already changed. Push gain too high on a laggy plant and the loop chases its own tail. Taming this — knowing exactly how much push is safe — is the study of stability, and it occupies a big chunk of this track.

There's a gentler imperfection too. A simple loop may settle calmly but stop just *short* of the reference — the heater clicks off when the room reaches 19.6 °C instead of 20. That leftover gap is the steady-state error, the difference that never quite gets corrected. It's not a failure of feedback so much as a clue about the controller's structure, and learning to drive it to zero — often with the famous integral term — is the heart of the steady-state error story later in this track.

One picture to carry forward

Strip away the shower, the toaster, the car, and the thermostat, and a single diagram remains underneath them all. Reference enters a summing junction, which subtracts the sensed output to make an error. The error feeds a controller, the controller drives a plant, the plant produces an output, and a sensor carries that output back to be subtracted again. That loop — five named pieces and two subtractions — is the canonical block diagram of feedback control, and you will see it redrawn, in disguise, on every rung from here on.

From here the track gets quantitative but never abstract for its own sake. Next we'll model the plant as a tidy input-output relationship, then learn to predict whether a loop settles or oscillates, then tune real controllers like the PID. Every one of those tools exists to answer the two questions this guide raised: *will the output reach the reference?* and *will the loop stay calm getting there?* Hold the shower in your mind — goal, knob, skin — and the math ahead will always have something concrete to hang on.