TECHNICAL CHARACTERISTICS
Water pressure = 1.75MPa (Max)
Input flow from 20 to 500L / min ± 3%
Working voltage 4.5-15V CD (Red wire)
Maximum current 15mA (5VDC)
Insulation resistance> 100M ohm
Inlet and outlet tube: 3 inches
Material: Aluminum Body; PA66 Nylon turbine; SUS304 steel Axes
Frequency of flow Hz (vertical detection) F = 0.05 * Q Where Q = liters / min
where Q is water flow
Working temperature -20 ° C to + 60 ° C
High pulse output> 4.7V (5V input voltage) (Yellow wire)
Low pulse output <0.5 V (input voltage 5V)
The duty cycle of the output pulses of 50% ± 10%
Internally it has a magnetic field Hall effect sensor that detects the movement of the blades that is generated with the passage of the liquid. Delivery to the output square pulse signal whose frequency corresponds to the flow of the liquid.
High pulse output> 4.7V (5V input voltage) (Yellow wire)
Low pulse output <0.5 V (input voltage 5V)
Such a square wave should be easy to read and interpret using a nodemcu or arduino but you will need to shift the voltage below 3V3 if using a nodemcu using either a level shifter or resistor divider
when using a similar water flow sensor with a PIC24 I used the External clock from TxCK pin facility to drive a timer which would count pulses - another timer would interrupt at regular intervals to read the water flow timer and count pulses per second, etc
can the NodeMCU timers be driven externally ?
UKHeliBob:
Such a square wave should be easy to read and interpret using a nodemcu or arduino but you will need to shift the voltage below 3V3 if using a nodemcu using either a level shifter or resistor divider
i didn't work with square waves and duty cycles could I've an example (I'm not an expert at all :D)
level shifter is to reduce the 5v to 3.3v for the nodemcu
connect a hose, a valve and a container.
use a timer , maybe the Arduino itself
and run the water for some exact time.
them measure the volume of water
based on the volume and the time, the flow can be determined.
based on the flow measured and flow reported,
change the flow calibration factor.
dave-in-nj:
connect a hose, a valve and a container.
use a timer , maybe the Arduino itself
and run the water for some exact time.
them measure the volume of water
based on the volume and the time, the flow can be determined.
based on the flow measured and flow reported,
change the flow calibration factor.
So the thing I need to update is "4.5" factor based on my testing
the only issue that the sensor diameter is 3 inches and it should be vertically with the water comes up to the sensor.
If you are going to count pulses / time, use LPM = pulses per second * 20.
If time / pulses, LPM = 20000 / millis().
For example: 10 pulses in 1 second = 200 LPM, 100 millis() per pulse = 200 LPM.
In @dave-in-nj's program, calibration factor would be 0.05.
I would agree that lab calibrating a sensor will be difficult, but you also miss the criteria for calibration.
straight runs of pipe, both before and after, to eliminate turbulence.
enough pipe to establish the Reynolds Number accurately and repeatedly
The field mounted unit would then also be required to have the same straight run of pipe.
probably a flow straightener would be needed to pre-condition the incoming flow.
I would totally dismiss any idea of accuracy. You cannot supply a low cost device to replace an actual instrument and expect similar accuracy.
The best you could hope for is to install and then run the test of volume over time and adjust the unit for field calibration.
Do that over at least 4 points, 1/4, 1/2, 3/4 full flow and create a curve.
If things are exactly where you expect, you can extrapolate the other points.
If they do not fit as expected, then more points in between would be needed.
From part to part, you might find 20% variation in readings.
The reason an actual instrument cost so much is that dimensions are exact and machined, not cast surfaces
Bearings and seals are high quality, Moving parts are balanced and weighed and polished, etc
Even then, individual instruments are supplied with calibration tables to account for differences in manufacturing.
a 'custody transfer' rated turbine flow meter will cost more than a new car. But it is also a precision instrument.
by all means, use the device, but do not put high expectations on long term accuracy or accuracy over a range of flows and flow conditions.