Skip to the content
2 layers45.5 × 87.3 mmESP32 Irrigation system, the printed circuit board in 3D

ESP32 Irrigation system

jedrekdomanski/garden-iot

An ESP32-based automated garden irrigation system that measures soil moisture, controls a water pump, and streams telemetry to AWS (API Gateway, Lambda, DynamoDB) with real-time visualization via Grafana Cloud.

Size
45.5 × 87.3 mm
Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
35
Pads
61
Tracks, vias
53, 2
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
7 Jun 2026
Updated
18 Aug 2026

Overview

ESP32 Irrigation system is an open-source printed circuit board by jedrekdomanski, from the jedrekdomanski/garden-iot repository on GitHub. It is a 2-layer board of 45.5 × 87.3 mm with 15 parts on 35 nets, routed with 53 tracks and 2 vias.

It is built around the IRLZ34N. Its parts include 5 connectors, 4 resistors, 2 capacitors, 1 IC and 1 diode. It belongs with the ESP32 boards of this library.

Main components

1

README

hardware/README.md

🔌 Garden Irrigation System — PCB Hardware

A custom-designed PCB built around the ESP32 DevKit V1, created as part of my personal journey into electronics, IoT, and robotics. The board was designed in KiCad 10 after several weeks of self-taught KiCad and electronics study.

PCB 3D Model

Overview

The board's primary purpose is to control a 12V water pump via a MOSFET transistor, as part of the automated garden irrigation system. It integrates power management monitoring, soil moisture sensing, pump control, and a safe programming switch into a single compact board.

Features

Soil Moisture Sensing

The board interfaces with a capacitive soil moisture sensor (HW-080) connected to the ESP32's ADC. The sensor provides real-time soil moisture readings that the microcontroller uses to decide whether to activate the water pump. If moisture drops below the configured threshold, the pump is triggered automatically.

Pump Control via MOSFET

The water pump is switched on and off by a MOSFET transistor (1N4007 flyback diode included for protection against voltage spikes from the inductive pump load). The ESP32 drives the MOSFET gate directly from a GPIO pin.

Power Supply

The ESP32 and board logic are powered by a custom-designed 3.3V solar-powered power management module:

👉 Solar-Powered 3.3V Power Management PCB

The board includes battery voltage monitoring, allowing the firmware to track the power module's battery level.

USB Programming Switch

A slide switch allows safe switching between two modes:

  • 3.3V power on — normal operation, powered by the power management module
  • 3.3V power off + USB connected — firmware upload mode

When flashing a firmware update, the workflow is:

  1. Flip the slide switch to cut the 3.3V supply
  2. Connect the USB cable to the ESP32
  3. Upload the firmware via PlatformIO
  4. Disconnect USB, flip the switch back to restore 3.3V power

This prevents conflicts between the USB power rail and the external 3.3V supply during programming.

Components

ComponentDetails
ESP32 DevKit V1Main microcontroller — WiFi, deep sleep, ADC
HW-080 capacitive soil moisture sensorGPIO 32 (ADC) — triggers pump when moisture is too low
MOSFET transistorControls the 12V water pump via GPIO 27
1N4007 diodeFlyback protection for the pump
Slide switchIsolates 3.3V supply during USB programming
Power management moduleCustom 3.3V solar-powered PCB (see link above)

Design

Designed in KiCad 10 — schematic and PCB layout files are located in this directory:

  • ESP32_Irrigation_system.kicad_sch — schematic
  • ESP32_Irrigation_system.kicad_pcb — PCB layout
  • ESP32_Irrigation_system.kicad_pro — project file

Parts

15
QtyValueFootprintReferences
1100Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
1100kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4
1100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC2
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2
11N4007Diode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
127kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR3
1BAT_MONTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ4
1ESP32 DevKit V1ESP32_Dev_Kit_V1:ESP32_30pinU3
1IRLZ34NPackage_TO_SOT_THT:TO-220-3_VerticalQ1
1MINI-SPDT-SWSW_MINI-SPDT-SW:SW_MINI-SPDT-SWS1
1POWER 3V3TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ1
1Soil Moisture SensorConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ6
1Water PumpTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ3
1Water Pump Power SupplyTerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_HorizontalJ2
1‬‭‬‭‬‭‬‬‭‬‭‬‭‬‬‭‬‭‬‭‬100 μFCapacitor_THT:CP_Radial_D6.3mm_P2.50mmC1

Similar boards

  • 2 layers100 × 50 mmEspled, the printed circuit board in 3D

    Espled

    Yottabits/espled

    THE one and only esp8266 LED Controller

    52 parts6
  • 2 layers224.8 × 60.3 mmDeurnode nieuw, the printed circuit board in 3D

    Deurnode nieuw

    Hans-Beerman/Deurnode_ESP32-PoE

    KiCad design Deurnode for the MakerSpace Leiden, based on the Olimex ESP32-PoE

    38 parts4Apache-2.0
  • 2 layers111.3 × 68.1 mmMKS relay v4, the printed circuit board in 3D

    MKS relay v4

    3D-Printing-for-Microfluidics/3D_printer_control

    2nd generation 3D printer control software

    67 parts3GPL-3.0
  • 2 layersWatch cleaner pcb, the printed circuit board in 3D

    Watch cleaner pcb

    DavidJ-Saving-Time/watch-cleaner

    So this is a very rough draft of code designed to run on an esp32 to control a watch cleaning machine see this YouTube video https://youtu.be/Opr75n8DbYY I'll be adding to this and making it easier for people to use.

    16 parts3MIT
  • 2 layers31.8 × 114.8 mm3DWelderPCB, the printed circuit board in 3D

    3DWelderPCB

    destroyer796/3DWelder

    An overbuilt 3D pen that will use a chc pro hotend and custom dc extruder powered by a power tool battery

    17 parts3MIT
  • 2 layers83.8 × 50.8 mmShunt charge controller, the printed circuit board in 3D

    Shunt charge controller

    grillbaer/solar-power-supply

    Solar power harvesting for micro controller projects with li-Ion battery and highly efficient charge controller

    16 parts3MIT
  • 2 layers80 × 45 mmWifiOiler01, the printed circuit board in 3D

    WifiOiler01

    volw/wifiOiler

    Automatic, distance depending chain oiler for motorbikes with track recording (GPS).

    15 parts3GPL-3.0
  • 2 layers80 × 20 mmSpider dropper, the printed circuit board in 3D

    Spider dropper

    aidtopia/spider_dropper

    Mechanism to "drop" a spider (or other lightweight prop) for Halloween fun

    10 parts2

Questions

How big is the ESP32 Irrigation system PCB?

It measures 45.5 × 87.3 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESP32 Irrigation system use?

15 parts, built around the IRLZ34N. 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 ESP32 Irrigation system KiCad files?

From the jedrekdomanski/garden-iot repository on GitHub, at the commit this page was made from: the board is hardware/ESP32_Irrigation_system.kicad_pcb and its schematic hardware/ESP32_Irrigation_system.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESP32 Irrigation system design in my own project?

Its repository states no licence, so its author keeps all rights: ask jedrekdomanski before reusing the design.