Skip to content

Latest commit

Β 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🦐 Freshwater Aquarium Shrimp Setup Diagram

🌐 Live Demo β†’ webrtcgame.github.io/FreshWaterAquariumShrimpSetupDiagram

An interactive, browser-based system diagram for a fully automated 125-gallon freshwater planted shrimp aquarium with an integrated lava-rock island feature. Every piece of equipment, sensor, and control loop in the build is mapped in a pan-and-zoom Mermaid flowchart, with a collapsible sidebar that provides detailed specs, recommended brands, price ranges, maintenance schedules, and live operating-cost estimates for each component.


πŸ“‹ Table of Contents


✨ Features

Feature Description
Interactive diagram Pan, zoom (scroll / pinch), and double-click to navigate the full system flowchart
Component sidebar Collapsible navigator listing every component grouped by category
Click-to-focus Click any sidebar item to zoom the diagram to that component and highlight it
Hover / tap tooltips Hover over (or tap on mobile) any diagram node for a quick-info popup including status, cost, and key specs
Mobile responsive Slide-in drawer sidebar, touch-friendly controls, and bottom-sheet tooltips on small screens
Maintenance schedules Every component includes daily / weekly / monthly / quarterly / yearly maintenance tasks
Operating-cost tracking Per-component electricity cost (monthly + yearly) based on $0.14/kWh; system totals shown in the sidebar header
Status indicators Each component carries an operational, maintenance, or critical status badge

πŸ— System Overview

