The simulation was beautiful.

I want to say that first, because it is the whole problem. On Sunday night I wrote a forty-line Python model of Heron's drivetrain: motor torque constant, gear ratio, wheel radius, a 14-kilogram mass, a 15-degree incline. I fed it my new speed controller, proportional plus integral, and told it to climb a ramp at 1.1 meters per second.

The plot came out like a textbook. A smooth rise, no overshoot, a speed that locked onto 1.1 and stayed there while the ramp's friction tried to drag it down. The integral term quietly absorbed the friction. The error went to zero as if it had been invited.

"It's perfect," I said.

Priya, on a video call from her bedroom, looked at the plot for a long time. "What's the current in the simulation?"

"Peaks at 9 amps on launch."

"The real current limit is 30 amps total, which we set in firmware. The sim doesn't have it."

"It doesn't need it. The sim never gets close."

"The sim never gets *stuck.*"

"Priya." I said it with the weary patience of someone who has been right for a week. "We calibrated the gyro. We've hit every spec. I know this system."

She didn't argue. She was seventeen and she did not like to argue with a person holding a good plot. But she said, "Can we run it on the bench first, with the wheels off the ground, before the ramp?"

"The bench doesn't load the motors."

"That's the point. It's safe."

"It's a day," I said. "We have thirty days, and the ramp mechanism isn't even built. Dex finished the test ramp this afternoon. I want one clean climb tonight."

I want to record that she asked, and that I said no. If a team keeps a record, this is the line in it that matters most.

Monday, Day 17, 4:40 p.m. Dex had built a ramp out of two sheets of plywood on sawhorses, at fifteen degrees, which he'd checked with a digital angle finder and written down. At the top, a plywood stop: a vertical board, to simulate the platform wall. The prototype rolled to the base of the ramp on its own wheels, a bare chassis with a controller, a battery strapped on with a bungee, and a fresh pair of SA-12 motors that had cost $124.

"Starting log," said Priya. "Commanded speed 1.1 meters per second."

"Go."

The robot rolled up the ramp.

It went more slowly than I'd predicted. I noticed that, and told myself the carpet was grippier than the sim's friction. At the lip, where the ramp met the flat wood, the front wheels caught the transition, and the chassis shuddered and stopped, nose up. The motors whined.

"It's stuck on the edge," said Dex.

"The controller will push through it."

"It's drawing thirty amps."

"That's the current limit. It's supposed to."

For one and a half seconds, I watched the robot hold at the lip, and in my head I heard a quiet small voice from room 211. *What does the integral term do when the motor is already at full power and the error is still there?*

I knew the answer. I had known it since Wednesday. I hadn't picked it up.

The integral accumulated. The error, 1.1 meters per second, stayed the same, because the robot wasn't moving. The proportional term couldn't command more than the current limit allowed. The integral, though, had no idea there was a limit. It added up error times time, second after second, a number growing in the software with nothing to stop it. In a simulation with no ceiling, it would have been harmless. On the real robot it was a hidden debt, and the controller was writing checks the motors couldn't cash.

Then the wheels broke over the lip.

The robot lunged forward. The controller, carrying an enormous stored integral, demanded everything it could. The current limit was a cap on current, but the *request* was far above it, and the controller kept requesting. The chassis flew across the flat top of the ramp at three times the commanded speed and hit the stop with a crack that made Tomi yell.

"Kill it!" said Dex.

I hit the key. The motors cut.

"That's called integral windup," Priya said quietly. I could hear that she was trying not to say it the way she wanted to. "The integral kept growing while the actuator was saturated. When the obstacle cleared, the stored error all got dumped at once."

"I know what it's called."

"Okay."

"I'm *saying* I know." I was shaking. "I'll fix it. Give me ten minutes."

I made a second mistake then, the way you do when the first one hurts. I wanted the clean climb so badly that I made a quick patch, clamping the integral to a maximum, without resetting it between runs, and without testing it. I ran the robot again.

This time the robot reached the lip, stalled, and held. The integral clamp limited the windup, but I'd set the clamp too high, a number I'd chosen by feel. The controller still requested far more than the motors could give. The chassis, wedged against the lip, did not move. The motors sat at stall current for a stretch of time I did not measure, because I was looking at the plot and not at the motor.

Dex smelled it first.

"Niko. Kill it. *Kill it.*"

