Page 2 of 4
Re: Water (Pool) Temperature Sensor
Posted: Thursday 11 May 2017 5:42
by aleph0
You're right ! I'll update the diagram !!
I also forgot the pull up resistor (10k) on the data wire of the flow meter. This one is important as running without created some instability problem with the wemos
Regarding the dummies for pH and ORP, they are of type "custom sensors"
I connected +5V to A3 of ads1115 because I had free inputs and thought I'd could be a good idea to monitor Vcc. But it's not very useful indeed, you can safely skip this one
Re: Water (Pool) Temperature Sensor
Posted: Wednesday 21 June 2017 16:29
by vicentix
Hi all,
I'm a big noob at programming and i've just started with Domoticz. I've played with a DS18d20 temperature sensor and relay to activate 220v objects. The only think that is interest me is to pilot the pump automatically monitoring water temperature (calculating next day time needed with the today water average temperature).
In the Aleph0 Domoticz picture, the "Mode filtration Piscine" switch and "Temps de filtration" seems to answer to my needs.
@Aleph0: Coulp you PM me to explain to a south French collegue how your srcipts works ?
Thanks
Re: Water (Pool) Temperature Sensor
Posted: Wednesday 21 June 2017 18:02
by aleph0
Hi ! If you're french and beginer at programming, I suggest you to look at this thread on the french domoticz forum
http://easydomoticz.com/forum/viewtopic.php?f=10&t=3935. Over there, we're discussing about a "light" version of this script, managing only the filtration : It's much easier to implement !
Re: Water (Pool) Temperature Sensor
Posted: Wednesday 21 June 2017 18:06
by aleph0
Regarding this script (the "full" version), I'm still strugling to make it work reliabily. I've had a lot of issues with hardware not handling chlorine or muriatic acid I'm using to regulate pH. I *hope* the most difficult part is now behind me and that I'll be able to publish a working version of the script soon !
The current status is this one :
What works well :
- - Filtering pump management with water temperature
- Chlorine measurement
- Chlorine dosing, consumption reporting and chlorine low tank management
- pH measurment
- Acid consumption reporting and low tank management
What does not yet work well :
- - Acid dosing, the problem is to find the good material for the piping to resist the concentrated acid
- Flowmeter is not reliable, it failed at end of may, so 2 month of life only 
Stay tuned ! This thread is not dead yet !!
Re: Water (Pool) Temperature Sensor
Posted: Wednesday 21 June 2017 18:19
by Derik
Perhaps use can Zwave switches for flow checking, u can measure the power use.
Can you give me some hardware pics of your:
What works well :
- Filtering pump management with water temperature
- Chlorine measurement
- Chlorine dosing, consumption reporting and chlorine low tank management
- pH measurment
- Acid consumption reporting and low tank management
Re: Water (Pool) Temperature Sensor
Posted: Saturday 08 July 2017 20:00
by corederoma82
I am sorry but a simple method to measure only water temperature? (for my aquarium)
Thanks.
Re: Water (Pool) Temperature Sensor
Posted: Saturday 08 July 2017 20:05
by Derik
wrong
Re: Water (Pool) Temperature Sensor
Posted: Saturday 08 July 2017 20:06
by Derik
corederoma82 wrote:I am sorry but a simple method to measure only water temperature? (for my aquarium)
Thanks.
Use a waterproof Dallas sensor... with a esp..
Works simple. cost less
Re: Water (Pool) Temperature Sensor
Posted: Saturday 08 July 2017 22:35
by corederoma82
Derik wrote:corederoma82 wrote:I am sorry but a simple method to measure only water temperature? (for my aquarium)
Thanks.
Use a waterproof Dallas sensor... with a esp..
Works simple. cost less
Ok I see, but for installation and configuration?
Thanks
Re: Water (Pool) Temperature Sensor
Posted: Saturday 08 July 2017 22:39
by Derik
Re: Water (Pool) Temperature Sensor
Posted: Tuesday 08 May 2018 15:09
by multinet
Hello Aleph0
Just a question :
I don't know what is the +5V on the relay board (linked to GNC via 470uF too)
All relay board I've found have only the GND IN1 IN2 IN3 IN4 VCC but no more VCC connector on the side
Can you explain us what is it and where to find this kind of relay board?
Multinet
Re: Water (Pool) Temperature Sensor
Posted: Tuesday 08 May 2018 22:17
by aleph0
Hi ! I'm using this board :
https://www.banggood.com/5V-4-Channel-R ... rehouse=CN but I guess it's a generic board you can find in many places.
If you look closely at the pictures, you'll find a blue jumper on the right of the board, connecting Vcc with "JD-Vcc". Vcc is used to power optocouplers and JD-Vcc to power the relays. In many application, it's just fine to keep the jumper on. But in my application, I need 3.3V for optocouplers to be driven directly by the wemos and 5V for relays. That's why I had to open that jumper to connect 3.3V to Vcc and 5V to JD-Vcc
By the way, I just realize that I have a mistake on my diagram. 5V must be connected on JD-Vcc of the relay board, not 5V. I'll update the diagram accordingly
Re: Water (Pool) Temperature Sensor
Posted: Tuesday 08 May 2018 22:26
by multinet
Hello Aleph0
Thanks for your answer
i’m Interrested in having an up to date diagram
Including the correction on relay board and the correction
On the inverted A0 A1 ph/orp probe and the pull-up 10k on data Flow meter
I will make my installation soon I receive all hardware

