Skip to the content
2 layers57 × 24 mmPower supply, the printed circuit board in 3D

Smart Aquarium Guardian is an ESP32-based IoT aquarium monitoring and automation system for hobbyists and small-scale aquariums.

Size
57 × 24 mm
Copper layers
2
Thickness
1.6 mm
Parts
36
Nets
19
Pads
96
Tracks, vias
127, 16
Pours
77
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
7 Aug 2025
Updated
16 Oct 2026

Overview

Power supply is an open-source printed circuit board by martinquattro, from the martinquattro/SmartAquariumGuardian repository on GitHub, published under the MIT licence. It is a 2-layer board of 57 × 24 mm with 36 parts on 19 nets, routed with 127 tracks and 16 vias.

It is built around the MT3608, TP4056-42-ESOP8 and SS34, with the AO3401A among its other parts. Its parts include 8 resistors, 4 capacitors, 4 diodes, 2 ICs and 2 connectors. It belongs with the power boards of this library.

Main components

4

README

README.md

Smart Aquarium Guardian

Smart Aquarium Guardian is an ESP32-based IoT aquarium monitoring and automation system for hobbyists and small-scale aquariums. It combines real-time sensing, automated feeding, remote telemetry, and a local touchscreen interface to help maintain a healthy aquarium with minimal manual effort.

Overview

This project monitors key aquarium conditions such as water temperature and TDS, supports scheduled feeding, and publishes telemetry to an MQTT broker such as ThingsBoard. It also provides a local user interface built with LVGL so the device can be controlled directly on the hardware.

The system is designed for users who want to:

  • monitor aquarium conditions in real time
  • receive alerts when values move outside safe thresholds
  • automate feeding routines
  • configure and control the device remotely

Key Features

  • Real-time monitoring

    • DS18B20 temperature sensing
    • TDS water quality measurement
    • configurable thresholds and alerts
  • Automated feeding

    • servo-based food dispenser
    • up to 10 daily feeding schedules
    • manual feeding support
  • Connectivity and telemetry

    • Wi-Fi connectivity with automatic reconnection
    • MQTT-based telemetry and remote control
    • access point mode for initial device configuration
  • User interface

    • LVGL-based touchscreen UI
    • live sensor values and status indicators
    • feeding and system controls
  • System management

    • RTC-based time synchronization
    • timezone-aware scheduling
    • EEPROM-backed configuration storage
    • battery-aware power handling

System Architecture

The overall system consists of sensors, a control unit, a local display, and cloud connectivity.

System block diagram

Main building blocks

  • Sensors: temperature, TDS, and power monitoring
  • Embedded controller: ESP32 firmware and local logic
  • Actuators: servo feeder and display backlight/control
  • Connectivity: Wi-Fi, MQTT, and remote configuration
  • Cloud backend: optional ThingsBoard telemetry and command handling

Firmware Architecture

The firmware is organized into logical layers for clarity and maintainability.

Firmware architecture diagram

Layered structure

  • Core: shared abstractions, lifecycle patterns, and platform interfaces
  • Managers: orchestration of system behavior
  • Services: domain-specific logic such as storage and power management
  • Drivers: hardware abstraction for sensors and actuators
  • Connectivity: Wi-Fi, MQTT, and access-point configuration

For more details, see src/core/README.md.

Hardware Requirements

The current implementation targets an ESP32-based hardware platform and uses the following components:

  • ESP32 development board
  • DS18B20 temperature sensor
  • TDS sensor with analog input
  • servo motor for feeding mechanism
  • ILI9341 SPI display with touch support
  • optional RTC and EEPROM modules
  • USB power with battery backup support

Software Stack

  • PlatformIO
  • ESP-IDF
  • C++17
  • LVGL 9.1.0
  • MQTT
  • nlohmann-json
  • Doxygen for API documentation

Getting Started

Prerequisites

  • PlatformIO
  • ESP-IDF 5.1 or newer
  • Python 3.8+
  • Doxygen

Clone the Repository

bash
git clone https://github.com/your-username/SmartAquariumGuardian.git
cd SmartAquariumGuardian

Build the Project

bash
pio run -e prod

Flash the Firmware

bash
pio run -e prod -t upload

Monitor Serial Output

bash
pio device monitor

Configuration

Main configuration values are defined in include/config.h and platformio.ini.

Common settings you may want to customize:

  • GPIO pin assignments
  • MQTT broker address and credentials
  • telemetry update interval
  • sensor thresholds
  • feeding schedules

Security note: avoid committing sensitive credentials to version control. Prefer local configuration files or environment-based secrets for deployment.

Usage

After flashing the device:

  1. power on the ESP32
  2. connect to the device configuration access point if prompted
  3. configure Wi-Fi credentials
  4. connect to the MQTT broker or cloud backend
  5. use the local touchscreen UI or remote commands to interact with the system

The device will begin monitoring sensors, publishing telemetry, and executing scheduled feeds automatically.

Project Structure

  • src: application source code
  • include: project-wide configuration headers
  • framework: shared hardware and utility abstractions
  • components: third-party and project-local components
  • docs: documentation and supporting assets
  • scripts: helper scripts such as documentation generation

Documentation

API documentation is generated with Doxygen.

bash
doxygen Doxyfile

The generated documentation is placed under docs.

License

This project is licensed under the MIT License. See LICENSE for details.

Parts

