Maitham Al-rubayeAtakan AralAmin RazaghiArman
Published © Apache-2.0

Underwater Biodiversity Guardian (UBi-Guardian)

Smart edge-AI guardian that protects eggs and larvae by sensing water risks and restoring balance with gentle air bursts.

AdvancedFull instructions provided83
Underwater Biodiversity Guardian (UBi-Guardian)

Things used in this project

Hardware components

Espressif ESP32-S3 dev board
ESP32-S3-WROOM module board. Main controller, runs sensors, AI inference, Wi-Fi, and pump control.
×1
DS18B20 waterproof probes
Measures water temperature at top, mid, and bottom depths.
×3
Barometric BMP180
Monitors air pressure, used for dissolved oxygen proxy calculations.
×1
Air temp/Rh sensor DHT20
Tracks ambient air temperature and relative humidity.
×1
Lux sensor VEML7700
Measures light intensity (lux) for day/night and glare detection.
×1
IR thermometer MLX90614
Reads infrared object & ambient temperature (detects heater lamps).
×1
I2S microphone INMP441
Captures underwater sound, RMS disturbance detection.
×1
TDS sensor board (CQRobot TDS)
Monitors water quality via Total Dissolved Solids (TDS).
×1
relay module 1-Channel
Control the air pump
×1
Mini USB Oxygen Pump
Provides gentle bursts of air to restore oxygen levels.
×1
Power supply module
Regulates power delivery to ESP32 and sensors.
×1
power supply 5.1V
Main power input for the system.
×1
Wiring, cables, capacitors, Diodes, Resistors & waterproof enclosure
×1

Software apps and online services

Arduino IDE
Arduino IDE
Firmware development and deployment for ESP32-S3.
PlatformIO IDE
PlatformIO IDE
Firmware development and deployment for ESP32-S3.
TensorFlow Lite Micro
On-device AI inference (disturbance, tap, flashlight, overheat, etc.).
FastAPI (Python)
Collector server for telemetry ingestion and REST API.
Uvicorn
ASGI server to run FastAPI in production.
Requests (Python)
Sends alerts and telemetry to Discord webhook.
Discord Webhooks
Real-time alert notifications for anomalies and pump recommendations.
Plotly.js / Chart.js (frontend)
Interactive dashboard charts for O₂, micRMS, lux, TDS, and sensor snapshots.
mDNS / WebServer (ESP32)
Local web interface and Wi-Fi setup portal.
Preferences (ESP32 NVS)
Persistent storage for configuration and sensor calibration.
HTTPClient (ESP32)
Telemetry push from device to collector.
CSV / NDJSON logging
Persistent event and telemetry storage for offline analysis.

Hand tools and fabrication machines

Soldering station + soldering wire
For assembling sensor and power connections
Breadboard & jumper wires
Rapid prototyping and testing before printing the PCB..
Multimeter
Measuring voltage, current, and continuity.
Wire cutter / stripper
Screwdriver set
Hot glue gun / epoxy
Fixing sensors for waterproofing.
aquarium scilicon
Fish Tank (Aquarium Tank)

Story

Read more

Custom parts and enclosures

PCB Design

Wiring

Schematics

Underwater Biodiversity Guardian (UBi-Guardian) -- Schema

Code

Underwater Biodiversity Guardian (UBi Guardian)

It is Github repository. Everything explained in read me.

Credits

Maitham Al-rubaye
1 project • 0 followers
Atakan Aral
1 project • 1 follower
Amin Razaghi
1 project • 1 follower
Arman
1 project • 1 follower

Comments