Tutorial: Reading Water Flow rate with Water Flow Sensor

Arduino, Seeeduino Serials and mutants. Share your problems and experence on arduino compatible board such as seeeduino/stalker, etc.

Moderators: violet, jessie

Rob Drizzle
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Thu Mar 17, 2011 10:27 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Arduino Uno

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by Rob Drizzle » Thu Mar 17, 2011 10:35 am

Just to be clear (sorry for asking a dumb question)

The breadboard diagram looks to have the power and ground connected together and the power connected to signal at the left of the breadboard... This isn't the case, correct?

Thanks.

-Rob

krizizzy
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Fri Mar 25, 2011 11:23 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Arduino

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by krizizzy » Fri Mar 25, 2011 11:33 am

I just got two sensors and I am kind of disappointed.
I measured the repeatibility of the measurement and it was terrible.
I wanted to use those to measure how much beer I have left in my keg but I am not sure ig those sensors can be used for this.
When the flow is slow (which sometimes happens when you want to avoid foaming) the number of pulses generated by the sensor is about half of what it is when liquid flowing with high velocity. For 0.5l water (i measured the amount passed by puring to the measured device) the difference in number of "ticks" is big I got about 121 tick with slow flow and 240 with water tap fully open...
I think this sensor is not good to use in the systems where you often stop/start the flow.

zws
Pre-kindergarten
Pre-kindergarten
Posts: 28
Joined: Mon May 02, 2011 3:15 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: aham

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by zws » Sat May 21, 2011 11:50 pm

This is a great book that really helped me use this sensor. It also uses an LCD (I used one I bought from seeedstudio, the brick one that they don't have anymore in the shop, I see)

http://www.practicalarduino.com/project ... flow-gauge

I see the author posted the schematics for this project. Unfortunately I don't see arduino sketch and I don't think I'm allowed to post it here. Too bad because the only thing I changed in his sketch was the constant (7.5 instead of 4.5).

But I really believe the book is really worth checking.

zws
Pre-kindergarten
Pre-kindergarten
Posts: 28
Joined: Mon May 02, 2011 3:15 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: aham

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by zws » Tue Jun 28, 2011 6:00 pm

krizizzy wrote:When the flow is slow (which sometimes happens when you want to avoid foaming) the number of pulses generated by the sensor is about half of what it is when liquid flowing with high velocity. For 0.5l water (i measured the amount passed by puring to the measured device) the difference in number of "ticks" is big I got about 121 tick with slow flow and 240 with water tap fully open...

From the book I mentioned "Practical Arduino" :

"There is a slight complication though: most flow-rate sensors do not have a consistent scaling factor across their entire operational range.
At low flow rates the sensor might be impeded more by friction in the bearings, so its output frequency could actually be lower per liter than at higher flow rates. That variation could be corrected in software by applying a different scaling factor depending on the measured pulse rate. However, because the accuracy of inexpensive flow sensors is typically only +/– 10% anyway it doesn't really matter much in practice that the scaling factor deviates slightly at low flow rates."

PS: you can also find his sketch on the link I posted

brakke562
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Fri Feb 18, 2011 8:32 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Buspirate
Location: Finland

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by brakke562 » Sat Jul 23, 2011 5:09 pm

The best possible solution for filling glasses or other "reasonably" sized containers, is to use a dummy measuring container in between the storage container and practical container.

Arrangement goes like this: You have flow sensor and automated valve on bottom of the measuring container. The measuring container is sizes so, that when full, it has the same volume as your practical container (eg a glass or tankard). Another automated valve and another flow sensor is placed on top of the measuring container. The measuring container also needs a hose or tube for replacement air to get liquid flow smoothly in and out of the container. The tube or hose end should be placed higher than the liquid level in storage container, so that it won't overflow during filling. Now you can use your uC of choice to read flow sensors and control the valves.
Procedure is like this: Close valves, open top valve, poll for flow, when no flow, measuring container should be full. Close top valve, open bottom valve to fill the practical container, poll for flow, when no flow, measuring container should be empty. Close bottom valve. Repeat.

With this, one could calculate the remaining liquid in storage container too. As line pressure changes according to the amount of liquid in storage container, tracking the time needed to fill the measuring container would be relative to the amount of liquid still left. Measure time for filling when container is full, maybe some midpoints, and when nearly empty. Or collect a list of times every time the measuring container is filled and create a chart of time/number of fills.

One could also use line pressure, monitor it's change and use time and line size to fill containers accurately.

Qutra
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Thu Sep 22, 2011 11:47 am
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: Water Flow Rate

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by Qutra » Thu Sep 22, 2011 12:20 pm

Hi, I have used your code with the water flow sensor from seedstudio.
When I run the code and slowly pour water into the sensor, I obtain value that exceed the range of the sensor (32 to 500LPM).

I copypasted the code in arduino and the electrical circuit is exactly like the one on the picture. I bought 2 sensor and they both display the same problem.

I would like to know if there anyone else experiencing the same problem? and is it possible that the sensor are broken?

toothless
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Mon Apr 02, 2012 10:47 pm
Are you a staff member of seeedstudio?: no
Which products/projects are your favorite?: g 1/2 flow sensor

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by toothless » Mon Apr 02, 2012 10:54 pm

HEY
I have bought a G1/2 Water Flow sensor . But it gives an output for only upto 3 lpm .
What changes do i have to make to this sensor so that it can measure upto 6 or 7 lpm.
Do i use a more sensitive hall effect sensors so that it is able to capture the faster rotations of the rotor. Could you please suggest a hall effect sensor .
REPLY ASAP PLEASE.

neoroman
Pre-kindergarten
Pre-kindergarten
Posts: 3
Joined: Sun Aug 05, 2012 12:07 am

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by neoroman » Sun Aug 19, 2012 3:56 pm

Thanks for posting.

I'm newbie of seeeduino/arduino.

In this case what the relation between 10k resistor and measuring max LPM?
And is it correct that 10k resistor connect between 5V and 2nd pin of Seeeduino?

priyanshugupta
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Wed Sep 19, 2012 3:24 am

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by priyanshugupta » Wed Sep 19, 2012 3:26 am

I'm trying to connect the G1/2 flow sensor to an Atmel attiny85 chip. I'm having trouble having the chip read the sensor. Are there any tricks i.e. pins I should use or a special way to callout the sensor?

thanks.

evinoth22
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Fri Mar 08, 2013 4:07 pm

Re: Tutorial: Reading Water Flow rate with Water Flow Sensor

Post by evinoth22 » Fri Mar 08, 2013 4:12 pm

Is the amplitude voltage level of pulse signal dependent on the input voltage level? For example if the input voltage is 24 V then will the amplitude level of the pulse be 24 V ?

Post Reply