I am trying to build a flow totalizer using idt fs1025 [Product link](http://need help with IDT flow sensor FS1025)
and an arduino nano.
So far the first problem i encountered was unstable readings, i tried filtering them out using an exponential filter, which gives decent readings. however the sensor gives the flow rate from 0-7 l/min. i need to calculate total liquid that flows through the flow meter.
So far the first problem i encountered was unstable readings, i tried filtering them out using an exponential filter, which gives decent readings. however the sensor gives the flow rate from 0-7 l/min. i need to calculate total liquid that flows through the flow meter.
I cannot see the code that produces this. Post the code using code tags (the </> button in the editor)!
Conceptually you just have to integrate the flow rate over time.
I have tried using the Megunolink exponential filter for smoothing and it works great.
#include "MegunoLink.h"
#include "Filter.h"
// Create a new exponential filter with a weight of 5 and an initial value of 0.
ExponentialFilter<long> ADCFilter(5, 0);
void setup()
{
Serial.begin(9600);
Serial.println("Exponential Filter");
Serial.println("-----------------------");
}
void loop()
{
int RawValue = analogRead(A7);
ADCFilter.Filter(RawValue);
TimePlot Plot;
Plot.SendData("Raw", RawValue);
Plot.SendData("Filtered", ADCFilter.Current());
delay(100);
}
the first idea that popped was to integrate the data over time, but I'm not quite sure on how to proceed with that on arduino
Hi,
I have similar problem using the sensor.
It seems when the sensor is dry, the Vout is good at 0 volt.
As soon at the sensor is wet (put water in but no flow); the Vout is erratic and has noise ripples
You can try looking at the Vout with a scope.
I contacted IDT suport, it seems they do not have a solution. In my application I did a moving average to suppress the noise ripple. I dont think the sensor is usable in prescision flow measurement.
Have you made any headway on this? I'm trying to figure out the temperature coefficient as the voltage varies greatly at set flow rates for different temperature waters.