Instead of performing regular checks with tester kits to maintain adequate pH and chloride levels in our (small) swimming pool, I decided to build a project that monitors the water continuously and registers the data online so I can easily inspect it.
Although quite expensive, I decided to go with the pH and ORP kits by atlas-scientific.com. Mind that ORP is not a direct measurement of free chlorine. It's an indication of how well the sanitizer (like chlorine) can perform. The ORP value is influenced by many factors, like free chlorine, pH and cyanuric acid. You can find more info in the comments and the included links.
The choice of microcontroller was easy since I'm a big fan of the Particle Photon and I needed WiFi connectivity anyway to send measurements to an online database. I threw in an additional temperature sensor and added a small solar panel to keep the device running autonomously.
The Photon firmware boots the device every 5 minutes and takes a series of measurements during one minute: pH, ORP, temperature, battery charge and WiFi strength. The average of each measurement is sent as an event to the Particle cloud where an integration made by Particle takes care of forwarding those events to the Google pub/sub service. On the Google cloud platform, I have a cloud function that stores the value in a datastore.
I'm now building the web app to visualize the measurements online.... to be continued!
All the code can be found in the linked Github repository. Have fun!
1 / 2 • First setup at our pool