Skip to content

mzakharo/tubby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 31, 2023
b43d3d3 · Dec 31, 2023

History

68 Commits
Dec 31, 2023
Feb 13, 2023
Dec 31, 2023
Feb 13, 2023
Feb 13, 2023
Feb 12, 2023
Apr 12, 2023
Feb 13, 2023
Feb 12, 2023
Feb 13, 2023
Dec 31, 2023
Apr 12, 2023
Apr 16, 2023
Apr 12, 2023
Apr 12, 2023
Apr 12, 2023
Feb 12, 2023
Feb 12, 2023
Feb 12, 2023
Feb 12, 2023

Repository files navigation

Hot Tub Water Quality Sensor

  • Battery powered ORP, pH sensor for Hot Tub/SPA
  • Free Chlorine/Total Bromine estimate from pH and ORP values
  • Home Assistant Integration
  • pH ATC (Automatic Temperature Compensation)
  • 2024 update: Added Solar Panel

Hardware

Optional Solar Panel Components

Wiring

Firmware

FC (Free Chlorine) ppm Model

Predict Free Chlorine/Total Bromine ppm from pH and ORP sensors.

Build the model: fc_model.ipynb.

Prebuilt model:

Basic script to load and run the model. usage:

python3 predict.py  model_fc.h5 ORP_VALUE PH_VALUE

Convert tflite model to tflite-micro

make gen

Execute tflite-micro model on Native Hardware

make tflite
make
./a.out