⚡ Spark Academy53 lessons

Closing the Loop

Measure, compare, correct, repeat. Proportional control is the obvious first idea — and it fails in two beautifully instructive ways.

lesson 1 of 2 in this unit

Builds on: 6.2 Negative Feedback Amplifiers6.1 The Operational Amplifier12.1 Program the Night-Light

Open loop vs closed loop

A toaster is open-loop: it runs its heater for a fixed time and hopes. Change the bread, the room, the mains voltage — and hope is all it has. A closed-loop controller instead measures the result, compares it with the goal, and corrects continuously:

error = setpoint − measurement → drive = f(error)the loop: sense → compare → actuate → the world responds → sense again

You have built this twice without the vocabulary: the op-amp with negative feedback (6.2) closes a loop a million times a second to hold V₋ equal to V₊; your night-light (12.1) closes one twenty times a second. Control theory is the study of what happens in between the corrections — because in between is where the trouble lives.

Proportional control and its two failures

The obvious rule: push proportionally to the error — drive = Kp × error. It works! And it fails twice:

  • Steady-state offset. Holding a heater above room temperature needs nonzero drive — but P-control's drive is zero when the error is zero. So it settles where the leftover error, times Kp, exactly sustains the temperature: always a little short. Raise Kp and the offset shrinks… but:
  • Oscillation. Real systems answer late — heat takes time to travel from element to sensor (a deadtime). A high-gain controller keeps pushing on stale information, overshoots, slams the other way, overshoots again: the loop rings like your LC tank (9.1), and past a critical gain the ringing grows instead of dying. Feedback + delay + too much gain = an oscillator. (Sometimes on purpose — that's precisely how oscillators are built. In a heater, it's a defect.)
The tension to feel in the lab

Low gain: sluggish and permanently short of the target. High gain: fast and wobbling on the edge of instability. Proportional control alone cannot give you both accuracy and calm — that impasse is exactly why the next lesson exists.

⚡ Lab — The Stubborn Heater

A heater with realistic lag and deadtime, under P-only control.

  • Kp = 1: settles calmly — well short of the setpoint. Compare with the theory meter.
  • Kp = 6: closer and wobblier. Kp = 15: a full-blown oscillator.
  • Open the window at each gain and watch how each recovers (or doesn't).
60 °C
2.0
The two failures of P
low Kp: permanently short of the setpoint · high Kp: the deadtime turns eagerness into oscillation
Try this
Kp = 1: note the offset matches the theory meter. Then Kp = 15: watch it ring like your LC tank

Check your understanding

Q1. A purely proportional heater controller always settles below its setpoint because…

Q2. What turns a high-gain feedback loop into an oscillator?

Q3. A toaster on a timer is an example of…

Q4. Which earlier circuit was already a closed feedback loop?