Loops

Chapter 2 of 6

Understand

Sense, Compare, Act

Their mentor, Ms. Delgado, drew a circle on the whiteboard and split it into three parts.

"Sense. Compare. Act," she said. "The robot senses where the line is. It compares that to where it wants to be. That difference is called the error. Then it acts: it steers. And then it senses again. Round and round. That’s a feedback loop."

She tapped the board. "You run on loops all day. When you reach for a glass, your eyes sense the gap between your hand and the glass, your brain compares, your arm adjusts, over and over, so fast you never notice. A thermostat does it with temperature. Your body does it to keep you at about 37 degrees Celsius."

"So why is ours broken?" Sam asked.

"The loop isn’t broken," said Ms. Delgado. "It’s tuned wrong. The question is: how hard does it act on each error?"