arduino lcd displays flow meter gpm and total pricelist

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

arduino lcd displays flow meter gpm and total pricelist

If they are fast or you have delays in your code, you should use an interrupt. There are 3 available from the UNO. Int 0 (D2), Int 1 (D3) and ICP1 (D8).

If they are very fast (>1Khz), only the ICP1 should be used, in conjunction with timer 1. This is useful for frequency or RPM measurement (in general flowmeters are not that fast)

arduino lcd displays flow meter gpm and total pricelist

Flow rate and volume helps tell the amount of fluid going into, or through a particular vessel. For certain process automation applications, this simple-sounding fluid measurement task is so critical to the success of the project that, failure to get it right, could bring the entire process to its knees. This is why for today’s tutorial, I thought it will be cool to look at this nice water flow sensor; the YF-S201, and its use in an Arduino based project.

The sensor uses the principles of electromagnetism, such that, when liquids flow through the sensor, the flow action impacts the fins of a turbine in the sensor, causing the wheel to spin. The shaft of the turbine wheel is connected to a hall effect sensor so that with every spin, a pulse is generated, and by monitoring that pulse with a microcontroller, the sensor can be used in determining the volume of fluid passing through it.

As the microcontroller for today, we will use the Arduino Uno. The Uno will be used to count the number of pulses detected over time and calculate the flow rate (in liters/hour) and total volume of fluid that has passed through it using the total number of pulses. The result, flow rate and volume, will then be displayed on a 16×2 LCD so as to provide a visual feedback to the user. If the 16×2 LCD is not available, you can view the data over the Arduino Serial Monitor.

To make reading the sensor and calculating flow easy, the interrupt feature of the Atmega328p on the Ardunio is employed, as such, the signal pin of the YF-S201 is connected to one of the interrupt-enabled IOs of the Uno (in this case, pin D2). The LCD, on the other hand, is connected in a 4-bit mode to the Arduino. To save some time on connections, you could also decide to use an I2C enabled version of the 16×2 LCD display. For this,  you will only need to connect 4 wires from the display to the Arduino. It will, however, call for some modification in the code, so be sure you can handle it before making that decision.

The idea behind the sketch is simple: monitor the signal pin of the YF-S201 to detect when the hall sensor is triggered (flow is detected) and increment a variable to show the increased inflow. However, to do that efficiently and accurately, we will use the interrupt feature of the Arduino such that whenever the hall sensor detects the rotating magnet, a rising edge interrupt is fired and registered by the Arduino. The total number of interrupts fired over a particular time is then used in generating the flowrate and the total volume of liquid that has traveled through the flow meter.

Since the flow determination is pretty straight forward, the only library we will use for this tutorial is the Arduino Liquid Crystal library. The library contains functions that make it easy to interface the 16×2 LCD with an Arduino. The library is included with the Arduino IDE but in case it’s not, it can be installed via the Arduino IDE Library Manager.

It is followed by the declaration of some variables that will be used to store data later and the creation of an instance of the liquid crystal library.

Next, we create the flow() function. This function is called whenever the interrupt is detected and it will increment the flow counter which will serve as an indication of the flow rate.

Next, we declare the Arduino pin to which the signal pin of the flow sensor is connected, as an input pin. We create a pull-up on the pin by setting it “HIGH” and set up a “Rising” edge interrupt on it with the flow() function we created earlier as the callback.

We wrap up the setup function by calling the millis() function to keep track of the time since flow rate as a measure of the flow within a particular time frame.

The loop starts by comparing how much time has elapsed since the last loop. The flow frequency, obtained via the interrupt action, is then divided by time (in minutes) and the value is displayed as the flowrate. The value is also added to the existing volume(vol) and displayed as the total volume of fluid that has passed through the sensor.

Go over your connections to be sure everything is as it should be. With this done and the code complete, connect the hardware to your computer and upload the code to the Arduino board. If successful, you should see the display come up as shown in the image below.

Connect some pipes to it using whatever means is easy for you and pass some water through the flow sensor. You should see the flowrate being displayed on your screen, vary with the intensity of water flow, and you should also see the volume increase as more water flows through it.

