Bachelor’s thesis · Electrical and Electronics Engineering

Intelligent Irrigation Control System

A working irrigation prototype that brings together five soil probes, an ESP32, weather-aware decision logic and a custom power system. The project follows the signal all the way from a garden bed to a pump command, including what happens when power or connectivity drops.

Outdoor garden test bed
Outdoor garden test bed

5

Capacitive soil probes

15 min

Sampling interval

3 m²

Outdoor test plot

≈0.5 L

Water drawn in the reported week

Bachelor’s thesis

Intelligent Irrigation Control System Integrating AI-Driven Decision Making and IoT-Based Sensing Technologies

Berkay Avcı · Altınbaş University · Electrical and Electronics Engineering · Supervisor: Dr. Mesut Çevik · 77 pages · English

Download thesis PDF

See the prototype in action

YouTube walkthrough
From enclosure to test plot — a silent photo tour

The engineering question

A timer can water a garden whether the root zone needs it or not. The capstone asked whether an inexpensive controller could sample several points in the soil, account for weather, and deliver water only when the resulting decision called for it. The design also had to keep working through intermittent power and Wi-Fi rather than depending on a technician to restart it.

From soil measurement to pump command

Five capacitive probes feed the ESP32’s 12-bit ADC. Dry and saturated soil samples established the calibration endpoints, with field observations in the garlic and flower beds used to refine the threshold. The controller publishes the readings over Wi-Fi using MQTT. A Mosquitto broker passes the payload to n8n, which fetches weather data from OpenWeatherMap and supplies the readings, weather and battery context to GPT-4o mini. The decision returns over MQTT as a pump duration or a decision to wait. A separate Telegram message explains the decision. The thesis describes rain forecasts as a reason to defer watering even when a probe suggests dry soil.

System architecture from sensors to automation
System architecture from sensors to automation

Power, enclosure and noise control

A two-stage power system selects among solar input, an AC adapter and a 4S3P battery pack. The prototype separates the 3.3 V sensor rail, the 5 V controller rail, and the switched 12 V pump supply. Keeping the motor wiring apart from the analog lines reduced interference during actuation. The enclosure photos and CAD model show the battery tray and front-panel charge indicator. ESP32 deep sleep reduces idle draw between measurement cycles.

Deployment and recovery

The server stack ran on a VPS with Docker, Mosquitto, n8n and Nginx. TLS protected the MQTT connection. The thesis reports tests that interrupted the network, powered down the controller and server, and restored them to check automatic reconnection. It also reports a seven-day battery-only test during which the prototype continued its sensing and irrigation cycles.

What the outdoor trial showed

In the documented one-week trial, the prototype drew about 0.5 L from a 19 L reservoir for a roughly 3 m² test plot. The thesis estimates the prototype hardware at about US$80. Those numbers describe the trial setup and conditions. The report does not establish a general water-savings percentage against a matched timer-controlled plot. A longer follow-up could log rainfall and measured pump flow, compare matched plots, and test the controller in several soils and seasons.

Build photographs and engineering diagrams