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?
Watering and tank level control
Moderators: grovkillen, Stuntteam, TD-er
Re: Watering and tank level control
Some more progress on my side
the max flow for the pump is 66L/min (spec) but 50 measured in my installation
so I think I'll go with https://www.aliexpress.com/item/3290486 ... web201603_
for each valve I've between between 2 and 20 L/min
so I'll think I'll go why https://www.aliexpress.com/item/3269628 ... web201603_
There one thing on which I'd like to get some feedback is the ability of an esp8266 the handle the following things at the same time:
-> GPIO-4, GPIO-5, GPIO-0 GPIO-13: 4 pulse counters
-> Analog: tank level
-> GPIO-12: tank level low (switch at the bottom of the tank ; security)
the max flow for the pump is 66L/min (spec) but 50 measured in my installation
so I think I'll go with https://www.aliexpress.com/item/3290486 ... web201603_
for each valve I've between between 2 and 20 L/min
so I'll think I'll go why https://www.aliexpress.com/item/3269628 ... web201603_
There one thing on which I'd like to get some feedback is the ability of an esp8266 the handle the following things at the same time:
-> GPIO-4, GPIO-5, GPIO-0 GPIO-13: 4 pulse counters
-> Analog: tank level
-> GPIO-12: tank level low (switch at the bottom of the tank ; security)
Re: Watering and tank level control
I've completed my project
There was some changes but the objective was the same, local use with the switches and remote / automatic use with dz I have 2 esp:
There was some changes but the objective was the same, local use with the switches and remote / automatic use with dz I have 2 esp:
- Sonoff 4CHR3 for the On/Off
- Wemos R1D2 for the meters
- the switches to start/stop the pump and open/close the valves
- the meters (flow, usage, tank level, temperature) and alert
Re: Watering and tank level control
All of this with the help of TD-er, grovkillen, Ath, Thomas
Many thanks to you
Many thanks to you

Who is online
Users browsing this forum: No registered users and 10 guests