

ESP32 Irrigation system
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
1README
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.

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:
- Flip the slide switch to cut the 3.3V supply
- Connect the USB cable to the ESP32
- Upload the firmware via PlatformIO
- 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
| Component | Details |
|---|---|
| ESP32 DevKit V1 | Main microcontroller — WiFi, deep sleep, ADC |
| HW-080 capacitive soil moisture sensor | GPIO 32 (ADC) — triggers pump when moisture is too low |
| MOSFET transistor | Controls the 12V water pump via GPIO 27 |
| 1N4007 diode | Flyback protection for the pump |
| Slide switch | Isolates 3.3V supply during USB programming |
| Power management module | Custom 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— schematicESP32_Irrigation_system.kicad_pcb— PCB layoutESP32_Irrigation_system.kicad_pro— project file
Parts
15| Qty | Value | Footprint | References |
|---|---|---|---|
| 1 | 100 | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1 |
| 1 | 100k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R4 |
| 1 | 100nF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C2 |
| 1 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2 |
| 1 | 1N4007 | Diode_THT:D_DO-41_SOD81_P10.16mm_Horizontal | D1 |
| 1 | 27k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R3 |
| 1 | BAT_MON | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J4 |
| 1 | ESP32 DevKit V1 | ESP32_Dev_Kit_V1:ESP32_30pin | U3 |
| 1 | IRLZ34N | Package_TO_SOT_THT:TO-220-3_Vertical | Q1 |
| 1 | MINI-SPDT-SW | SW_MINI-SPDT-SW:SW_MINI-SPDT-SW | S1 |
| 1 | POWER 3V3 | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J1 |
| 1 | Soil Moisture Sensor | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J6 |
| 1 | Water Pump | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J3 |
| 1 | Water Pump Power Supply | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J2 |
| 1 | 100 μF | Capacitor_THT:CP_Radial_D6.3mm_P2.50mm | C1 |
Similar boards
- 2 layers100 × 50 mm

- 2 layers224.8 × 60.3 mm

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 mm

MKS relay v4
3D-Printing-for-Microfluidics/3D_printer_control
2nd generation 3D printer control software
67 parts3GPL-3.0 - 2 layers

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 mm

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 mm

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 mm

WifiOiler01
volw/wifiOiler
Automatic, distance depending chain oiler for motorbikes with track recording (GPS).
15 parts3GPL-3.0 - 2 layers80 × 20 mm

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.