The diagram models a 125-gallon (72" Γ— 18" Γ— 24") freshwater planted aquarium optimised for dwarf shrimp. The build is divided into two physical zones β€” everything inside the main tank and everything outside it β€” plus a self-contained Island System sitting above the waterline.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  MAIN TANK  125 GAL                                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”‚
β”‚  β”‚ Substrateβ”‚  β”‚  Plants  β”‚  β”‚  Habitat β”‚              β”‚
β”‚  β”‚ (root    β”‚  β”‚  (COβ‚‚    β”‚  β”‚  (moss,  β”‚              β”‚
β”‚  β”‚  zone)   β”‚  β”‚   zone)  β”‚  β”‚  caves,  β”‚              β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚  breed.) β”‚              β”‚
β”‚                               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β”‚
β”‚   Internal filtration: corner sponges + matten filter   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                        β”‚ water flow (400 GPH pump)
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚  EXTERNAL FILTER LOOP                      β”‚
        β”‚  Pre-filter β†’ Bioreactor β†’ pH Buffer Tower β”‚
        β”‚  β†’ Redox Reactor (Zeolite/Purigen)         β”‚
        β”‚  β†’ Degasser β†’ back to tank                 β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        Side systems: COβ‚‚, Dosing, Lighting, ATO, Water Change,
                      Heating, Air, Power, Quarantine, Island

Water flow, electrical connections, signal lines, and air lines are all shown as separate, colour-coded edge types in the flowchart.


πŸ—‚ Component Categories

The sidebar organises every component into the following categories. Click a category header to collapse/expand it.

Main Systems

ID Component Notes
TK-101 Main Tank (125 GAL) Glass, 72" Γ— 18" Γ— 24"; low-iron preferred
P-201 Circulation Pump (400 GPH, 30 W) Shrimp-safe ceramic shaft; Sicce / Eheim
CONT-101 Parameter Controller pH, temp, conductivity monitoring; Neptune Apex Jr / Hydros

Filtration

ID Component Notes
FIL-201 Prefilter Dual-density foam, 100 Β΅m mechanical
BIO-201 Bioreactor Seachem Matrix + bio rings
MIN-301 pH Buffer Tower Crushed coral / aragonite; critical for soft water
OX-401 Redox Reactor Zeolite + Seachem Purigen (regenerable)
DEG-501 Degasser Trickling tower, outgasses COβ‚‚
FIL-101/102 Corner Sponge Filters Mechanical + biological; shrimp-safe
FIL-103 Matten Filter PPI-20 foam wall; excellent for shrimp

Sensors & Instruments

pH, TDS, Temperature, Dissolved Oxygen, ORP (Redox Potential), Water Level β€” all with recommended calibration schedules and target ranges for shrimp.

Heating & Climate

Dual-heater setup (200 W primary + 100 W backup, set 2 Β°F lower) controlled by an Inkbird digital temperature controller. Backup heater prevents cold-shock during primary failure.

COβ‚‚ System

Full pressurised COβ‚‚ circuit: 5–20 lb cylinder β†’ dual-stage regulator β†’ 12 V DC solenoid (timer-off at night) β†’ ceramic/glass diffuser. Prevents pH swings during dark periods.

Dosing System

Two peristaltic dosing pumps on a programmable timer controller β€” one for GH/KH+ mineral remineralisation (essential for RO water) and one for plant fertiliser. Separate pumps prevent cross-contamination.

Air System

Diaphragm compressor (8–12 L/min, 24/7) with a USB battery-backup pump for power outages, distributed via a 6-way manifold with individual check valves.

Water Management

Component Purpose
ATO Pump (50 GPH) Auto top-off; compensates for evaporation
Water Change Pump (200 GPH) Automates periodic water changes
Mixing Tank (20 GAL) Pre-mix and age new water to stable parameters

Lighting

Full-spectrum LED (80 W, 8-hour photoperiod) on a programmable controller with sunrise/sunset simulation. PAR sensor available for dialling in plant growth light levels (target 30–50 PAR).

Shrimp Habitat

Deliberately designed zones inside the tank:

  • Moss fields β€” primary biofilm / grazing surface (Java moss, Christmas moss)
  • Rock caves β€” cholla wood, lava rock, ceramic tubes for hiding and moulting
  • Breeding colony corner β€” dense plants, minimal flow, no disturbance
  • Feeding station β€” glass dish; uneaten food removed within 2 hours

Quarantine

Dedicated 10–20 GAL bare-bottom tank with its own pump kept completely separate from main-tank equipment. Sterilised between uses with bleach solution.

Power & Control

GFCI-protected outlet strip β†’ UPS battery backup β†’ timer hub β†’ dedicated outlets for pump, heater, COβ‚‚ solenoid, lights, and dosing. All wiring follows aquarium-safe practices.


🏝 Island System

A lava-rock island sits partially submerged and rises above the waterline, creating a humid riparian microclimate within the tank enclosure. It includes its own closed-loop control system:

ISL Temp/Humidity Sensor (ISL-SNS-701)
        β”‚
        β”œβ”€β”€β–Ί Island Temp Controller (ISL-TC-501, Inkbird)
        β”‚         └── controls Basking Spot Lamp (40–60 W)
        β”‚               Target island air: 82–88 Β°F
        β”‚
        └──► Island Humidity Controller (ISL-HC-601, Inkbird IHC-200)
                  β”œβ”€β”€ humidify relay β†’ Misting System (ISL-MIST-401)
                  β”‚       Repti Zoo TR09 or Exo Terra Monsoon Nano
                  β”‚       Target island RH: 70–80 %
                  └── dehumidify relay β†’ Island Fan (ISL-FAN-301)
                          Prevents mould on lava rock

A small submersible waterfall pump (50–80 GPH) routes tank water up through silicone tubing to cascade down the lava-rock face, adding surface agitation, oxygen, and ambient humidity.

A float-switch reservoir level sensor protects the waterfall pump from running dry.

πŸ“„ See island.md for a full component comparison of misting systems (Repti Zoo TR09 vs Exo Terra Monsoon Nano vs Zoo Med ReptiRain) and a recommended bill-of-materials for the island humidity circuit.

πŸ“„ See Humidity Control Relay Setup.pdf for the relay wiring diagram.


πŸ’° Operating Costs

Costs are calculated at $0.14 / kWh and displayed live in the sidebar header. Totals are computed at runtime by summing the operatingCost fields in components/*.json β€” edit the data, not the header.

Budget Cost
Monthly ~$26.23
Yearly ~$310.55

Major contributors:

Component Monthly Yearly
Main heater (200 W, 50 % duty) $12.44 $147.17
LED lighting (80 W, 8 hr/day) $3.63 $42.78
Circulation pump (30 W, 24/7) $3.11 $36.79
Air compressor (10 W, 24/7) $1.04 $12.26
Basking lamp (50 W, 8 hr/day) $2.42 $29.02
All others < $0.50 each β€”

πŸ“ Project Structure

FreshWaterAquariumShrimpSetupDiagram/
β”œβ”€β”€ index.html          # Single-page application shell
β”œβ”€β”€ app.js              # Main entry point β€” diagram render, totals, sidebar toggle
β”œβ”€β”€ sidebar.js          # Sidebar rendering, component details, focus/zoom
β”œβ”€β”€ tooltips.js         # Diagram tooltips (hover / tap)
β”œβ”€β”€ diagram.js          # Mermaid flowchart definition (graphDefinition export)
β”œβ”€β”€ components/         # Component data: manifest.json + one JSON per component
β”‚   β”œβ”€β”€ manifest.json   # Slim index (id, name, desc, status, category)
β”‚   β”œβ”€β”€ schema.json     # JSON Schema for component files
β”‚   └── *.json          # Full specs, costs, brands, maintenance per component
β”œβ”€β”€ styles.css          # Layout, sidebar, tooltip, and responsive styles
β”œβ”€β”€ validate.js         # Node script: schema-validates every component file
β”œβ”€β”€ island.md           # Island humidity system BOM + misting product comparison
β”œβ”€β”€ Humidity Control Relay Setup.pdf  # Island relay wiring reference
└── LICENSE

Key modules

diagram.js exports a graphDefinition string β€” a Mermaid flowchart LR definition containing all nodes and edges. It is divided into named subgraphs:

  • LEGEND β€” visual key for node shapes and edge colours
  • SYSTEM OVERVIEW β€” high-level water-flow loop
  • MAIN TANK & DIRECT COMPONENTS β€” tank, overflow, access
  • INSIDE MAIN TANK β€” substrate, plant zone, internal filtration, habitat
  • OUTSIDE MAIN TANK β€” external filter loop, pumps, COβ‚‚, dosing, ATO, heating…
  • ELECTRICAL DISTRIBUTION β€” power, timers, GFCI, UPS
  • ISLAND SYSTEM β€” island components and their control loop

components.js exports a components object keyed by category name. Each entry is an array of component objects with the shape:

{
  id: 'P_201',
  name: 'Main Circulation Pump (P-201)',
  desc: '400 GPH, 30W, Shrimp-Safe',
  status: 'operational',   // 'operational' | 'maintenance' | 'critical'
  details: {
    specs, priceRange, operatingCost, preferredBrands,
    alternatives, maintenance, notes, suppliers
  }
}

app.js wires everything together:

  1. Initialises Mermaid and renders the SVG from diagram.js
  2. Passes the SVG to svg-pan-zoom for pan / zoom / fit
  3. Populates the sidebar from components.js
  4. Attaches hover and touch event listeners for tooltips
  5. Implements focusOnComponent() β€” zooms to 6Γ— and pans to centre the selected node

πŸš€ Running Locally

The project is a static site with no build step. It uses ES module imports directly in the browser.

  1. Clone the repository:

    git clone https://github.com/WebRTCGame/FreshWaterAquariumShrimpSetupDiagram.git
    cd FreshWaterAquariumShrimpSetupDiagram
  2. Serve the files over HTTP (ES modules require a server, not file://):

    # Python 3
    python3 -m http.server 8080
    
    # Node.js (npx)
    npx serve .
    
    # VS Code
    # Use the "Live Server" extension
  3. Open http://localhost:8080 in your browser.

Note: The diagram is loaded from the CDN (cdn.jsdelivr.net/npm/mermaid@11.6.0) and svg-pan-zoom is loaded from bumbu.me. An internet connection is required unless you vendor these dependencies locally.


πŸ›  Technology Stack

Library Version Purpose
Mermaid.js 11.6.0 Flowchart rendering from text definition
svg-pan-zoom latest Pan, zoom, and fit controls for the SVG
Vanilla JS (ES Modules) β€” Application logic, sidebar, tooltips
CSS3 β€” Layout, transitions, responsive design

No framework, no bundler, no build step required.


🌫 Humidity & Misting Upgrade Notes

island.md documents a comparison of prebuilt misting systems considered for the island, including a full system BOM and cost breakdown:

System Price Best For
Repti Zoo TR09 ~$41 Budget + flexible, includes pump + nozzle
Exo Terra Monsoon Nano ~$70 Premium stability, advanced timer, low noise
Zoo Med ReptiRain ~$53 Simple plug-and-play

Recommended balanced build (~$170–$190): Repti Zoo TR09 misting system + Inkbird humidity controller + Inkbird temp controller + water level controller + timer relay + fan


πŸ“„ License

See LICENSE for details.

Releases

Packages

Contributors

Languages