Skip to content
Tactiverge

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.

plate 12 · smart greenhouse, isometric, exploded

Tab to a numbered part (or tap it) to jump to its description. The same parts as a list:

  1. 1Glazing
  2. 2Roof vent
  3. 3Growing bed
  4. 4Heater
  5. 5Circulation fan
  6. 6Sensor stake
  7. 7Controller
  8. 8Water tank and pump

2Major components

What every part does, and how.

  1. 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.

  2. 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.

  3. 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.

  4. 04

    Heater

    Adds heat on cold nights.

    how →It only has to replace what leaks out: heat loss = U × A × ΔT.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

SunlightGlazingTank + pumpAir + plantstemperature, humiditySensorsOutside airheat leaks outControllerhysteresis rulesHeaterRoof ventFan
Energy (solid)Information (dashed)Matter (dotted) Source Sense Decide Convert Store Output

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.

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. 1.Q = 5.8 × 60 × 15
  2. 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. 1.U·A = 5.8 × 60 = 348 W/K
  2. 2.τ = 2 000 000 / 348 ≈ 5747 s
  3. 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.

  1. Layer 1

    Sensors

    Temperature, humidity, light, soil moisture.

  2. Layer 2

    Rules

    Heat below a set point, vent above another, water when soil is dry; never heat and vent at once.

  3. 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.

8.0 h
20.0 °C
2.0 °C
5.8 W/(m²·K)
60 m²
2.0 MJ/K
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.

outside20.00.0012Hours after sunset (h)°C

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.

  1. Observation

    Jar greenhouse

    1. Put two thermometers in sunlight, one under an upturned clear glass jar.
    2. Read both every five minutes for half an hour.
    3. 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.

  2. Virtual

    Find τ in the simulator

    1. In the demonstration, note the time when the gap to outside falls to 37%.
    2. Double the heat capacity and repeat.
    3. Check the ratio matches τ = C / (U·A).

    Safety: Runs entirely in your browser.