Multinet
Re: Water (Pool) Temperature Sensor
Posted: Tuesday 08 May 2018 22:35
by aleph0
I just finished to publish the updated diagram. Just refresh your browser page with the diagram picture and you'll get the new one
Re: Water (Pool) Temperature Sensor
Posted: Wednesday 09 May 2018 10:49
by multinet
Excuse me Aleph0 not sure to understand how to get the updated diagram : on page 1 of this thread the diagram seems to be not updated even if I clear browser cache
Thanks for your answer
Multinet
Re: Water (Pool) Temperature Sensor
Posted: Wednesday 09 May 2018 11:02
by aleph0
Re: Water (Pool) Temperature Sensor
Posted: Wednesday 09 May 2018 19:53
by randytsuch
Aleph
Wondering how your system is working?
A status update would be great.
I specifically curious about how the orp sensor has performed over time.
I'm thinking about adding an orp sensor to my pool setup. Currently I have an Wemos ESP like you, but it just controls the pump and heater.
For now, I'd just monitor orp, and then I'll consider adding the chlorine pump later.
Thanks
Randy
Re: Water (Pool) Temperature Sensor
Posted: Wednesday 09 May 2018 19:56
by multinet
Thanks Aleph0
last (but not least) question : the 10k pull up on debitmetre is on the green wire before the HV3 connector of the level shifter ?
Many thanks for all your sharings
Multinet
Re: Water (Pool) Temperature Sensor
Posted: Thursday 10 May 2018 16:33
by multinet
Redox and PH probe a successfully plugged to wells :
Maybe I have to change the « custom sensor » to another type of sensor , but not sure
@Aleph0 : my next step is to install the 2 pump but I wonder how you link the pump to the pool system ?
Multinet
Re: Water (Pool) Temperature Sensor
Posted: Friday 11 May 2018 10:49
by aleph0
@randytsuch :
My system has been operating the filtration since 2016 and chlorine/pH since last year. filtration is now a mature code, handling most of the bugs that can happen quite well.
chlorine/pH is still a work in progress, despite good result achieved last year. Main difficulty is to find proper material for acid dosing pipes. I first used silicon, they were worn out in a week. Then I used latex, they lasted half a season. I'm now using pharmed BPT (
https://www.aliexpress.com/item/Perista ... 97655.html), we will see the result over time. Regarding chlorine, silicon hose are OK

and we need to use polyethylene fitting, polypropylene doesn't handle the chlorine. for acid, I don't use fittings at all, but a single tube from the tank to the injection valve through the pump. My first idea of injecting at the input of filtration pump proved to be wrong : occasionally, the peristaltic pump stops in a position where chlorine can flow through the pump. In that case, chlorine is sucked out of the tank by the underpressure of filtration pump. I had to move the injection to the output of the filtration pump and use non return valves (see next post) to prevent pool water to go into the chlorine tank when peristaltic pump stops in a non-closed position. With this setup, it works quite well, the little pumps are giving me ~1,5ml/s when they are working against the filtration pump pressure which is OK for my pool size.
Measurement are fine using ADS1115 + phidget 1130 and generic probes from aliexpress. Some friends on the French forum are experiencing difficulties with salty water and electrolyser, we're still investigating to find out the problem. In my setup, it's OK : measurement are stable over time and reliable. I only need to ignore them during injection as pumps creates slight variation in the +5V which interfere with the measure.
Next problem has been to find a good strategy for dosing. I'm now using the following :
- Filtration is setup to end with the sunset, duration is calculated according to the water temperature
- During the first half of filtration, I adjust pH with acid dosing pump using only proportional feature of a PID controller, and letting 30min after an injection to properly mix acid and water before making another dosing attempt. The 30min has to be adjusted for the pool mixing time
- I noticed it's useless to send chlorine when the sun is high, as UV is destroying it almost immediately. So I start dosing chlorine only 3h before sunset. I'm using Proportional + a bastard Derivative feature of a PID controler : If ORP is going down, D is boosting the dose to inject. if ORP is going up, we don't inject again until stabilisation. And in any case, I keep the 30 min mixing time between two injections
- I have strong hardware and software checking to be sure chlorine and acid pumps can never run at the same time.
With this strategy, I already achieve better result than manual adjustment of water. It still can be improved to get a good regulation. Here are the result I got last year :
