EIGENROOMLAB WORKSHEET 28ANSWER KEY · FOR INSTRUCTORSThermal control

Match heat loss with PI

Goal

Find which part of a PI controller supplies the heat a room keeps losing, and compare PI with an ON-OFF relay.

Setup

Open it on a phone or a computer; there is nothing to log in to or install. The link loads run A's settings:

Heat capacity C
1000 J/K
Heat loss H
5 W/K
Ambient Ta
20 °C
Initial temperature
20 °C
Target temperature
60 °C
Maximum heater
400 W
Controller
PI
Kp
20 W/K
Ki
0.1 W/(K·s)
Conditional anti-windup
On
Event
No event
Duration
900 s
  1. APreset, exactly as the link opens it.
  2. BChange only: Ki → 0 W/(K·s).
  3. CChange only: Controller → ON-OFF.
  4. DChange only: Ki → 0.3 W/(K·s). (ext.)

1. Predict

At the target the temperature error is zero, but the room still removes heat. Which part of PI can supply the needed power?

What happens

P = Kp·error vanishes at zero error. With no bias and Ki = 0, this plant settles below 60 °C: about 52 °C for Kp = 20. The integral term can retain approximately 200 W when error becomes small. The PI actuator here accepts continuously modulated power; real relay hardware needs a suitable PWM or time-proportioning design, which is not modeled.

2. Observe

QuantityWhere to read itABCD ext.
Temperature at t = 900 s (°C)Readout at 900 s59.90 °C52.00 °C59.49 °C60.00 °C
Applied power at t = 900 s (W)Readout at 900 s200.00 W160.00 W0.00 W199.99 W
Integral term at t = 900 s (W)Readout at 900 s197.99 W0.00 WNot applicable200.00 W
Time within ±1 °C (%)Results below the plots51.09%0.00%77.51%71.49%

Values computed by Thermal engine 1.0.0 at the settings above. A replay readout can differ in the last digit if the slider is not exactly at the stated time; values read from a plot are approximate.

3. Explain

  1. Run B settles below the target. Use the applied power at the end to explain the offset.

    With P only, power is Kp × error. To supply the 160.00 W that heat loss takes at 52.00 °C, the error must stay at 8.00 °C with Kp = 20 W/K.

  2. In run A, which term supplies the heater power at the end?

    The integral term: 197.99 W of the 200.00 W applied. The P term contributes only Kp times the small remaining error.

  3. The ON-OFF run spends more of its time within ±1 °C than PI. Is it the better controller?

    Not on that number alone: 77.51% against 51.09% includes the warm-up, where the relay's full power helps. The relay switches full power 69 times, wearing a real relay, while PI needs a heater whose power can be varied continuously.

Extension (optional)

Raise Ki to 0.3 W/(K·s). Does the PI run reach the band sooner, and at what cost?

Sooner: time within ±1 °C becomes 71.49% against 51.09%. The cost is overshoot: the temperature now peaks at 61.46 °C, while run A never exceeds 59.90 °C. A larger Ki builds the needed power faster and carries the temperature past the target before the integral settles.

Source: eigenroom.com/worksheets/thermal/thermal-pi/answersCite: EIGENROOM. (2026). Match heat loss with PI [Lab worksheet]. Accessed YYYY-MM-DD. https://eigenroom.com/worksheets/thermal/thermal-pi