Skip to content

BUG Wrong Flow Data??? #12

@nilbest

Description

@nilbest

Describe the bug
I think there is a significant error somewhere in the Code.
But only to how to read the flow Data. I tested today the code with a 10L bucket. With a contestant flow in the bucked.
But the Flow Rate dropped significantly. My stopped time was around 54secs for the 10L bucked to fill up.
The Result shown on the serial Screen told me by using getFlowRate_s a Number constant lower than 0.00 and the number for l/min was also never peaking over 1.11.
The Flowrate was constantly dropping, witches seems auspices to me. (Because I only opened the valve in one go and I also closed it in one go)
However, the measurement of the Amount was quite accurate.

To Reproduce
Steps to reproduce the behavior:
Measure the FlowRate with a 10L Bucked and stop the time how long it will take to fill up.
Check the Time it took and how much it filled up and compare that with the Data the program Tells you...
Recalculate the flow rate with your measured Time and the amount the bucked is filled. Now you get your average flow Rate.

PicturesOf the Test Setup:
Setup_1
Setup_2

Pictures of what I measured:
Filled_Bucked_after_Time

Stopped_Time

What I calculated:
What_I_calcilated

Expected behavior
To get some Flowrate near my calculations...

Screenshots
My main.cpp void loop() Code I used for the fast test
Simple_Test_Code

How the test started:
Screenshot_Start

How the Test ended:
Screenshot_End

IDE and its version:

  • Arduino (2.1.0)
  • PlatformIO (3.4.4)

Device

  • Arduino Uno
  • YF-S201 FlowSensor

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions