One overheat monitor, three ways of computing it

A board heats up, a sensor samples it every 100 ms, the last four samples are averaged, and an LED turns on above 80 °C. Each tab runs it under a different model of computation.

The physics: the board's temperature exists at every instant. A computer can only approximate it, by stepping an ODE solver forward. Change the step size and watch the approximation drift from the true curve.

Space plays and pauses
C·dT/dt = P − (T − Tamb)/R
C = 12 J/K, R = 10 K/W, P = 7 W, Tamb = 25 °C, so τ = RC = 120 s
Exact time to reach 80 °C184.9 s
Solver says alarm at–
Largest error at a step–