Mission Labs / ML-003 · NIGHT WATCH
Mission 003The Unstable Greenhouse
Warm enough, cheap enough, quiet enough. Pick all three.
Seedlings, a cold night and a heater controller that is either too lazy or too twitchy.
Technical briefing
A small glass greenhouse full of seedlings faces a cold night. Below 16 °C they suffer; above 24 °C they wilt. The heater controller has been tuned by guesswork.
Every fix trades something. Push harder and the heater wears out; hold a high target and the energy bill climbs; filter the noisy thermometer and the controller reacts late. Find designs that balance all three, and prove they keep working.
Engineering objectiveKeep the greenhouse in band all night while meeting each level's energy and switching limits.
Systems in play
- Simulation OS · Greenhouse through a cold night (greenhouse-night)
No new physics: every number comes from an existing, tested Tactiverge model. These are simplified educational models, not engineering-grade tools.
Five levels, five different questions
- Level 1 · ExplorerCause and effect: how do the target and the gain change the coldest moment?Keep the seedlings between 16 and 24 °C all night on every trial, using at most 18 kWh.
- Level 2 · BuilderRules and debugging: why is the heater clicking all night?Stay in the 16–24 °C band on every trial, use at most 18 kWh, and switch the heater at most 30 times in the worst trial.
- Level 3 · InnovatorIntegration to a specification: reject a disturbance within budget.No time outside the band, at most 21 kWh and at most 30 switches in the worst trial, with the vent open for three hours.
- Level 4 · Systems EngineerDynamics and trade-offs: noise, lag and wear.Never outside the band, at most 22 kWh, and at most 15 heater switches in the worst trial, vent open for three hours.
- Level 5 · Research EngineerEvidence under uncertainty: a guarantee, not a lucky night.Over 12 seeded nights (thermometer σ 1.0 °C, vent open four hours): never outside the band, mean + 2 SD energy at most 23 kWh, mean switches at most 15.
Mission console
Choose a level, change the design, run seeded trials and read the automatic feedback. Your design and notes stay on this device unless you save them to your Journal.
More than one way to win
These approaches all have honest costs. They describe ideas, not answers: the numbers are yours to find, and the model checks them.
Aim higher
Raise the target so the coldest moment of the night stays above the limit, with a moderate gain.
Gains
- Simple, robust, few switches
Costs
- Pays for extra warmth all night, not just when it is needed
Useful at levels 1, 2, 3, 4, 5
Push harder
Increase the gain so small errors already bring strong heating.
Gains
- Sits closer to the target, so less wasted margin
Costs
- Reacts to thermometer noise: the heater chatters
Useful at levels 1, 2
Strong gain behind a filter
Keep a strong gain but average the thermometer over several minutes so noise no longer flips the heater.
Gains
- Close tracking without chatter
Costs
- The controller reacts late to real changes
- Too long a window lets the house drift
Useful at levels 2, 3, 4, 5
Add integral action
Let an integral term build up extra heat while a steady loss, such as an open vent, keeps the house cold.
Gains
- Removes the lasting gap without a high target
- Lower energy for the same safety
Costs
- Can overshoot after the disturbance ends
- One more gain to tune
Useful at levels 3, 4, 5
Lessons that help
- On/off control: the bang-bang thermostatLevel 1, week 25 · On/off control, the starting point for level 1.
- Proportional control: push harder when further awayLevel 2, week 26 · Proportional control: push harder when further away.
- On/off control and hysteresisLevel 2, week 26 · Why controllers chatter, and how designers stop it.
- Energy over time: watt-hours and what they costLevel 2, week 14 · Watt-hours and what they cost.
- The moving average and the noise–lag trade-offLevel 3, week 23 · The noise–lag trade-off at levels 2–5.
- What I and D buy, and what they costLevel 3, week 30 · What integral action buys at levels 3–5, and what it costs.
- A greenhouse is a first-order systemLevel 4, week 12 · The greenhouse as a first-order system with a time constant.
- Why P control never quite arrivesLevel 4, week 16 · Why P control alone never quite arrives.
Assumptions and limits
Knowing what the model leaves out is part of the mission.
- One well-mixed air volume (a single temperature).
- Heat capacity and loss coefficient are illustrative values for a ~10 m² glass greenhouse, not measurements.
- Outdoor temperature follows a smooth daily curve (11 °C at 15:00, 1 °C at 03:00).
- PI controller with conditional-integration anti-windup; heater power is continuous between 0 and its rating.
- One well-mixed air volume: no gradients, humidity, wind or plant transpiration.
- Heat capacity and loss coefficients are illustrative values for a small glass greenhouse, not measurements.
- Switches count changes between heating and not heating; real relay wear also depends on load and timing.
Go deeper
Content status: technically checked (automated tests run every level's starting design, which must fail, and at least two different approaches, which must pass). Written with AI assistance; not yet reviewed by an educator. Simulation only: never connected to physical hardware.