Automatic irrigation for a vegetable garden
Controller that measures soil moisture and opens the irrigation valve when the soil dries, without relying on someone remembering to water.
- Type
- Electronic device and app
- Controller
- Arduino Nano
- App
- Android and Windows, over Bluetooth
- Technologies
- Arduino IDE, DesignSpark PCB, Delphi, FireMonkey
The project
Watering on a timer wastes water on rainy days and leaves the garden dry on hot ones. This controller decides by the actual soil moisture, and the project covers the whole path: the board, the program running on it and the app.
Electronic board
Printed circuit board designed in DesignSpark PCB, in more than one version, including a simplified one.
Firmware
Arduino Nano program that reads the sensor, controls the valve, updates the panel and records the history.
App
In Delphi with FireMonkey, for Android and Windows, communicating over Bluetooth. In development.
How it decides when to irrigate
Two settings on the panel define the desired moisture range: the minimum and the maximum. The controller works between these two limits.
- The valve opens when moisture drops to the minimum
- Irrigation continues until moisture reaches the maximum
- A time limit closes the valve even if the maximum is not reached
- A waiting interval between activations prevents rapid on-off switching
- A switch changes to manual mode and opens the valve right away
The panel
Everything the controller is doing can be seen and adjusted on the device itself, without a computer.
LCD display
Shows the current moisture, the minimum and maximum limits and the valve cycle countdown.
Status LED
Red for dry soil, green for moisture within range, blue for soaked soil and white while irrigating.
Settings and switches
Two potentiometers set the limits; a switch selects automatic or manual and a button turns the display light on and off.
History and diagnostics
The controller stores in the Arduino's own memory each action (valve opened or closed, mode change, closing by time limit, restart) and periodic moisture readings with the limits in effect. The records remain there even without power.
Through the serial port, a command menu shows the current status, lists the history and turns on real-time monitoring, which makes installation and sensor calibration easier.
