Skip to the content
2 layers90 × 65 mmWatering system, the printed circuit board in 3D

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

1

README

README.md

Automatic 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

text
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.md

Hardware

PartNotes
Arduino Uno (ATmega328P)Main controller
Soil moisture sensor (analog)Capacitive recommended; resistive corrodes
5 V relay moduleSwitches the pump
DC water pumpDesign assumes max 1 A (see PCB notes)
16x2 LCD (HD44780)4-bit mode
10k potentiometerLCD contrast
9 V batteryPump supply
Extras on PCB220 R (backlight), 100 uF/10 V cap, 1N4007 flyback diode

Pinout

ComponentArduino pin
Moisture sensor (AO)A0
Relay IND7
LCD RSD12
LCD ED11
LCD D4 / D5 / D6 / D7D5 / 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

  1. Clone the repo:
    bash
    git clone https://github.com/<your-username>/automatic-watering-system.git
  2. Open firmware/watering_system/watering_system.ino in the Arduino IDE (uses the built-in LiquidCrystal library).
  3. Calibrate the sensor: note the readings in air and in water, then update DRY_VAL and WET_VAL.
  4. 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 classNetsWidth
Defaultsignals0.25 mm
Power_5V+5V0.50 mm
Power_9V+9V, PUMP_SW1.00 mm
GroundGND0.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
QtyValueFootprintReferences
4M3MountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
1100uF/10VCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1
110k_contrastConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mmRV1
11N4007Diode_THT:D_DO-41_SOD81_P7.62mm_HorizontalD1
1220RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1
1ARDUINO_UNOConnector_PinHeader_2.54mm:PinHeader_1x10_P2.54mmJ2
1BAT_9VTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ5
1LCD_16x2Connector_PinHeader_2.54mm:PinHeader_1x16_P2.54mmJ1
1PUMPTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ7
1RELAY_COM_NOTerminalBlock:TerminalBlock_bornier-2_P5.08mmJ6
1RELAY_CTRLConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mmJ4
1SOIL_SENSORConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mmJ3

Similar boards

  • 4 layers95 × 76.2 mmDeWille Control, the printed circuit board in 3D

    DeWille Control

    zmeiresearch/DeWille

    A high-performance DIY audio DAC

    171 parts23
  • 2 layers138.8 × 55 mmMuxPi, the printed circuit board in 3D

    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 mmSr jv esp32, the printed circuit board in 3D

    Sr jv esp32

    connorzheng97/srjv

    SR-JV80 Programmable Expansion Card with ESP32 Wi-Fi

    84 parts18
  • 2 layers80 × 60 mmEnvMonitor, the printed circuit board in 3D

    EnvMonitor

    kennySzhucheng/EnvMonitor

    🌡️ 智能环境监测站 | STM32F103C8T6 + FreeRTOS + ESP8266 | 温湿度/光照/测距/OLED菜单/ThingSpeak上云 | 从裸机到RTOS到KiCad PCB全流程

    27 parts10
  • 2 layers125.7 × 97.8 mmQdisk v4, the printed circuit board in 3D

    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 mmLochord hw, the printed circuit board in 3D

    Lochord hw

    kiwifruit0/LoChord

    An open-source version of the popular midi device: HiChord

    91 parts6
  • 2 layers99.9 × 100 mmHL2 Companion, the printed circuit board in 3D

    HL2 Companion

    bnamnaidu/HL2-Companion-board-codec-and-Filter-

    194 parts4
  • 2 layers127 × 71 mmRgb input, the printed circuit board in 3D

    Rgb input

    hoeken/yarrboard-hardware

    Hardware for the Yarrboard open hardware project

    118 parts4GPL-3.0

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).