Overview

OpenReef is a fully automated, PyBadge-controlled platform for colorimetric water quality testing. The system automates the entire assay process from sample preparation through measurement and cleanup, providing accurate phosphate and nitrate measurements for 🐠 Reef aquarium monitoring

Key Features

  • Fully Automated: Hands-off operation from sample to result
  • Dual Assay Support: Phosphate (625nm) and Nitrate (528nm) testing
  • Precision Control: Automated pumps, valves, and timing
  • Open Source: Complete hardware designs, firmware, and documentation
  • Cost Effective: ~$300 total build cost using off-the-shelf components
  • PyBadge Display: Interactive menu and real-time results

πŸ“– Documentation

πŸ§ͺ Assay Protocols

πŸ”§ Hardware

πŸ’» Software


System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          PyBadge Controller             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚ Display  β”‚  β”‚  AS7341 Sensor     β”‚  β”‚
β”‚  β”‚ & UI     β”‚  β”‚  I2C Control       β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚              β”‚
    User Interface  Measurement & Control
         β”‚              β”‚
    β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
    β”‚ Cuvette β”‚    β”‚  Pumps (2Γ—)  β”‚
    β”‚(bubblingβ”‚    β”‚  Valves (3Γ—) β”‚
    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β”‚  Reagents    β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Assay Comparison

Feature Phosphate Nitrate
Chemistry Ascorbic acid method Cadmium reduction + Griess
Wavelength 625 nm (Red) 528 nm (Green)
Range 0-30 ppm POβ‚„ 0-90 ppm NO₃
Reaction Time 5-10 min* 5+ min
Total Time ~12 min ~10 min

*Critical timing - phosphate measurements must be taken within 5-10 minute window


Project Status

🚧 In Development

Completed

  • βœ… System architecture design
  • βœ… Hardware component selection
  • βœ… Assay protocol documentation
  • βœ… Automation sequence design

In Progress

  • πŸ”¨ CAD designs (3D printable enclosure and mounts)
  • πŸ”¨ Calibration procedures documentation
  • πŸ”¨ CircuitPython firmware development
  • πŸ”¨ Hardware assembly guide
  • πŸ”¨ PCB design (optional)

Planned

  • πŸ“‹ Web interface for data visualization
  • πŸ“‹ WiFi connectivity (ESP32)
  • πŸ“‹ Additional assays (ammonia, silicate)

Getting Started

Build Your Own

Estimated Cost: $280-350

  1. Review Documentation
  2. Order Components
  3. 3D Print Enclosure
  4. Assemble Hardware
    • Assembly guide coming soon
  5. Calibrate System
  6. Run Tests!

Contributing

This is an open-source project. Contributions welcome!

  • πŸ“ Documentation: Improvements and corrections
  • πŸ’» Firmware: CircuitPython code development
  • πŸ”§ Hardware: Enclosure designs, PCB layouts
  • πŸ§ͺ Testing: Validation and QC data

License

This project is licensed under the MIT License.

Based on:


Acknowledgments

Built with:

  • AdaFruit - PyBadge, sensors, electronics
  • CircuitPython - Embedded Python platform
  • API Test Kits - Reagent chemistry

Built with passion for the reef keeping and maker communities.

🐠 πŸͺΈ πŸ§ͺ πŸ”¬ πŸ€–