⚠️ This forum has been restored as a read-only archive so the knowledge shared by the community over many years remains available. New registrations and posting are disabled.

All times are UTC + 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Arduino Dual Flow Meter
PostPosted: Nov 4th, '14, 10:19 
Xtreme Contributor
Xtreme Contributor
User avatar

Joined: Jul 18th, '13, 23:21
Posts: 171
Location: Texas
Gender: Male
Are you human?: I'm a meat popsicle.
Location: Texas
Here is a dual flow meter I threw together using an Arduino. I'm building a CHOP2 DWC system and will have a flow meter on the FT input and one on the GB input. There is plenty more info on what I'm building in my system thread below.



http://youtu.be/110fMAtmgmk?list=UUEAh1tW0nDM3dqpOkZXCAyA


Top
 Profile  
Reply with quote  
    Advertisement
 
PostPosted: Nov 5th, '14, 05:08 
Xtreme Contributor
Xtreme Contributor
User avatar

Joined: Jul 18th, '13, 23:21
Posts: 171
Location: Texas
Gender: Male
Are you human?: I'm a meat popsicle.
Location: Texas
Well, the dual flow meter works great, but the 1" flow sensors suck. I have it installed and it is restricting the flow of my system to 6.2 gallons/minute. The spec says these things can do 60 liters/minute max, which is around 15 gallons/minute. I'm guessing my pump isn't producing enough pressure. Oh well, back to the drawing board. And back to HomeDepot to pick up a few male adapters so I can take these things back out of my system . . .


Top
 Profile  
Reply with quote  
PostPosted: Nov 5th, '14, 06:00 
In need of a life
In need of a life

Joined: Jul 2nd, '14, 14:59
Posts: 1848
Images: 0
Location: Peakhurst - Sydney
Gender: Male
Are you human?: Thought I WAS
Location: Sydney
What do you see as the advantage in knowing the actual flow rates..?

Do you plan to use the measurements for an alarm purpose ..?
..
.


Top
 Profile  
Reply with quote  
PostPosted: Nov 5th, '14, 06:41 
Xtreme Contributor
Xtreme Contributor
User avatar

Joined: Jul 18th, '13, 23:21
Posts: 171
Location: Texas
Gender: Male
Are you human?: I'm a meat popsicle.
Location: Texas
BuiDoi wrote:
What do you see as the advantage in knowing the actual flow rates..?

Do you plan to use the measurements for an alarm purpose ..?
..
.



Well, I'm building sort of a research system and the flow rates into the fish tanks and grow bed are something I want to be able to twiddle with. For instance, each fish tank has a Venturi on the input line. Amazingly, they were still producing air, although not an optimal amount, even at 3.1 gallons/minute each.

I also plan on data logging the values, so yes, if the flow ever dropped to zero I'd know something went wrong.


Top
 Profile  
Reply with quote  
PostPosted: Nov 6th, '14, 20:47 
Xtreme Contributor
Xtreme Contributor
User avatar

Joined: Jul 18th, '13, 23:21
Posts: 171
Location: Texas
Gender: Male
Are you human?: I'm a meat popsicle.
Location: Texas
For anyone who is interested, here is the code:

Code:
// Copyright (c) 2014 Jeff Barriault
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software
// and associated documentation files (the "Software"), to deal in the Software without restriction,
// including without limitation the rights to use, copy, modify, merge, publish, distribute,
// sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
// NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
//
// Interupt driven liquid flow rate sensor
// Connect signal (yellow) line to arduino digital pin 2/3. red to vcc and black to gnd.
#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 7, 6, 5, 4);

int ftPin = 2;
int gbPin = 3;

volatile int pulseCount;

float calFactor = 4.8;
float convFactor = 3.78541178; // 1 US gallon per minute = 3.78541178 liters per minute
float flowRate;
unsigned int frac;

void increment()
{
  pulseCount++;
}

float getFlowRate(int interrupt)
{
  pulseCount = 0;
  attachInterrupt(interrupt, increment, RISING);
  sei();          //Enables interrupts
  delay (1000);   //Wait 1 second
  cli();          //Disable interrupts
  detachInterrupt(interrupt);
  return ((pulseCount / calFactor) / convFactor); // convert to GPM
}

void setup()
{
  pinMode(ftPin, INPUT);
  pinMode(gbPin, INPUT);
 
  lcd.begin(16, 2);
}

void loop ()   
{
  flowRate = getFlowRate(0);

  lcd.setCursor(0, 0);
  lcd.print("FT: ");
  lcd.print(int(flowRate), DEC);
  lcd.print(".");
  frac = (flowRate - int(flowRate)) * 10;
  lcd.print(frac, DEC);
  lcd.print(" GPM     ");
 
  flowRate = getFlowRate(1);

  lcd.setCursor(0, 1);
  lcd.print("GB: ");
  lcd.print(int(flowRate), DEC);
  lcd.print(".");
  frac = (flowRate - int(flowRate)) * 10;
  lcd.print(frac, DEC);
  lcd.print(" GPM   ");
}


Top
 Profile  
Reply with quote  
PostPosted: Nov 6th, '14, 20:59 
Xtreme Contributor
Xtreme Contributor
User avatar

Joined: Jul 18th, '13, 23:21
Posts: 171
Location: Texas
Gender: Male
Are you human?: I'm a meat popsicle.
Location: Texas
Oh, almost forgot. I threw together another quick video of the sensors installed:



http://youtu.be/zBUnIGA7vwM


Top
 Profile  
Reply with quote  
PostPosted: Nov 9th, '14, 04:15 
Xtreme Contributor
Xtreme Contributor
User avatar

Joined: May 17th, '14, 07:21
Posts: 180
Gender: Male
Are you human?: YES
Location: Vancouver BC Canada
Nice project. Thanks for sharing.

What pump are you using and what his the height differential? I know from my own experience that if you are high on the pump head height curve, adding just one more 90 can severely affect flow rate.


Top
 Profile  
Reply with quote  
PostPosted: Nov 9th, '14, 08:11 
Xtreme Contributor
Xtreme Contributor
User avatar

Joined: Jul 18th, '13, 23:21
Posts: 171
Location: Texas
Gender: Male
Are you human?: I'm a meat popsicle.
Location: Texas
Chiumanfu wrote:
Nice project. Thanks for sharing.

What pump are you using and what his the height differential? I know from my own experience that if you are high on the pump head height curve, adding just one more 90 can severely affect flow rate.


I'm using a 2100 GPH cyclone pump by Alpine. My total head is less than 48".


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group
Portal by phpBB3 Portal © phpBB Türkiye
[ Time : 0.046s | 14 Queries | GZIP : Off ]