1.Why should I care?
Feedback is the idea that turns a machine from following orders blindly into correcting itself. It keeps planes level, rooms warm and lifts stopping exactly at floors. Everything you have built this term (sensors, decisions, actuators, timing) comes together in a feedback loop.
- ◇ Distinguish open-loop from closed-loop control in real machines.
- ◇ Name the setpoint, measurement, error and actuator in a feedback loop.
- ◇ Explain what a closed loop can correct that an open loop cannot.
2.Watch
→ Listen for what the controller compares, and what happens to the error when a disturbance arrives.
A clear whiteboard explanation of why feeding the measured result back into the controller beats acting from a plan alone.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
The video is optional: everything you need is also in the lesson text and the interactive.
3.Predict
A motor is told to run at 60% power for 10 s to move a cart 2 m. Someone loads the cart with bricks. What happens?
Guess first. Being wrong here is how the surprise works.
4.Discover
Start with all gains at zero except a small proportional gain. Watch the output move towards the setpoint. Then add a disturbance or change the setpoint and see the controller respond. Finally set the gain to zero: what does 'no feedback' look like?
Explorer 02 — Feedback control
Measure, compare, correct
A controller compares the setpoint with what the sensor reports and pushes the plant to close the gap. Tune the gains and watch speed, overshoot and accuracy trade against each other.
- Setpoint r = 1
- Closed-loop output
- Open loop (u = r/K)
- ±2 % band
Gains
Applies the command the model says is right, u = r / K, without ever measuring.
Plant
Like motor speed or an oven: τ·ẏ = −y + K·u. K = 1.
Real-world effects
Noise only affects the closed loop: the derivative term amplifies it.
- Rise 10–90 %
- 0.72 s
- Overshoot
- 0.0 %
- Settling 2 %
- 1.30 s
- Steady-state err
- 0.333
- theory r/(1+Kp·K) = 0.333
State
P control, Kp 2.0 on a first-order plant with τ 1.0 s. Rise time 0.72 s, overshoot 0.0 %, 2 % settling 1.30 s, steady-state error 0.333 (theory for P: 0.333). Peak control effort 2.00. Open loop: steady-state error 0.000.
P control, Kp 2.0 on a first-order plant with τ 1.0 s. Rise time 0.72 s, overshoot 0.0 %, 2 % settling 1.30 s, steady-state error 0.333 (theory for P: 0.333). Peak control effort 2.00. Open loop: steady-state error 0.000.
How to read this
The top panel shows the setpoint (dashed line at 1) and the plant's true output after a step command at t = 0. The solid line is the controlled system; the dotted line is open loop. The bottom panel shows the control effort u the actuator is asked to deliver.
Rise time is how long the output takes to go from 10 % to 90 % of where it ends up. Overshoot is how far it passes that value. Settling time is when it stays inside ±2 % for good. Steady-state error is the gap left at the end: P control always leaves one on these plants; integral action removes it.
Assumptions & limitations
- Linear plant models with known, constant parameters (K = 1). Real motors and heaters have friction, dead zones and parameters that drift with temperature and wear.
- Controller runs every 10 ms and holds its output between samples; the plant is integrated with 4th-order Runge–Kutta at the same step. There is no transport delay, which real systems almost always have.
- The derivative acts on the measurement (not the error) through a 50 ms low-pass filter, a common practical choice that avoids a spike when the setpoint jumps.
- Sensor noise is white Gaussian and seeded for repeatability; it is added only to the measurement, never to the true output.
- Metrics are computed on the true output up to the disturbance time (or 10 s); a response still moving at the end of the window is reported as not settled.
- Open loop uses the exact plant gain to pick its command. That flatters it: any modelling error would show up as steady-state error.
Can't use the interactive? Read a description instead
The feedback lab shows a setpoint line and the system's output over time. With a proportional gain, the output moves towards the setpoint and responds when the setpoint or a disturbance changes. With all gains at zero the controller does nothing, so the output never corrects: no feedback.
5.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1
A toaster pops after a fixed time whatever the bread is like. What kind of control is that?
6.Understand
Open loop: act and hope
In open-loop control the command is decided in advance: run the toaster for 2 minutes, run the motor at 60%. It is simple and cheap, and fine when conditions never change. But it cannot notice a disturbance (thicker bread, a heavier cart) or its own mistakes.
Closed loop: measure and correct
In closed-loop (feedback) control a sensor measures the result, the controller compares it with the setpoint (the target) to get the error = setpoint − measurement, and adjusts the actuator to shrink the error. Then it measures again, every loop pass. A thermostat, cruise control and a self-balancing robot all do this.
What feedback buys, and costs
Feedback rejects disturbances and copes with machines that are not quite what you expected. The cost is a sensor, more design, and new risks: a badly tuned loop can overshoot, oscillate or, with a broken sensor, act on nonsense. That is why the noise and calibration work earlier this term matters.
Explain it another way
Walking to a door with your eyes shut is open loop. Walking with your eyes open, constantly correcting your direction, is closed loop.
Block diagram: setpoint r → (compare) → error e = r − y → controller → actuator → plant → output y → sensor → back to compare. Disturbances enter at the plant; sensor noise enters on the feedback path.
An automatic oven measures its air temperature and switches its element on and off to hold the setpoint; a toaster with only a timer does not measure the toast at all.
Worked example 1
Classify: (a) a washing machine filling for exactly 90 s, (b) a washing machine filling until a level sensor trips, (c) a sprinkler on a timer.
(a) Open loop: time is fixed. (b) Closed loop: it stops when the measured level reaches the target. (c) Open loop, unless it also checks a soil-moisture sensor.
Common mix-ups
- Closed-loop control is always better.
✓ Open loop is cheaper and perfectly good when conditions are steady. Feedback adds sensors, tuning and new failure modes. - A machine with a sensor is closed loop.
✓ Only if the sensor's reading changes the command. A sensor that only displays a value leaves the loop open.
7.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
In a greenhouse heater loop, what is the 'error'?
Practice 3
The setpoint is 18 °C and the thermometer reads 15.5 °C. What is the error, in °C?
Practice 4
A closed-loop heater's thermometer falls off the wall and reads 0 °C. What does the controller do?
Practice 5 · a fresh version every time
A proportional heater controller uses effort = gain × error, where error = setpoint − temperature. The gain is 50% per °C and the effort is limited to the range 0 to 100%. The setpoint is 20 °C and the temperature is 14 °C. What heater effort does it command, in %?
8.Apply it
Find two open-loop and two closed-loop machines at home or school. For each closed-loop one, name the setpoint, sensor, error and actuator. For each open-loop one, name a disturbance it cannot correct.
9.Reflect
Concepts: Open-loop and closed-loop control · The sense–think–act loop