Page 1 of 1
need a water flow sensor example
Posted: Fri Mar 06, 2020 7:33 am
by kg300
Any flowcode exemple of using this sensor? Actually i want to use this sensor to measure total flow pass in liters/minut and display on lcd. And i need starting point by a flowcode example
Re: need a water flow sensor example
Posted: Fri Mar 06, 2020 8:53 am
by medelec35
That should be fairly easy to sort out.
Do you have hardware details in mind, e.g. Microcontroller (freq, internal/External osc.), LCD etc?
Perhaps would be better if you started the flowchart by setting up configuration settings and adding LCD.
Re: need a water flow sensor example
Posted: Sat Mar 07, 2020 10:03 am
by kg300
medelec35 wrote:That should be fairly easy to sort out.
Do you have hardware details in mind, e.g. Microcontroller (freq, internal/External osc.), LCD etc?
Perhaps would be better if you started the flowchart by setting up configuration settings and adding LCD.
hardware is so simple, pic16f683 with intrnl Osc and 2X16 LCD, display data on lcd in liters. actually i need a calculation method of water flow in liters using this sensor then i modify my software and hardware according my use. need a calculation block diagram i think..
Re: need a water flow sensor example
Posted: Sat Mar 07, 2020 11:59 am
by medelec35
kg300 wrote:pic16f683
?
That chip does not exist.
Personally if it was me I would select one of the newer microcontrollers as they are much cheaper, faster and have more memory and functions than the older devices.
Re: need a water flow sensor example
Posted: Sat Mar 07, 2020 1:50 pm
by medelec35
I tried the attached Flowchart for my hardware (different target device) and injected a 225Hz signal into INT pin. Result was good as getting a value between 29.9 and 30.0 L/S
So its slightly more accurate than arduino version.
This the accuracy appears to be constant, its dependent on the target osc frequency.
It must be kept at 8MHz So is compatible with older devices.
Re: need a water flow sensor example
Posted: Tue Mar 17, 2020 7:06 am
by kg300
medelec35 wrote:Testing Water Flow Meter hardware.png
I tried the attached Flowchart for my hardware (different target device) and injected a 225Hz signal into INT pin. Result was good as getting a value between 29.9 and 30.0 L/S
So its slightly more accurate than arduino version.
This the accuracy appears to be constant, its dependent on the target osc frequency.
It must be kept at 8MHz So is compatible with older devices.
Thanks medelec35
Re: need a water flow sensor example
Posted: Tue Mar 17, 2020 11:53 am
by medelec35
You're welcome.
Can you please let me know if works OK or not?
Re: need a water flow sensor example
Posted: Wed Mar 18, 2020 8:39 am
by kg300
medelec35 wrote:You're welcome.
Can you please let me know if works OK or not?
Yes, it's working. your example show me the way how i use this sensor. actually i'm trying to build a bottle filling project. the MCU start a small pump and sensor start to count flow, when 1 liter is done the MCU stop the pump. now i'm trying to modify your flowchart according my requirement..
Re: need a water flow sensor example
Posted: Wed Mar 18, 2020 12:20 pm
by medelec35
kg300 wrote:Yes, it's working.
Thank you, that's good to know.
kg300 wrote: actually i'm trying to build a bottle filling project.
After modifying flowchart, you can post it if stuck?
Re: need a water flow sensor example
Posted: Tue Mar 24, 2020 9:36 am
by kg300
medelec35 wrote:kg300 wrote:Yes, it's working.
Thank you, that's good to know.
kg300 wrote: actually i'm trying to build a bottle filling project.
After modifying flowchart, you can post it if stuck?
yes