Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 02 · How Things Work · Machines at Home · about 15 min to read

Play it as a journeyTutor comes with a plan

The loop that holds a temperature: control and feedback

Cold Is a Lie
Cold Is a Lie · Open board

: heat that leaks in from outside, and a machine that must keep pushing it out. This lesson adds the part the drawing leaves out, the rule that decides how hard to push.

A ship is steered by one person turning a wheel. Imagine a machine to do it. The simple version is easy to build: if the ship points left of its course, turn the rudder right, and the other way round. It works badly. The ship swings past the course, the machine turns the rudder the other way, and the ship zigzags.

Nicolas Minorsky, a Russian-born engineer, based his analysis on watching a helmsman. A good helmsman does not only look at how far off course the ship is. They also notice how fast it is turning, and how long it has been off. Minorsky wrote this down as a rule in a 1922 paper, “Directional stability of automatically steered bodies”, and the rule was tested at sea on the battleship USS New Mexico (sources: Wikipedia and a 1984 history of control by S. Bennett, read 2026-11-28). It is the rule inside most machines that hold a value steady today.

Your air conditioner holds a room at 24 degrees Celsius with the same problem. By the end of this lesson you will be able to explain how a thermostat, a cruise control and a three-part controller keep a number steady. You will also work out by hand why the simplest rule always misses a little.

The history (optional)

Minorsky’s paper is dated 1922. Sources differ on the date of the sea trials, so none is given here. Bennett writes that the trials on the New Mexico succeeded, but the automatic steering was removed and the work was dropped. The sections below do not depend on this.

Before you start. Cold Is a Lie: fridge, AC, heat pump showed that heat always flows from hot to cold, and that an air conditioner spends energy to push it back out. So a hot room keeps leaking heat in, and the air conditioner must keep working. What is in the battery showed a charger that follows a rule, constant current and then constant voltage. That charger is a small example of what this lesson explains.

Lesson 21 of 25 in How Things Work

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • The feedback loop: measure, compare, act
  • On-off control: the thermostat in most rooms
  • Proportional control: push in proportion to the error
  • Integral control: add up the error over time
  • Derivative control: react to how fast the error changes
  • Why derivative control needs a delay to show
  • Cruise control, with the numbers
  • The flow of the loop
  • Where else the same loop is used
  • When tuning goes wrong

Terms it explains: feedback loop, error, on-off control, Proportional control, steady-state error, Integral control, Derivative control, PID controller, refrigerant.

Lab

A fridge and an air conditioner run the same loop. Why does one move twice as much heat per joule?

Drag Where the refrigerant boils from -25 °C up to +5 °C and watch the ceiling double.

Open The heat pump

Review How Things Work