An accurate, small, and low-cost liquid flow meter can be easily made using GreenPAK™ components. In this application note we present a water flow meter that continuously measures the water flow and displays it on three 7-segment displays. The flow sensor measurement range is from 1 to 30 liters per minute. The output of the sensor is a digital PWM signal with a frequency proportional to the water flow rate.
Three GreenPAK Programmable Mixed-signal Matrix SLG46533 CMICs count the number of pulses within a base time T. This base time is calculated such that the number of pulses is equal to the flow rate in that period, then this calculated number is displayed on the 7-segment displays. The resolution is 0.1 liters/min.
The output of the sensor is connected to a digital input with Schmitt trigger of a first Mixed-signal Matrix that counts the fractional number. The chips are cascaded together via a digital output, which is connected to a digital input of a proceeding Mixed-signal Matrix. Each device is connected to a 7segment common cathode display through 7 outputs.
Using a GreenPAK Programmable Mixed-signal Matrix is preferable to many other solutions such as microcontrollers and discrete components. Compared to a microcontroller, a GreenPAK is lower cost, smaller, and easier to program. Compared to a discrete logic integrated circuits design, it is also lower cost, easier to build, and smaller.
To make this solution commercially viable, the system must be as small as possible and be enclosed inside a waterproof, hard enclosure to be resistant to water, dust, steam, and other factors so that it may operate in various conditions.
To test the design a simple PCB was built. The GreenPAK devices are plugged on this PCB using 20 pins double rows female header connectors.
Tests are made first time using pulses generated by an Arduino and in a second time water flow rate of a home water source was measured. The system has shown an accuracy of 99%.
Below we described steps needed to understand how the bike speedometer has been programmed. However, if you just want to get the result of programming, download GreenPAK software to view the already completed GreenPAK Design File. Plug the GreenPAK Development Kit to your computer and hit the program to design the solution.
Overall Description of the System
One of the most common ways to measure liquid flow rate is exactly like the principle of measuring the speed of wind by an anemometer: the speed of wind is proportional to the rotation speed of the anemometer. The main part of this type of flow sensor is a sort of a pinwheel, whose speed is proportional to the liquid flow rate passing through it.
We used the water flow sensor YF-S201 from the firm URUK shown in Figure 1. In this sensor, a Hall Effect sensor mounted on the pinwheel outputs a pulse with every revolution. The output signal frequency is given by the relation: 𝑓𝑂𝑈𝑇 = 7.5 × 𝑄, where Q is water flow rate in liters/minute.
GreenPAK Designer Implementation
The SLG46533 has many versatile combination function macrocells and they can be configured as Look up Tables, counters or D-Flip-Flops. This modularity is what makes GreenPAK suitable for the application.
The program has 3 stages: stage (1) generates a periodic digital signal to switch between the 2 tasks of the...Read more »