Engineers Clinic
BeginnerEngineering trackFP-MR-08

Climate and nutrient automation for a hydroponic greenhouse

Model a greenhouse in a 45 °C summer, write the control logic for fans, cooling pads, shade and nutrient dosing, test it on a simulated ESP32, and cut water and power use.

Core EngineeringMechatronics
6 Guided Steps38h Internship TierSubmit: Requirements and I/O list + Python greenhouse model + control and dosing logic with test plots + ESP32 firmware running in Wokwi + water and energy reportVerified CertificateAI Rubric Graded
Program Overview

Industry project · for GreenDune Farms, a 1,200 m² hydroponic lettuce greenhouse in Al Ain, with a partner polyhouse grower near Nashik

GreenDune grows lettuce in nutrient film channels inside a 1,200 m² greenhouse. In summer the outside air reaches 45 °C at noon. The greenhouse is cooled by six exhaust fans pulling air through wet cellulose pads on the opposite wall, with a retractable shade screen overhead. A small dosing system adds nutrient concentrate and acid to the recirculating water.

Today a worker switches fans and pumps by hand and checks the water with a handheld meter twice a day. On hot afternoons the greenhouse reaches 33 °C, lettuce bolts and turns bitter, and about 12% of each summer crop is lost. Water EC (nutrient strength) drifts between checks, and pH sometimes goes above 7, which locks out iron. The owner wants a simple, cheap controller the team can maintain.

The targets are: - air temperature at or below 28 °C during the day and 18–22 °C at night; - relative humidity 60–85%; - nutrient EC 1.2–1.8 mS/cm and pH 5.8–6.2.

The controller will run on an ESP32 with a temperature and humidity sensor, an EC probe, a pH probe, a light sensor and relays for the fans, pad pump, shade motor and two dosing pumps. A partner grower in a Nashik polyhouse wants the same design for capsicum.

You will build a simple greenhouse climate model in Python, write and test the control logic against it, add nutrient dosing logic, and then run the firmware on a simulated ESP32 in the free Wokwi simulator. Finally you will estimate water and electricity use.

You need no hardware. If you have an ESP32 or Arduino kit, you may also test on a breadboard.

Done looks like a climate model, control logic that holds the targets through a simulated 45 °C day, dosing that keeps EC and pH in range, firmware that runs in Wokwi, and a short report with water, power and crop-loss estimates in dirhams and rupees.

Sensor and actuator selectionSimple thermal modellingEvaporative cooling basicsOn-off control with hysteresisState machinesEmbedded C++ for ESP32Water and energy estimation
What you submit

Requirements and I/O list + Python greenhouse model + control and dosing logic with test plots + ESP32 firmware running in Wokwi + water and energy report

Stack: Python with Matplotlib, Wokwi ESP32 simulator, Arduino IDE or PlatformIO, Spreadsheet, ESP32 kit (optional)

How it is graded
  • Sensible design15

    Sensors, actuators and I/O are chosen and listed with ranges, and safe states on failure are defined.

  • Useful model20

    The greenhouse model includes solar gain, ventilation and pad cooling, and reacts sensibly to a 45 °C day.

  • Climate control works25

    Staged control with hysteresis keeps temperature and humidity in range on the simulated day without rapid relay cycling.

  • Safe dosing20

    Dosing keeps EC and pH in range with mixing delays and dose limits, and never doses on a failed sensor reading.

  • Firmware and report20

    Firmware runs in Wokwi with the same logic, and a short report gives water, power and crop-loss estimates in AED and INR.

Pass 60% · Merit 75% · Distinction 90%

Learning Outcomes
Choose sensors and actuators for a control task
model a greenhouse simply enough to test control
write staged control with hysteresis
dose nutrients safely
run firmware on a simulated microcontroller
estimate running costs
Target Audience

Engineering Students

Diploma, B.Tech, B.E., BCA, MCA, or M.Tech students seeking practical experience.

Aspiring Developers

Developers who want to build proof-of-work capstone projects for tech resumes.

Job Seekers

Graduates looking for AI-evaluated code review & verified industry credentials.