36
QtyValueFootprintReferences
3MountingHole_2.2mm_M2PowerSupply:MountingHole_2.2mm_M2M3, M4, M5
3MountingHole_2.7mmPowerSupply:MountingHole_2.7mmM1, M2, M6
210uFPowerSupply:C_0402_1005MetricC1, C3
21kPowerSupply:R_0805_2012MetricR5, R6
222uFPowerSupply:C_1206_3216MetricC2, C4
25.1kPowerSupply:R_0805_2012MetricR1, R2
2SS34PowerSupply:D_SMAD1, D4
1100kPowerSupply:R_0805_2012MetricR4
110uHPowerSupply:IND-SMD_2P-L5.0-W5.0L1
1110kPowerSupply:R_0805_2012MetricR7
115kPowerSupply:R_0805_2012MetricR8
12.4kPowerSupply:R_0805_2012MetricR3
1AO3401APowerSupply:SOT-23Q1
1BatPowerSupply:PinHeader_1x02_P2.54mm_VerticalJP1
1Battery_CellPowerSupply:JST_EH_B2B-EH-A_1x02_P2.50mm_VerticalBT1
1FusePowerSupply:Fuse_BelFuse_0ZRE0005FF_L8.3mm_W3.8mmF1
1GREENPowerSupply:LED_0805_2012MetricD3
1MT3608PowerSupply:TSOT-23-6_HandSolderingU2
1PINHD_1x4_FemalePowerSupply:Molex_KK-254_AE-6410-04A_1x04_P2.54mm_VerticalJ2
1REDPowerSupply:LED_0805_2012MetricD2
1TP4056-42-ESOP8PowerSupply:SOIC-8-1EP_3.9x4.9mm_P1.27mm_EP2.41x3.3mm_ThermalViasU1
1TestPointPowerSupply:Pin_D1.3mm_L11.0mmTP1
1USB_C_Receptacle_PowerOnly_6PPowerSupply:TYPE-C-SMD_TYPE-C-6PJ1
1gndPowerSupply:Pin_D1.3mm_L11.0mmTP2
1outPowerSupply:Pin_D1.3mm_L11.0mmTP3
1powerPowerSupply:PinHeader_1x02_P2.54mm_VerticalJP3
1usbPowerSupply:PinHeader_1x02_P2.54mm_VerticalJP2

More from martinquattro/SmartAquariumGuardian

1
  • 2 layers106.7 × 90.2 mmSmart aquarium guardian, the printed circuit board in 3D

    Smart aquarium guardian

    martinquattro/SmartAquariumGuardian

    Smart Aquarium Guardian is an ESP32-based IoT aquarium monitoring and automation system for hobbyists and small-scale aquariums.

    29 parts1MIT

Similar boards

  • 2 layers49.4 × 95.7 mmPhysiowand, the printed circuit board in 3D

    Physiowand

    1tsMS/Physiowand

    91 parts
  • 2 layers29 × 39.5 mmLiPo Charge Boost, the printed circuit board in 3D

    LiPo Charge Boost

    buzzwordExpert/LiPo-Charging-and-5V-Boost-

    1S LiPo Charging and 5V Boost PCB

    23 partsMIT
  • 2 layers150 × 110 mmLab, the printed circuit board in 3D

    Lab

    Yashwanth786/Centralized_Power_Distribution_System

    University EE labs share 10 workbenches between many student groups. Today, a lab staff member must physically walk to each table to switch power on or off, and there is no record of who used which table, when, or for…

    48 parts
  • 2 layers61 × 61 mmESP32 FC, the printed circuit board in 3D

    ESP32 FC

    MAATHES-THILAK-K/ESP32-S3_FLIGHT_CONTROLLER

    A custom-designed flight controller based on the ESP32-S3 module, built for compatibility with the esp-fc firmware and Betaflight-like configuration.

    69 parts7Apache-2.0
  • 2 layers80 × 34 mmDji fcc, the printed circuit board in 3D

    Dji fcc

    nikolaus018/dji-fcc-esp32

    ESP32-S3 firmware that switches a DJI N1 remote to FCC mode over USB (replaces the Android app)

    69 parts3MIT
  • 2 layers30 × 25 mmProject2, the printed circuit board in 3D

    Project2

    devKOff/pcb-lipo-power-management-system

    An integrated PCB power management system for single-cell Li-Po batteries featuring onboard charging, circuit protection, and a DC-DC boost converter with selectable 5V and 12V DC outputs.

    28 parts2
  • 2 layers96 × 74 mmMacroController, the printed circuit board in 3D

    MacroController

    alex1klimovich/nrf52840-macro-controller

    Custom nRF52840 productivity controller for digital artists — PCB, BLE/USB firmware, OLED, haptics, RGB, and enclosure CAD.

    78 parts1
  • 2 layers102.6 × 102.6 mmMini robot2, the printed circuit board in 3D

    Mini robot2

    eliasmonzon/pcb

    circuitos_electronicos

    67 parts1

Questions

How big is the Power supply PCB?

It measures 57 × 24 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Power supply use?

36 parts, built around the MT3608, TP4056-42-ESOP8, SS34 and AO3401A. 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 Power supply KiCad files?

From the martinquattro/SmartAquariumGuardian repository on GitHub, at the commit this page was made from: the board is hardware/kicad/power_supply/power_supply.kicad_pcb and its schematic hardware/kicad/power_supply/power_supply.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Power supply 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).