Modular Aquarium Management System

🐟 IoT · Aquaculture · Automation

Smart Monitoring for Healthier Aquariums

Reliable, scalable, and affordable aquarium automation for small and medium fish vendors — powered by ESP32 sensing, secure MQTT messaging, and a realtime web dashboard.

Live Stack
ESP32 Secure MQTT Node.js API React Dashboard MongoDB InfluxDB
TelemetryRealtime streaming
AutomationRelay + rule engine
ReliabilityFail-safe thresholds

🌡️

Sensor Fusion

Temperature, pH, ORP, EC, salinity, and water-level insight in one modular kit.

⚙️

Automated Control

Relay-driven pumps, heaters, and filtration triggered by safe thresholds.

📊

Realtime Dashboard

Live MQTT ingestion with Socket.IO updates and alert-ready feeds.

🏪

Vendor Ready

Low-cost, scalable, and built for the daily operations of small vendors.



Team


Project Snapshot

The Modular Aquarium Management System is an IoT-based platform that continuously monitors aquarium water quality and automates corrective actions in real time. The solution is designed for practical field use, especially for small and medium-scale pet fish vendors who need a low-cost but dependable way to maintain healthy tank environments.

What this system does

Table of Contents

  1. Introduction
  2. Problem Statement
  3. Objectives
  4. Solution Architecture
  5. System Workflow
  6. Hardware and Software Design
  7. Implementation Stack and Modules
  8. Backend Services and API
  9. Firmware Logic and MQTT Protocol
  10. Data Storage and Security
  11. Testing and Validation
  12. Detailed Budget
  13. Impact and Future Improvements
  14. Links

Quick Navigation


Introduction

Maintaining safe water quality across multiple tanks is difficult when monitoring is done manually. In many aquarium vending environments, parameter checks are infrequent, corrective actions are delayed, and environmental changes can go unnoticed for hours. This directly affects fish health and increases operational risk.

This project introduces a Modular Aquarium Management System that combines sensor monitoring, automation logic, and IoT connectivity to maintain stable tank conditions. The system continuously measures parameters such as temperature, pH, ORP, EC, salinity, and water level, then applies rule-based control to relevant actuators. The modular design allows the platform to start small and scale as required.

↑ Back to Top


Problem Statement

Small to medium-scale fish vendors commonly experience:

There is a clear need for an affordable, deployable, and easy-to-extend smart monitoring and control system.

Back to Top


Objectives

Back to Top


Solution Architecture

The platform uses a centralized control model around an ESP32 controller, connected to multiple sensors and relay-driven actuators. Data is sampled from sensor modules, validated and processed by embedded logic, and then used to trigger local control actions. The same data can be transmitted for remote monitoring and alerting.

The architecture is intentionally modular. Sensor modules and control capabilities can be added or removed without redesigning the full platform, making it suitable for varying tank sizes and vendor budgets.

Main Architectural Components

Back to Top


System Workflow

  1. Sensor modules periodically acquire water-quality measurements.
  2. ESP32 firmware filters, calibrates, and validates readings.
  3. Rule engine compares readings against safe operating thresholds.
  4. Actuators are switched via relays when corrective action is needed.
  5. Processed data is published for visualization and long-term monitoring.
  6. Alerts are generated for abnormal or persistent unsafe conditions.

Back to Top


Hardware and Software Design

Hardware Design

Central Control Unit

Sensors Used

Actuators

Actuators are controlled through a relay board:

Power Management


Software Design

Back to Top


Implementation Stack and Modules

This project is implemented as a complete multi-layer system:

1) ESP32 Firmware Layer

2) Backend Service Layer

3) Data Layer

4) Frontend Layer

Back to Top


Backend Services and API

Service Capabilities

Main API Groups

Realtime Events

Back to Top


Firmware Logic and MQTT Protocol

ESP32 Control Behavior

MQTT Topics Used

Payload Pattern

Back to Top


Data Storage and Security

Data Model

Data Flow Design

  1. Firmware publishes sensor packets to MQTT.
  2. Backend MQTT service validates and maps sensor fields.
  3. Tank live status updates in MongoDB.
  4. Time-series points write to InfluxDB.
  5. Frontend reads status/history and listens for realtime events.

Security and Reliability Measures

Back to Top


Implementation Highlights

Back to Top


Testing and Validation

Hardware Testing

Software Testing

Results Summary

Back to Top


Detailed Budget

Item Quantity Unit Cost Total
ESP32 Development Board 1 4,000 LKR 4,000 LKR
DS18B20 Temperature Sensor 1 800 LKR 800 LKR
pH Sensor Module 1 5,000 LKR 5,000 LKR
ORP Sensor Module 1 6,000 LKR 6,000 LKR
EC Sensor 1 6,500 LKR 6,500 LKR
TDS Sensor 1 2,500 LKR 2,500 LKR
Float Switch 1 600 LKR 600 LKR
Relay Module 1 1,200 LKR 1,200 LKR
Power Supply & Regulators 1 3,000 LKR 3,000 LKR
Miscellaneous - 2,000 LKR 2,000 LKR

Estimated Total: ~ 34,600 LKR

Back to Top


Impact and Future Improvements

This project demonstrates that a practical and cost-effective smart aquarium platform can significantly improve maintenance consistency, reduce manual effort, and protect fish health through timely intervention.

Planned future extensions include:

Back to Top


Back to Top