

Watering system
An Arduino Uno based irrigation controller that reads soil moisture, switches a 9 V water pump through a relay, and shows live status on a 16x2 LCD.
- Size
- 90 × 65 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 15
- Nets
- 14
- Pads
- 51
- Tracks, vias
- 92, 1
- Pours
- 1
- Routed
- Yes
- KiCad
- KiCad 10.0 (file 20260206)
- Created
- 22 Nov 2025
- Updated
- 31 Oct 2026
Overview
Watering system is an open-source printed circuit board by N2V5Y7T, from the N2V5Y7T/automatic-watering-system repository on GitHub, published under the MIT licence. It is a 2-layer board of 90 × 65 mm with 15 parts on 14 nets, routed with 92 tracks and 1 via.
It is built around the 100UF 10V 4*7. Its parts include 7 connectors, 1 capacitor, 1 resistor and 1 diode. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Main components
1README
README.mdAutomatic Plant Watering System
An Arduino Uno based irrigation controller that reads soil moisture, switches a 9 V water pump through a relay, and shows live status on a 16x2 LCD. The repo includes the firmware, the wiring guide for the breadboard prototype, and a custom 2-layer KiCad PCB.
Features
- Automatic irrigation: pump turns on when soil is dry and off when it is wet enough.
- Hysteresis control: two thresholds (30% on, 75% off) stop the pump from chattering around a single set point.
- Interrupt-driven polling: Timer1 fires an ISR every 2 s that sets a flag; the main loop does the work, so the ISR stays short.
- LCD feedback: moisture percentage and pump state on a 16x2 display.
- Custom PCB: 90 x 65 mm shield-style board with screw terminals for battery, pump and relay.
Repository structure
automatic-watering-system/
├── firmware/
│ └── watering_system/
│ └── watering_system.ino Arduino sketch
├── docs/
│ └── Wiring_Guide.pdf Breadboard wiring guide
├── hardware/
│ ├── DESIGN_NOTES.md Nets, track widths, design assumptions
│ ├── kicad/ KiCad 7+ project (schematic, PCB, symbols, 3D model)
│ └── tools/
│ └── make_pcb.py Script that generated the initial board
├── .gitignore
├── LICENSE
└── README.mdHardware
| Part | Notes |
|---|---|
| Arduino Uno (ATmega328P) | Main controller |
| Soil moisture sensor (analog) | Capacitive recommended; resistive corrodes |
| 5 V relay module | Switches the pump |
| DC water pump | Design assumes max 1 A (see PCB notes) |
| 16x2 LCD (HD44780) | 4-bit mode |
| 10k potentiometer | LCD contrast |
| 9 V battery | Pump supply |
| Extras on PCB | 220 R (backlight), 100 uF/10 V cap, 1N4007 flyback diode |
Pinout
| Component | Arduino pin |
|---|---|
| Moisture sensor (AO) | A0 |
| Relay IN | D7 |
| LCD RS | D12 |
| LCD E | D11 |
| LCD D4 / D5 / D6 / D7 | D5 / D4 / D3 / D2 |
Full connection steps are in docs/Wiring_Guide.pdf.
How it works
Moisture mapping. The raw ADC value is clamped between WET_VAL (300) and DRY_VAL (800) and mapped to 0-100%. Higher raw value means drier soil, so the mapping is inverted.
Hysteresis.
- Pump ON when moisture <
MOISTURE_LOW_THRESHOLD(30%) - Pump OFF when moisture >
MOISTURE_HIGH_THRESHOLD(75%) - Between the two, the pump keeps its current state.
Timer ISR. Timer1 runs in CTC mode with a 1024 prescaler and OCR1A = 31249, giving an interrupt every 2 seconds. The ISR only sets readSensorFlag; reading, relay control and display updates happen in loop().
Getting started
- Clone the repo:
bash git clone https://github.com/<your-username>/automatic-watering-system.git - Open
firmware/watering_system/watering_system.inoin the Arduino IDE (uses the built-inLiquidCrystallibrary). - Calibrate the sensor: note the readings in air and in water, then update
DRY_VALandWET_VAL. - Wire the circuit using the wiring guide, select Arduino Uno, and upload.
If your relay module is active LOW, swap HIGH and LOW in updateActuators() and in the initial digitalWrite in setup().
PCB
The board is a 90 x 65 mm, 2-layer, 1.6 mm FR4, 1 oz copper design with 4 x M3 mounting holes. Open hardware/kicad/watering_system.kicad_pro in KiCad 7 or newer.
Track widths follow IPC-2221 (10 C rise):
| Net class | Nets | Width |
|---|---|---|
| Default | signals | 0.25 mm |
| Power_5V | +5V | 0.50 mm |
| Power_9V | +9V, PUMP_SW | 1.00 mm |
| Ground | GND | 0.50 mm |
The pump current is assumed to be 1 A. If your pump draws more, widen the Power_9V and Ground classes. See hardware/DESIGN_NOTES.md for the full net list.
Run Inspect > Design Rules Checker in KiCad before ordering boards.
Possible improvements
- Low-power sleep between readings
- Minimum pump run time and maximum run time safety cut-off
- Water-level sensor for the reservoir
- Data logging or Wi-Fi reporting (ESP32 port)
License
MIT. See LICENSE (add your name in the copyright line).
Parts
15| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | M3 | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 1 | 100uF/10V | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C1 |
| 1 | 10k_contrast | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm | RV1 |
| 1 | 1N4007 | Diode_THT:D_DO-41_SOD81_P7.62mm_Horizontal | D1 |
| 1 | 220R | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R1 |
| 1 | ARDUINO_UNO | Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm | J2 |
| 1 | BAT_9V | TerminalBlock:TerminalBlock_bornier-2_P5.08mm | J5 |
| 1 | LCD_16x2 | Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mm | J1 |
| 1 | PUMP | TerminalBlock:TerminalBlock_bornier-2_P5.08mm | J7 |
| 1 | RELAY_COM_NO | TerminalBlock:TerminalBlock_bornier-2_P5.08mm | J6 |
| 1 | RELAY_CTRL | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm | J4 |
| 1 | SOIL_SENSOR | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm | J3 |
Similar boards
- 4 layers95 × 76.2 mm

- 2 layers138.8 × 55 mm

MuxPi
SamsungSLAV/muxpi
MuxPi is an open hardware and open software board which was designed to aid in automating tasks on physical devices.
354 parts22Apache-2.0 - 4 layers58.5 × 85.5 mm

- 2 layers80 × 60 mm

EnvMonitor
kennySzhucheng/EnvMonitor
🌡️ 智能环境监测站 | STM32F103C8T6 + FreeRTOS + ESP8266 | 温湿度/光照/测距/OLED菜单/ThingSpeak上云 | 从裸机到RTOS到KiCad PCB全流程
27 parts10 - 2 layers125.7 × 97.8 mm

Qdisk v4
alvaroalea/QL_CST_FLoppyController
A clone of the CST's Floppy Disk Interface for Sinclair QL (PCB version 3 & 4)
31 parts8 - 4 layers130 × 90 mm

- 2 layers99.9 × 100 mm

- 2 layers127 × 71 mm

Questions
How big is the Watering system PCB?
It measures 90 × 65 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Watering system use?
15 parts, built around the 100UF 10V 4*7. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the Watering system KiCad files?
From the N2V5Y7T/automatic-watering-system repository on GitHub, at the commit this page was made from: the board is hardware/kicad/watering_system.kicad_pcb and its schematic hardware/kicad/watering_system.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Watering system design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).