I am using a YFS-201 Flow sensor to measure fluid flow(ed). I am noticing that with change in rate of flow the measured flowed fluid is different.
Why is that?
even with no flow the meter still shows flow, why is that?
I am using a YFS-201 Flow sensor to measure fluid flow(ed). I am noticing that with change in rate of flow the measured flowed fluid is different.
Why is that?
even with no flow the meter still shows flow, why is that?
You have posted 70 times on the forum and created 20 topics. You can no longer claim to be new to the forum. Why have you posted your question like this?
correct, I should have posted a code too. Please delete your reply so I can delete this question. I'll do some more ruminating and then post it with more details.
Flag the original post to the moderators and ask them to delete it.
When you post the question again, don't just add code.
Make a minimal circuit with no unnecessary components and a minimal sketch with no unnecessary code, but which is enough to demonstrate the problem and outputs readings and calculations it is performing. You may find that during this exercise you discover what the problem was. But if the problem persists, post a schematic of your minimal circuit, your minimal code, and example output showing the results you got and explain what you expected to see.
Digital input without the pull-up ?( or down depending on the sensor)
No pull ups or pull downs used. No tutorials suggested a need.
Nope, no sign, no need.
Meter has Hall effect sensor with open collector output, needs 10k pullup resistor to work.
Post code and wiring diagram.
If it is just a spike, that is normal. Somebody next door flushed the dunny. But if it's more, look for leaks or slack code.
It could be that the limitations in accuracy show first when the rate varies, and it also depends on your expectations.
If the sensor requires a pullup resistor, as suggested above, then the input is simply floating and producing random signals.
@hammy @JCA34F @jremington I am using the same wiring and code as what is shown in the link shared above by @hammy , but the digital signal is straight input into the digital I/O of Arduino, no pull ups or pull downs shown in the schematic...
double flow; //Liters of passing water volume
unsigned long pulse_freq;
void setup()
{
pinMode(2, INPUT);
Serial.begin(9600);
attachInterrupt(0, pulse, RISING); // Setup Interrupt
}
void loop ()
{
flow = .00225 * pulse_freq;
Serial.print(flow, DEC);
Serial.println("L");
delay(500);
}
void pulse () // Interrupt function
{
pulse_freq++;
}
(Ahem!) While I have said what I have said about pullups, and now that I look at your diagramme, again, I have, and I think it is normal to have, a 1k in the signal line. I don't think it is vital, but it is good practice to include a low-value current limiting resistor in series with digital connections to external devices.
I think the flow rate may be to blame in the end. Even the data sheet says to expect different pulse frequency for different flow rates.
I think they are pulse rates for different meters , not an individual meter .( I would hope !)
5% suggests an error of 5% span , so error is large at low flows
Prev post deleted in error -doh
It did say :
What hasn’t been mentioned is flow rate - these meters are not accurate at very low flow rates .
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.