If you don’t have the tubes/pipes for water around at that instant, you can blow some air into the sensor. You should hear the rotor in spin and the values on the LCD should increase.

Flowrate/ volume metering is a very important part of several industrial and even individual consumer processes. It provides to not only monitor consumption but also meter supply and I believe applications like smart water meters and automated fluid dispensers should give you tons of insights into how this seemingly basic project could be transformed into an amazing super useful product.

arduino lcd displays flow meter gpm and total pricelist

This economy water flow meter is an ideal alternative to traditional water meters. The TM Series water meters offer flow rate and flow total indication that help monitor water flow in waste water applications, water treatment, and sub-metering applications.

arduino lcd displays flow meter gpm and total pricelist

... IG is a digital mass flowmeter for air, gases and gas mixtures in process applications. The system is supplied with LCD display, integrated gas temperature measurement ...

... install on all Drum and container pumps: The new Lutz Flow Meter TR3 in PP or PVDF. A handy meter you can "count" on in any situation. The symmetrical measuring chamber allows the meter ...

... mount on all Drum- and container pumps: the Lutz Flow Meter TR3 in PP or PVDF. A handy meter that you can "count on" in any situation. The symmetrical measuring chamber allows it to be ...

The first flowmeter with touch screen display and backlighting convinces with its simple, demand-oriented display and operability, the multilingual interface and the compact design: ...

... portable area velocity meter that measures flow using a submersible ultrasonic sensor. The unit is designed for flow surveys in open channels, partially-full sewer pipes, and surcharged ...

... PDFM 5.1 Portable Doppler Flow Meter is a portable flow meter that clamps to the outside of a pipe to gain pipe flow measurement. The ultrasonic Doppler ...

... free Greyline Logger Software for the calculation of flow as an open channel meter. The design is compact, portable, and battery-powered which makes it a fantastic instrument for open channel flow ...

Promass Q 500 provides the highest measurement accuracy for mass flow, volume flow and density. Being the preferred choice for custody transfer applications, it has also been optimized for liquid applications ...

... ultrasonic Doppler flow meter measures flows of liquids containing suspended particles or aerated liquids. The suspended particles must reflect ultrasonic energy. The DFX flow ...

The working principle of the electromagnetic flow meter is based on the Faraday law of electromagnetic induction. When the conducting liquid flows in the orthogonal direction of the magnetic ...

Utilising patented technology that enables it to operate with excellent accuracy over very wide flow ranges, across the whole span, the Atrato range of inline flowmeters ...

Built upon proven TSI flow sensor technology, the NEW 5000 Series Flow Multi-Meter redefines what a flow meter can do for you. This all-in-one gas mass ...

COLOR TOUCH PANEL DISPLAY. The Digital 300 Sériés has an optional integrated touch panel color LCD display. This gives the user easy configurability and ...

The GFM design combines the convenience and accuracy of conventional mass flow devices with low costs previously unattainable. Each of these meters ...

All features of the flow meter can be accessed via the local four button keypad and LCD. The digital interface operates via RS485 (optional RS-232 available) ...

Precession vortex flow meter adopts micro-processing technology, which has the advantages of strong function, wide flow range, simple operation and maintenance, and convenient installation ...

... compressed air flow meter is designed to be easy to use, affordable and it"s offering a wide measurement range. This makes it easy for you to choose the right flow meter, ...

The AI.M-SONIC flow measurement system is an innovative modular system consisting of a small-sized module including display, omega bar mounting, digital and two clamp-on or insertion ...

... modern and precise flow meter with internal data logging. Equipped with two analogue inputs and two PULS inputs, can measure flow and other values, such as temperature and humidity. In ...

arduino lcd displays flow meter gpm and total pricelist

The price list is confidential and may not be passed on to a third party, fully or partially, without the permission of GTS Gauges Transmitters Switches Pty Ltd.

The price list is confidential and may not be passed on to a third party, fully or partially, without the permission of GTS Gauges Transmitters Switches Pty Ltd.