Hi everyone. As urologist I want to build a uroflowmeter by myself. It has to be versatile.
A uroflowmeter can be built as a scale. Thaïs scale si already built with a load cell.
My questions are :
How to display the flow on a lcd or tft screen?
The flow will be calculated in mL per second as the weight difference between each second during the flow.
The display has to show the total volume that has been urinated (e.g the weight that won’t change in the end , or the same weight during 10 seconds or so determining the end of micturiction.)
The display has to show Max flow and mean flow.
And , the measure has to be started by a switch....
The LCD is easiest to work with, but first get your program to display the weight on the serial monitor, which is part of the IDE, development environment.
I think this belongs in the "project guidance" forum section rather than here.
So button to start measuring. Easy - look at the button examples in the IDE, get that working.
Then there's a scale: make sure you have one you can read with an Arduino. If it has a library it'll likely have example code that prints values to the Serial monitor. Make that one work.
Get an LCD screen, 2004 sound good. Four lines of text: elapsed time, current rate, total weight. Maybe also have a maximum rate shown.
After that put it together.
Upon button press clear the screen & reset variables.
After that every second read the weigh from the scale, calculate rate & totals, update the display.
Do this until the button is pressed again, or another button is pressed.
The hard part of this will be the wiring and building it into a case to make it useful and not fall apart easily, and finding a suitable scale that can handle the intended use and can be read by an Arduino.
I managed to use a HX711 load cell. Calibrated it. Display the weight over time on the serial monitor , in grams. 1 measure every second.
Now, I just want to display the rate of change over the time. It means , weight difference in grams between two successive measures made at 1 second interval....
Now , I want to program the fact that the measure has to begin as soon as the weight is increasing and has to stop when it remains stable during 10 seconds.
And, to print and calculate the total weight in the end of the measure
And calculate the average rate and print it
And display the maximum rate and print it.