cfsbhawkins / tubby

Hot Tub Water Quality Sensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hot Tub Water Quality Sensor

  • Battery powered ORP, pH sensor for Hot Tub/SPA
  • ~ 1 year battery life @ 2 samples per hour
  • Sensor externally mounted, probes placed under the skimmer cover
  • Home Assistant Integration
  • pH ATC (Automatic Temperature Compensation) integrating with Balboa temperature sensor
  • Free Chlorine/Bromine estimate model from PH and ORP values

image

Hardware

Wiring

Firmware

FC (Free Chlorine) ppm Model

Predict Free Chlorine & Bromine ppm from pH and ORP sensors.

Build the model: build_model.py.

Prebuilt models:

  • model_fc.h5: model for predicting FC from ORP/pH

  • model_orp.h5: model for predicting ORP from FC/PH. This one can be used to calibrate your ORP sensor by getting your water lab tested

Basic script to load and run these models. usage:

python3 ./predict.py  model_fc.h5 666 7.6
-> output:  0.83490694
./predict.py model_orp.h5 7.6 0.85
-> output:  667.04565

About

Hot Tub Water Quality Sensor

License:MIT License


Languages

Language:Python 63.6%Language:C++ 28.3%Language:Makefile 8.1%