Watering and tank level control
Posted: 10 Apr 2021, 23:32
Hi dear community!
My project is about watering my garden automatically and control my tank level, and I’d like to have your advice on it…
I’ve already done with Arduino IDE (and difficulties) the tank level part with Wemos D1 R1 and would like to extend it to watering.
I’ve also bought a Sonoff 4CHR3 to make some trying.
There is a pump to take the water from the tank to the garden! I have 3 spots to water.
I’d like to have a control from Domoticz for instance to compute how much water give, but also have an independent system in case of issue with Dz.
All the electrical parts (ESP, pump, valves, flow meters) are inside, with the main and Wi-Fi.
I’ve designed the following:
Wemos : tank level, flow meter (the 3 spots + the global), temperature (no link with watering!)
-> GPIO-4, GPIO-5, GPIO-0 GPIO-13: pulse counter to get the flow with flow sensor like
https://fr.aliexpress.com/item/32891176 ... Title=true
-> Analog: tank level
-> GPIO-12: tank level low (switch at the bottom of the tank ; security)
Sonoff 4CHR3: to on/off the watering for each spot and the pump
-> GPIO-0, GPIO-9, GPIO-10, GPIO-14: switches
-> GPIO-12, GPIO-5, GPIO-4: relays, 3 Solenoid Valve like
https://ussolid.uk/1-2-brass-electric-s ... viton.html
-> GPIO-15: a relay to switch the pump
With the architecture, if there is an outage, the pump stops and the valves close.
When the main is back, at the start of the Sonoff, all relays are closed (pump and valves)
Before going to the software part:
Do you have any comments on this architecture?
Will the Wemos be able to manage the 4 pulse counters?
Are the GPIO chosen are the good ones? (I made a lot of tries before having something that seems to work)
Any advice regarding the flow sensor, the valves?
My project is about watering my garden automatically and control my tank level, and I’d like to have your advice on it…
I’ve already done with Arduino IDE (and difficulties) the tank level part with Wemos D1 R1 and would like to extend it to watering.
I’ve also bought a Sonoff 4CHR3 to make some trying.
There is a pump to take the water from the tank to the garden! I have 3 spots to water.
I’d like to have a control from Domoticz for instance to compute how much water give, but also have an independent system in case of issue with Dz.
All the electrical parts (ESP, pump, valves, flow meters) are inside, with the main and Wi-Fi.
I’ve designed the following:
Wemos : tank level, flow meter (the 3 spots + the global), temperature (no link with watering!)
-> GPIO-4, GPIO-5, GPIO-0 GPIO-13: pulse counter to get the flow with flow sensor like
https://fr.aliexpress.com/item/32891176 ... Title=true
-> Analog: tank level
-> GPIO-12: tank level low (switch at the bottom of the tank ; security)
Sonoff 4CHR3: to on/off the watering for each spot and the pump
-> GPIO-0, GPIO-9, GPIO-10, GPIO-14: switches
-> GPIO-12, GPIO-5, GPIO-4: relays, 3 Solenoid Valve like
https://ussolid.uk/1-2-brass-electric-s ... viton.html
-> GPIO-15: a relay to switch the pump
With the architecture, if there is an outage, the pump stops and the valves close.
When the main is back, at the start of the Sonoff, all relays are closed (pump and valves)
Before going to the software part:
Do you have any comments on this architecture?
Will the Wemos be able to manage the 4 pulse counters?
Are the GPIO chosen are the good ones? (I made a lot of tries before having something that seems to work)
Any advice regarding the flow sensor, the valves?