ESP32 Projects
Start a build
Markdown

Aquarium Monitor for ESP32

An ESP32 display project involving SD card.

ESP32ArduinoUnrated
Parts and source

Before you start

Check the exact SD card configuration against the upstream wiring or parts list.

Parts, Cost & Where to Buy

Build total pending. Confirm the exact parts and prices first.

Parts to verify. These entries come from the project’s catalog information and may include alternatives or components already built into the board. Check the upstream schematic or parts list before ordering.

Quantity, price and supplier by part
PartQtyUnit (USD)Line totalSupplier
ESP32Example SKU: Espressif ESP32-WROOM-32 Development BoardTo confirmFrom example: $15.002026-12-06—Adafruit
SD cardTo confirmUnpriced—DigiKey search

Reference prices are in US dollars and exclude shipping and tax. Availability and checkout prices may change.

Check the upstream project for hardware revisions

Upstream README

IoT Aquarium Water Quality Monitor

Note: This repository contains the software implementation for my Final Year Project (Tugas Akhir) at Institut Pertanian Bogor (IPB).

An ESP32-based comprehensive water quality monitoring system designed for aquariums. This system continuously reads sensor data, logs historical records, and provides a fully-featured local web dashboard.

Preview

Web Dashboard Hardware Setup Aquarium Integration

Features

  • Real-Time Web Dashboard: View live data through an elegant web interface hosted directly on the ESP32.
  • Sensor Integration:
    • Temperature: DS18B20 digital temperature sensor
    • Turbidity: Analog turbidity sensor
    • pH Level: Analog pH sensor running through an ADS1115 16-bit ADC for high-precision readings.
  • Historical Data Logging: Records data to an SD card every 10 minutes, automatically rotating logs and keeping 7 days of history.
  • Interactive Graphs: The web interface utilizes Chart.js to visualize 7-day historical trends of Temperature, Turbidity, and pH.
  • Configurable Alerts: Set minimum and maximum thresholds via the web dashboard; alerts are stored in EEPROM and trigger an onboard buzzer.
  • Time Synchronization: Uses an onboard DS3231 RTC module, auto-syncing with NTP servers whenever WiFi is available.
  • Data Export: Download CSV logs directly from the dashboard for a single day, the past 7 days, or all historical data.

Hardware Requirements

Wiring Schematic

  • ESP32 Microcontroller
  • DS18B20 Temperature Sensor
  • Analog Turbidity Sensor
  • Analog pH Sensor
  • Adafruit ADS1115 16-bit ADC (for the pH sensor)
  • 16x2 I2C LCD Display
  • DS3231 RTC Module
  • SD Card Module
  • Passive Buzzer
  • Push Button (for switching LCD display modes)
  • 9V Power Adapter

Installation

  1. Open aquarium-monitor.ino in the Arduino IDE.
  2. Install the necessary libraries:
    • WebServer, EEPROM, OneWire, DallasTemperature, LiquidCrystal_I2C, WiFiManager, RTClib, ArduinoJson, NTPClient, Adafruit_ADS1X15
  3. Compile and upload to your ESP32.
  4. On first boot, connect to the AquOptimization WiFi hotspot to configure your local network credentials.
  5. The ESP32 will display its IP address on the LCD. Navigate to that IP in your web browser to access the dashboard.

License

This project is licensed under the MIT License.