Skip to the content
PCBKitNew board
2 layers71.5 × 90 mmATmegae Water Controller, the printed circuit board in 3D

An open-source, standalone microcontroller PCB and embedded control system designed to automate water circulation, safety monitoring, and PID-controlled nutrient dosing for hydroponic tomato crops.

Size
71.5 × 90 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
45
Pads
125
Tracks, vias
148, 0
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
17 Aug 2026
Updated
17 Aug 2026

Overview

ATmegae Water Controller is an open-source printed circuit board by OmarAlsai, from the OmarAlsai/hydroponic-tomato-controller repository on GitHub. It is a 2-layer board of 71.5 × 90 mm with 23 parts on 45 nets, routed with 148 tracks and 0 vias.

It is built around the ATMEGA328P-PU, CH340C and LM2596S-12. Its parts include 7 capacitors, 7 connectors, 3 resistors, 3 ICs and 1 diode. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

ATmega328P Automated Hydroponic Tomato Controller

An open-source, standalone microcontroller PCB and embedded control system designed to automate water circulation, safety monitoring, and PID-controlled nutrient dosing for hydroponic tomato crops.


Key Features

  • Onboard ATmega328P MCU: Standalone design featuring dedicated power filtering, crystal oscillator, USB-C interface, and ICSP programming header.
  • Tomato-Optimized Dosing Engine: Pre-calibrated for heavy-feeding fruiting crops (Target EC: 2.2 mS/cm, Target pH: 6.0).
  • Discrete PID Control: Prevents nutrient overshoot by calculating precise dosing pump pulse durations based on concentration drift over time.
  • Hardware Safety Interlocks: Instant emergency pump shutdown triggered by low reservoir water levels to prevent motor dry-burning.
  • Noise-Filtered Analog Sensing: Software median-averaging filter to eliminate electrical noise on pH and EC sensor lines.

Hardware Architecture

ComponentFunction
ATmega328P-PUMain 8-bit Microcontroller running at 16 MHz
CH340CUSB-to-Serial converter for simple USB-C flashing
Relay Driver Channel 1Controls 12V Main Circulation Water Pump
Relay Driver Channel 2Controls 12V Peristaltic Nutrient Dosing Pump
Analog InterfaceIsolated signal routing for pH and EC/TDS probes

Pin Mapping

text
[ ATmega328P ]
  ├─ A0 ──────────► Analog pH Sensor Input
  ├─ A1 ──────────► Analog EC/TDS Sensor Input
  ├─ D2 (Digital) ─► Water Level Float Switch (Internal Pullup)
  ├─ D3 (Digital) ─► Main Circulation Pump Relay
  └─ D4 (Digital) ─► Nutrient Dosing Pump Relay

Parts

23
QtyValueFootprintReferences
50.1 µFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC2, C3, C4, C5, C7
222 pFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1, C6
25.1kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R3
2Conn_01x03_PinConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3, J4
110kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
116MHzCrystal:Crystal_HC49-U_VerticalY1
1ATmega328P-PPackage_DIP:DIP-28_W7.62mmU1
1Barrel_JackConnector_BarrelJack:BarrelJack_HorizontalJ7
1CH340CPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU2
1Conn_01x02_PinConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ5
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ6
1Conn_02x03_Odd_EvenConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ2
1D_SchottkyDiode_THT:D_DO-41_SOD81_P10.16mm_HorizontalD1
1LM2596S-12Package_TO_SOT_SMD:TO-263-5_TabPin3U3
1SW_PushButton_Switch_THT:SW_PUSH_6mmSW1
1USB_C_Receptacle_USB2.0_16PConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1

Questions

How big is the ATmegae Water Controller PCB?

It measures 71.5 × 90 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ATmegae Water Controller use?

23 parts, built around the ATMEGA328P-PU, CH340C and LM2596S-12. 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 ATmegae Water Controller KiCad files?

From the OmarAlsai/hydroponic-tomato-controller repository on GitHub, at the commit this page was made from: the board is hardware/ATmegae_Water_Controller.kicad_pcb and its schematic hardware/ATmegae_Water_Controller.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ATmegae Water Controller design in my own project?

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

Similar boards

  • 2 layers100 × 100 mmRiver sampler, the printed circuit board in 3D

    River sampler

    Aquaflowies/Rotatory-Distribution-System

    combinedtests: tests the combined action of the different components. The fullTest() function tests the entire operation of the system.

    99 parts
  • 2 layers130 × 75 mmAaron, the printed circuit board in 3D

    Aaron

    alcaaron/esi_project

    ENGINYERIA DE SISTEMES: PROJECTE DE CURS Fet per - Aaron Alcalá - Albert Bombí - Marcos García

    64 parts
  • 2 layers185.4 × 152.4 mmPanel, the printed circuit board in 3D

    Panel

    Electro707/PCB-4-In-A-Row

    A soldering kit based on the game 4-In-A-Row

    596 partsMIT
  • 2 layers130 × 75 mmTreasure box main, the printed circuit board in 3D

    Treasure box main

    mtrunzo12/TreasureBox-build

    Build along with a knock-to-unlock toy chest: firmware, KiCad files, parts lists and a parent checklist.

    39 parts
  • 2 layers60 × 60 mmAvrsheild, the printed circuit board in 3D

    Avrsheild

    NotorandXor256/PCBdegins

    this repo have all my repo desin

    22 partsGPL-2.0
  • 2 layers113.8 × 51.6 mmArduino1, the printed circuit board in 3D

    Arduino1

    Papa-Dawg/Custom-PCB

    Custom PCB with a Potentiometer and 7-Segment Display

    68 parts
  • 2 layers80 × 58 mmRadio 2, the printed circuit board in 3D

    Radio 2

    Shya-Bubu/pocket-fm-radio

    This repository contains the complete design and documentation for an FM Pocket Radio project, developed as part of the EE2050 Design Principles and Manufacturing Technologies module at the University of Peradeniya…

    58 parts