Skip to content
← Projects

Automated Growhouse

Greenhouse that waters, ventilates and lights itself.

Automated Growhouse
FIG. 1 — The complete build, running unattended

The problem

Three things keep plants alive: water, air temperature and light. All three have to run unattended, on their own schedules, without interfering with each other.

What I built

Three independent control loops on one Arduino, plus an OLED showing live conditions.

Water

A capacitive soil moisture sensor reads the soil. Below threshold, a 5 V pump runs for five seconds, then a five-minute lockout before another measurement can trigger another cycle. I built this as a state machine specifically so the pump cannot re-trigger inside the soak window. Without that, the sensor reads dry soil that simply has not absorbed yet, and the plant gets drowned.

Air

A DHT11 reads temperature. Above 27 °C a 12 V fan starts and a 3D-printed servo vent hatch opens; both shut below 25 °C. The two-degree gap is deliberate hysteresis. With a single setpoint the fan would switch on and off constantly every time the temperature moved slightly across the line.

Light

A 230 V grow lamp on a relay, on a twelve-hour cycle.

Why it runs unattended

It is one system spanning 5 V logic, a 12 V fan and 230 V mains through a relay, with a mechanical part I designed and printed and firmware holding it together. The two decisions above, the soak lockout and the hysteresis band, are the difference between hardware that runs unattended and a demo that works while you are watching it.

What I’d change

The lighting timer. Right now the lamp switches every 12 hours, counted from when the Arduino was powered on, so if the power goes out the whole cycle shifts. I would add a real-time clock module, a DS3231 with a coin cell, so the lamp turns on and off at set times of day no matter when the board was last restarted.

Live conditions: 26.70 °C, soil reading 55 %
FIG. 2 — Live conditions: 26.70 °C, soil reading 55 %
3D-printed vent hatch on its servo
FIG. 3 — 3D-printed vent hatch on its servo
12 V extraction fan
FIG. 4 — 12 V extraction fan
Capacitive soil moisture sensor v2.0
FIG. 5 — Capacitive soil moisture sensor v2.0
5 V irrigation pump
FIG. 6 — 5 V irrigation pump