Greenhouse
A glass box that traps sunlight by day and leaks heat all night.
A greenhouse lets sunlight in and keeps warm air from blowing away. But glass is a poor insulator, so on a cold night it loses heat fast. A smart greenhouse adds sensors and a controller that heat, vent, fan and water to keep plants in the conditions they need, using as little energy as possible.
- 8 components
- 2 worked equations
- 1 live model
- 2 safe experiments
1Exploded view
Take the smart greenhouse apart.
Tab to a numbered part (or tap it) to jump to its description. The same parts as a list:
2Major components
What every part does, and how.
- 01
Glazing
Glass or plastic panels that let sunlight in.
how →Visible light passes through and warms the plants and soil; they re-radiate long-wave infrared, which the glass partly blocks.
- 02
Roof vent
A window the controller opens to let hot, humid air out.
how →Warm air rises, so a high opening vents naturally; it is the cheapest way to cool.
- 03
Growing bed
Soil and plants; also a big thermal mass that stores daytime heat.
how →Damp soil has a large heat capacity, so it slows the temperature swing between day and night.
- 04
Heater
Adds heat on cold nights.
how →It only has to replace what leaks out: heat loss = U × A × ΔT.
- 05
Circulation fan
Moves air to even out temperature and humidity, or exhausts it.
how →Still air near leaves becomes humid and invites disease; moving air carries moisture away.
- 06
Sensor stake
Measures air temperature, humidity, light and soil moisture.
how →Sensors in shade and at plant height give readings that match what the plants feel.
- 07
Controller
Decides when to heat, vent, run fans and water.
how →Usually on/off control with hysteresis, so actuators do not chatter around a setpoint.
- 08
Water tank and pump
Stores water and pumps it to drip lines when the soil is dry.
how →Watering on measured soil moisture uses less water than a fixed timer.
3System relationships
Where the energy and information go.
Each block is a part (or the world outside). Solid lines carry energy, dashed lines carry information, dotted lines carry matter such as water or air.
Flows, in order
- Sunlight sends energy to Glazingenergy: light
- Glazing sends energy to Air + plantsenergy: heat
- Tank + pump sends matter to Air + plantsmatter: water
- Air + plants sends information to Sensorsinformation: conditions
- Sensors sends information to Controllerinformation: readings
- Controller sends information to Heaterinformation: on / off
- Controller sends information to Roof ventinformation: open / close
- Controller sends information to Faninformation: on / off
- Air + plants sends energy to Outside airenergy: U·A·ΔT
Loops that close
- Heater feeds back to Air + plantsenergy: heat
- Fan feeds back to Air + plantsmatter: mixing
- Controller feeds back to Tank + pumpinformation: water
4Physical principles
The physics doing the work.
Heat transfer
Heat leaves by conduction through the glass, convection in the air and radiation to the night sky. All grow with the temperature difference.
First-order systems
With the heater off, the inside temperature decays towards the outside temperature exponentially, with a time constant τ = C / (U·A).
First-order systems and the time constantFirst-order differential equations
On/off control with hysteresis
Switch the heater on below one temperature and off above a slightly higher one, so it does not flicker on and off.
5Mathematical foundations
The equations, with real numbers in them.
Steady heat loss
Q = U · A · ΔT
- Q
- heat loss rate [W]
- U
- overall heat-transfer coefficient of the glazing [W/(m²·K)]
- A
- glazed area [m²]
- ΔT
- inside minus outside temperature [K]
Worked example
- 1.Q = 5.8 × 60 × 15
- 2.Q = 5220 W, so a heater of about 5 kW to hold 15 K above outside
- Heat loss
- 5,220 W
AssumesA U-value typical of single glazing, still air, and no heat from the soil.
Cooling time constant
τ = C / (U · A)
- τ
- time constant [s]
- C
- heat capacity of air, plants and soil [J/K]
- U·A
- loss per kelvin [W/K]
Worked example
- 1.U·A = 5.8 × 60 = 348 W/K
- 2.τ = 2 000 000 / 348 ≈ 5747 s
- 3.≈ 1.6 hours: after that the gap to outside has shrunk to about 37%
- Time constant
- 5,747 s
- In hours
- 1.6 h
AssumesOne lumped thermal mass; the heat capacity is an illustrative figure for a small greenhouse with damp soil.
6Computing architecture
The computer inside the system.
A small microcontroller samples sensors every few seconds and applies rules with hysteresis, logging data for the grower.
Layer 1
Sensors
Temperature, humidity, light, soil moisture.
Layer 2
Rules
Heat below a set point, vent above another, water when soil is dry; never heat and vent at once.
Layer 3
Logging
Records conditions so the grower can see what the plants experienced overnight.
7Engineering trade-offs
Every choice costs something.
Double glazing
Gain:Roughly halves heat loss.
Cost:More expensive, heavier, lets through slightly less light.
Wider hysteresis band
Gain:Fewer heater switches, longer equipment life.
Cost:Bigger temperature swings for the plants.
Add thermal mass (water barrels)
Gain:Smaller day–night swings.
Cost:Takes space and warms up more slowly in the morning.
8 · Try it · runs in your browser
A cold night
Set the outside temperature, the glazing and the heat capacity. Watch how fast the greenhouse cools with the heater off, and the heater power needed to hold it warm.
- Inside temperature
- 2.1 °C
- Time constant τ
- 1.60 h
- Heater to hold the start temperature
- 6,264 W
Too cold for most crops: you need heat or insulation.
ModelHeater off, one lumped temperature, constant outside temperature and U-value; no sunlight, wind or radiation to the sky.
Go further with a related simulation: Greenhouse through a cold night
9Suggested safe experiments
Things to try, safely.
Every experiment here is virtual or a household-safe observation. Never open real devices, batteries or power supplies, never work on mains electricity, and never look at the Sun.
Observation
Jar greenhouse
- Put two thermometers in sunlight, one under an upturned clear glass jar.
- Read both every five minutes for half an hour.
- Then move both into shade and watch the jar cool: is it exponential?
Safety: Use ordinary room thermometers (not mercury). Do not use glass in direct sun near anything that could burn; handle the jar carefully.
Virtual
Find τ in the simulator
- In the demonstration, note the time when the gap to outside falls to 37%.
- Double the heat capacity and repeat.
- Check the ratio matches τ = C / (U·A).
Safety: Runs entirely in your browser.
10Keep learning
Lessons, courses and videos.
Lessons
- A greenhouse is a first-order system
- Project: design a greenhouse that responds
- On/off control: the bang-bang thermostat
Courses
Concepts in the Atlas
- First-order systems and the time constant
- Open-loop and closed-loop control
- The sense–think–act loop
- First-order differential equations