Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Water flow meter on a KC868-A16
#1
How can I use water flow meter, if the pcf8574 hasn't activates the interrupts, I need doit in C++, I don't have clue
Reply
#2
you can chose analog sensor of flow meter, connect to board's analog input port.
Reply
#3
(09-10-2024, 10:56 PM)admin Wrote: you can chose analog sensor of flow meter, connect to board's analog input port.

What happens is that different amounts of water(liters) are required to complete the well, and a water flow meter is used,
Reply
#4
can you list your requirements details? what do you want to do?
Reply
#5
It is required that exactly the water needed for the process is provided, at a defined temperature, the container cannot be refilled until the water has been provided, then the process restarts, the amount of water can vary depending on the process, there are 6 processes with different amounts of water
Reply
#6
Do you want to test water tank whether have water or "no water"?
Reply
#7
specifications:
1.- fill tank with water
2.- heat water to a certain temperature
3.- when the temperature is correct then water can be supplied
4.- select the liters to be supplied, 10.50, 20.22, 22.50, 30.80, 35.00, 50.50 liters
5.- the selected liters are supplied, only water output, tank filling is not activated
6.- once the water supply is finished, the cycle starts again
Reply
#8
If you want to look at using ESPHome, you can have a look at my config here: 

Main config:   https://github.com/Roving-Ronin/myHomeAs...8-a16.yaml

It also calls the following yaml, located on the same Github repository:

  base-config:    !include common/base-configuration.yaml
#  wifi-config:    !include common/network-wifi.yaml
  ethernet-config: !include common/network-ethernet-lan8720.yaml
  bme280-sensors:  !include sensors/bme280-bus-a.yaml

If you want to use WiFi instead of the Ethernet you need to swap the # out for those lines.
The BME280 sensors will also provide temperature, pressure, humidity (relative and absolute.... you need to look in the sensors/bme280 yaml though and change to suit your location/elevation), and dew point.

The other sensors use a reed switch connected to the water meter that sense a magnet inside the meter dials as it rotates past (5L per pulse iirc), whilst there's another reed sensor attached to a gas meter with its dials rotating 10L per pulse.
For the water tank a liquid pressure sensor, that is lowered into the tank (or well in your case), is used. They are available from: https://www.aliexpress.com/item/33003863661.html  make sure to get the '0-5V' version and then the shortest depth option (i.e. 1m/2m/3m/5m... if you have a 2.5m welll depth, then get the '0-5V 3m version' getting the 5m version will work, but it provides less granularity than the 3m max version.  e.g. each model is 0%-100% so in the 1m version 1cm = 1% full. If you got the 5m version in a 1m depth well, it would only be able to read in 5% changes, given 1% of 500cm = 5cm.

For the water meter it also loads a custom component that tracks the litres used Today / Yesterday / Week / Month / Year.   Whilst for Gas it tracks that and also converts m3 into megajoules (MJ) consumed, using the Heating Value and Pressure Factor variables that you gas provider will typically provide.

Lastly for the water tank (or well) it provides the % full, litres in the tank, level (cm). If you added had a water meter attached to the tank/well, you could use the water meter sensor to track the flow rate, water consumed (today/yesterday/week/month/year) and pulses.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)