A thin gray thread of smoke came off the left motor's end cap. I hit the key. Silence. The smell: hot varnish, burnt dust, like a hair dryer left on a blanket.

Dex got a glove and touched the can and snatched his hand back.

"Hot," he said. "Really hot."

I got the infrared thermometer. I'm not proud of what it said. **163 °C.**

The winding insulation on these motors is rated for about 130. Past that, the varnish breaks down and the turns short against each other. A shorted winding doesn't make a motor stop. It makes it worse: a little less torque, a little more current, a little more heat. We had cooked it.

Priya was already scrolling the log. "It sat at stall current for eleven seconds," she said. "The datasheet says five."

"I didn't *see.*"

"You were watching the plot."

The shop was quiet. Mr. Ruiz had come in from the back, drawn by the smell, with his cardigan over his arm. He looked at the smoking motor, then at me. He did not say a word. That was somehow worse than anything else.

"It's my fault," I said. "I didn't run it on the bench. Priya asked. I said it was a day. I trusted a simulation with no limit in it, and when it broke I patched it without thinking, and I burned a motor."

"It's a sixty-two-dollar motor," said Dex, though his voice wasn't steady either.

"It's sixty-two dollars from the reserve, and four days," Priya said. She had the vendor page open. "Shipping from the supplier is four business days. We don't have a spare in the plan that fits the left side's mounting. The spare was in the budget, but it's the wrong shaft length. We should have checked." She looked up, and I could see she hated saying it. "We were at $266 of reserve. Now we're at $204."

"And we lose four days of testing the drive."

"At least."

I stood in the middle of the shop room, in a smell of burnt copper, with my best friends and my teacher watching. I thought: *I could say it was a bad run. I could say it was the carpet.* I knew that I wouldn't. A week earlier, in a warehouse, I had kept a failed trial because a clean record was worth less than a true one. I had been very proud of that.

"I'm going to write the failure report," I said. "In the Build Log. All of it. What I did, what I skipped, what it cost."

"Pruitt will read it," said Dex.

"Good."

I wrote it that night, at the workbench, after everyone had gone. It took an hour and a half. I put in the date and the time and the commanded speed, the current limit, the integral gain, the clamp I'd guessed at. I wrote: *Root cause: the speed controller's integral term accumulated while the current limit held the actuator saturated (integral windup). I validated the controller only in a simulation that did not model the current limit. I declined a bench test recommended by a teammate. A second change, a guessed clamp value, was made without a test. Result: motor L1 at 163 °C after 11 s at stall; unit destroyed.* Under *Corrective action,* I wrote three lines.

*1. Conditional integration: the integral term stops accumulating whenever the output is saturated.* *2. Back-calculation: the integral is pulled back toward the value that would have produced the saturated output.* *3. Rule: no controller change goes to the ramp without a bench run, a stall-time limit in firmware (3 s), and a witness.*

Then I did the thing I should have done in the first place. I changed the simulation. I added the current limit. I put in a stall at the lip. I ran the old controller, and the plot showed what the real robot had done: the integral ballooning, the lunge, the crash. And I ran the corrected controller, with the integral frozen during saturation, and the plot showed the robot pushing at the lip, breaking through, and settling at 1.1 meters per second with no lunge at all.

It was the second plot that taught me. A simulation is not a lie. It's a model of the things you remembered to put in it.

I attached both plots to the failure report. I hashed the file. I wrote the hash in the log.

At 11:20 p.m., a message from Mr. Ruiz, whom I had not heard walk out. *I've seen thirty-one years of students burn things,* it read. *The good ones write down why.*

It was Day 21 when the replacement motor arrived. By then, Dex had rewired the left side, Priya had added the stall-time limit, and I'd run the corrected controller on the bench, wheels off the ground, with Priya watching the temperature. It climbed the ramp that Thursday: 1.1 meters per second, no lunge, motor case at 38 degrees afterward.

But when Dex mounted the new motor and we ran the full drivetrain on the floor, something strange started happening in the logs. Priya pointed it out in a voice that was almost excited.

"Niko. The left encoder is counting while the robot is standing still."

"Counting what?"

"Ticks," she said. "Eleven of them in four seconds. With the wheel locked."

I looked at the plot. Nothing was moving. The robot sat at rest on the bench, perfectly still, and the encoder reported motion, in tiny, ghostly bursts.