Watering and tank level control

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
hestia
Normal user
Posts: 90
Joined: 06 Mar 2021, 08:27
Location: Paris

Watering and tank level control

#1 Post by hestia » 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?
Screenshot 2021-04-10 232401.png
Screenshot 2021-04-10 232401.png (149.7 KiB) Viewed 13186 times
Screenshot 2021-04-10 232435.png
Screenshot 2021-04-10 232435.png (123.44 KiB) Viewed 13186 times
Screenshot 2021-04-10 232626.png
Screenshot 2021-04-10 232626.png (170.08 KiB) Viewed 13186 times

hestia
Normal user
Posts: 90
Joined: 06 Mar 2021, 08:27
Location: Paris

Re: Watering and tank level control

#2 Post by hestia » 14 Apr 2021, 23:05

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)

hestia
Normal user
Posts: 90
Joined: 06 Mar 2021, 08:27
Location: Paris

Re: Watering and tank level control

#3 Post by hestia » 02 Dec 2021, 22:14

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
Arrosage_20211202.jpg
Arrosage_20211202.jpg (177.59 KiB) Viewed 8500 times
I have 2 esp:
  • Sonoff 4CHR3 for the On/Off
  • Wemos R1D2 for the meters
Aqua_HW.png
Aqua_HW.png (345.8 KiB) Viewed 8491 times
With messages between, the Sonoff, the Wemos and dz
Aqua_msg.png
Aqua_msg.png (96.4 KiB) Viewed 8500 times
From dz
  • the switches to start/stop the pump and open/close the valves
Aqua_switch.png
Aqua_switch.png (67.95 KiB) Viewed 8500 times
  • the meters (flow, usage, tank level, temperature) and alert
Aqua_meters.png
Aqua_meters.png (449.9 KiB) Viewed 8500 times
I need to finish the smart part of the watering in dz with evapotranspiration ...

hestia
Normal user
Posts: 90
Joined: 06 Mar 2021, 08:27
Location: Paris

Re: Watering and tank level control

#4 Post by hestia » 03 Dec 2021, 00:12

All of this with the help of TD-er, grovkillen, Ath, Thomas
Many thanks to you :D

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Watering and tank level control

#5 Post by TD-er » 03 Dec 2021, 00:28

8-)

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests