Flow meter raspberry pi

Flow meter raspberry pi

JavaScript seems to be disabled in your browser. You must have JavaScript enabled in your browser to utilize the functionality of this website. Sign up to get notified when this product is back in stock. Raspberry Pi beginner to learn about the interrupt, which this project is based on water flow measurement using Flow sensor, which is a pulse type of sensor, contains wheel inside the sensor, rotates on the flow of water, so that by counting the number of revolution of flow wheel we can able to measure the flow speed of the water.

Here we interfaced the flow sensor with Raspberry Pi, which the reading obtaining is in the form of a pulse as an interrupt. So that count of the pulse gets increased based on the pulse, so if the count is large, it is identified that flow speed is faster. If it is less count, it is assumed that revolution is slow because the water flow is slow on passing across the flow sensor. Water flow measurement using water flow sensor with Raspberry Pi. Ask for Price.

Product Description ABSTRACT Raspberry Pi beginner to learn about the interrupt, which this project is based on water flow measurement using Flow sensor, which is a pulse type of sensor, contains wheel inside the sensor, rotates on the flow of water, so that by counting the number of revolution of flow wheel we can able to measure the flow speed of the water.

Submit Review.Contact Form. Our Distributors. Our Locations. We use the Sensirion sfxx Linux kernel driver to access them via Raspberry Pi. This driver has to be compiled as a module for Raspberry, which usually includes recompiling the complete kernel.

Here we use a method that only requires compiling the specific modules and can be run entirely on Raspberry Pi. In the end, we will be able to read out sensor values from a Python application and display them on the console. Connect the sensors to Raspberry Pi, this is easiest done using some jumper cables. Take care to chose the correct supply voltage for your sensor. All of the following commands run on console on Raspberry Pi.

In general, there are two methods to run a shell:. By default the I 2 C buses on Raspberry Pi are disabled. If you already enabled the bus you need e. Because Raspian doesn't follow the Debian standard for packaging kernels and the corresponding headers, we use a different method to install them. This is necessary to compile modules which should be loaded into the kernel.

The first command installs the rpi-source tool from Github. The last command will download the source code for the kernel version you are running. This step will take a while, depending on your connection speed. The sfxx driver depends on the crc8 module, which is part of the mainline Linux kernel. However, it is currently not included in the Raspbian images. That's why we have to download it as a separate module and compile it together with the sfxx module.

Read out values using the libsensors-python by Sensirion. For more advanced usage of the library, such as streaming the data over the network using MQTT, consult the. The last command should give you a live output of the measured values to the console.

If you need to connect more than one sensor, you will need to connect them to different I 2 C buses, because all sensors have the same I 2 C address. There are two ways of doing that:. Your Contact to Sensirion. Contact our sensor experts: Contact Form. Find out where we are located: Our Locations. You will need A Raspberry Pi. An SD card with a current version of the Raspbian operating system.

We used the version from Make sure you have at least 1Gb of free space. This means you might have to expand the file system using raspi-config.California, where I once lived, is in the midst of a severe drought. Thankfully, I now reside in North Carolina, a much wetter state. But even here there have been years when water was in short supply and people were asked to conserve.

Most folks are happy to comply with such requests. You could, of course, track usage more finely by hoofing it out to your water meter periodically and noting the readings. But who has the discipline for that? So I cobbled together a monitor that can show how much water my household is using in real time. Now when my teenage kids take profligate showers, I can berate them with quantitative measurements! To measure water flowing from the municipal supply, I employed a digital compass—that is, a 2-axis magnetometer—that I originally purchased some time ago from SparkFun Electronics to use as a direction finder.

A magnetometer is valuable here because of the way mechanical water meters work. To isolate the gears of the actual meter from water exposure, a rotor is typically attached to a magnet in a separate chamber through which the water flows. Consequently, these coupled magnets produce a magnetic field around the meter that varies depending on how fast the water is flowing. I figured that the field changes produced by the magnetic coupler mechanism would provide a booming signal outside the meter.

But in fact, the magnetic signal is quite subtle. In any event, the signal I had to work with was a mess. So my first challenge was to program an Arduino attached to the magnetometer to transform that noisy magnetic signal into a flow rate.

I toyed with the idea of using a Fourier transform to pick out the dominant frequency corresponding to the flow rate, but instead I plumped for autocorrelation. That is, the program multiplies a short sample of the signal by a time-lagged version of itself and sums up the results.

Bahu ko sabzi wale ne choda

To find the dominant frequency, the Arduino code increments the lag between the two samples and looks for a peak in the summed results. That requires much less processing and seems pretty robust with respect to noise and harmonics. Some testing with the garden hose showed that this arrangement could discern flow rates between gentle and gushing. The low end is limited by how long you let the Arduino collect measurements before processing them.

I settled on about 3 seconds, which lets me measure down to a near dribble. But at the very highest flow rates as when I used an outdoor spigot with no hose attachedmy system faltered. Short of experiencing a burst pipe, though, nobody in my house would be running water at or above that threshold, so I decided not to worry about this limitation and proceeded to work on how to communicate the information.

RaspberryPints V2 with Flowmeters… and RF24 wireless link between arduino and RPi

There was also the issue of how to power the Arduino and magnetometer I had placed at the water meter, which is well separated from my house. The solution was a meter length of four-conductor telephone cable. Two conductors brought 9-volt DC power to the Arduino; the other two carried the digital output transformed to RS voltage levels using another board from SparkFun to a Raspberry Pi, which I placed on my porch next to a regular AC power socket.

I programmed the Pi in Python to serve up a single Web page, using the Flask framework for creating Web apps. That page shows flow rate and total water usage, updated every 10 seconds, and has a button to reset the water-usage counter to zero. I have not yet attempted to calibrate my setup so that the rate is shown in sensible units, say liters per minute.

So the number for total usage is also given in arbitrary units at the moment.

Your Contact to Sensirion

But the Arduino and Pi in combination do an admirable job of informing me about relative flow rates.Measuring the flow through a multiple kegs to determine how much is left and displaying details on screen along with kegerator temp. Not a member? You should Sign Up. Already have an account? Log In.

flow meter raspberry pi

To make the experience fit your profile, pick a username and tell us what interests you. We found and based on your interests. Choose more interests. I recently got into brewing my own beer and as I found bottling took a lot of time and space, so I expanded into kegging. I loved having my own beer on tap, but a problem soon arose. So I began my search.

The issue with their setup was I had 3 taps and they only had the one with other features I wasn't fond of. So I set out to modify their code to meet my needs.

I was looking to display the beer info and amount left in the keg for each keg I had. Later on I decided to add the temperature. With the help of a few friends and lots of trial and error, I got the code working, mostly how I wanted. For those python and linux people in the know, I'm sure the code and steps I did can be done in other faster ways, feel free to leave comments here letting me know of ways to make the code better.

I then set out to test and implement everything.

Installing a cheap water flow meter with attached Raspberry Pi ZeroW

I also attempted to wire in a second temperature sensor for the draft tower versus the actual kegerator, but was unable to get it working. I finally found the time and got everything hooked up, make sure the flow meters are facing the correct direction or you can fry them. Found that out the hard way. I had done some more research and found measuring the weight of the kegs might be a better idea.

That might be in my future, but this works for now. I'm not looking for exacts, just want to get an idea when the beer will run out so I can plan on making more. Sorry about the pictures, I forgot to take some as I was installing the hardware, so I took a few after the fact. If there are any questions, feel free to add them to the comments which I will attempt to check once a month.

Connect back to the Raspberry Pi via SSH and copy the files in the exact same locations they were pulled from overwriting the existing file.

If the Raspberry Pi freezes, simply restart it.Good for measuring and controlling water flows — home watering use, irrigation water use tracking, livestock water tanks, etc.

flow meter raspberry pi

The sensor is inline and uses an impeller with an embedded magnet. The magnet triggers a Hall effect switch sending a pulse at each revolution. Each Friday is PiDay here at Adafruit! Be sure to check out our poststutorials and new Raspberry Pi related products. Stop breadboarding and soldering — start making immediately!

Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming sitelearn computer science using the CS Discoveries class on code. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound.

A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Step 1: Parts List W/Flow Meters

Have an amazing project to share? CircuitPython — The easiest way to program microcontrollers — CircuitPython. Maker Business — How 3M is able to ramp up production of N95 masks. Wearables — High visibility with a little glow. Python for Microcontrollers — CircuitPython 5. Accepting essential orders - here's how. See more! Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more!

Subscribe at AdafruitDaily.So the guys on HomeBrewTalk forums that created RaspberryPints came out with Version 2 recently, which adds keg level monitoring using flow meters. I set mine up this weekend and added a little twist to my configuration.

The NRF24L01 modules are 2. Do you have a how to, or build thread website for this setup? I am looking at doing this with the brewpi setup on an old laptop with virtualbox, and like the look of the wireless flowmeters setup.

You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account. Notify me of new comments via email.


Notify me of new posts via email. Pics: Breadboard testing the wireless link between Pi and Arduino Uno Plumbed in the flow meters in my kegerator the 4 sensors on the back of the collar RaspberryPints V2 complete with keg level monitoring The Raspberry Pi sitting lonely with the RF24L01 PA LNA module The messy install of the arduino plus the extra ribbon cable from the flowmeters hanging off of back of kegerator. Share this: Twitter Facebook. Like this: Like Loading Leave a Reply Cancel reply Enter your comment here Fill in your details below or click an icon to log in:.

Email required Address never made public. Name required. Raspberry Pi projects that usually involve beer.

Ios shapefile reader

Post to Cancel. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy.One of the many advantages of the Raspberry Pi is that it is possible to connect almost all standard Arduino and Raspberry Pi sensors and components to the dhtvarious GPIOs. This accessory can be used in projects such as Smart Home home automationrobot kits or weather stations, etc.

The described Raspberry Pi sensors, modules and components are divided into the following categories:. See the tutorial. Only one GPIO is used. The difference between the two is mainly the measuring range and accuracy.

The light blue DHT11 sensor has a small price advantage about one buck. These Raspberry Pi sensors are addressed via the so-called 1-wire bus. An advantage is that many different 1-wire components can be connected in series and read out by a single GPIO. The DS18B20 is particularly suitable for outdoor use, as there are also water resistant versions available.

flow meter raspberry pi

The determination of the air pressure can be meaningful in weather stations and similar projects. In addition to the air pressure, the temperature can be read out as well as the altitude.

However, the last value is not very accurate. If you need the height, you should read the values with a GPS receiver. This analogue humidity sensor finds an excellent place in automatic irrigation systems. It is placed in the ground and measures the humidity by current flowing between the strands. The more humid the earth in between, the higher the analog signal. In order to read the value with the Raspberry Pi, the MCP is needed Arduinos can recognize analog signals directly. See the Tutorial.

Step 9: Configure Pi Hardware For Flow Meters W/Flow Meters

A problem with analog moisture sensors is that they erode over time and are not always very precise. Capacitive sensors prevent these problems.

The relative humidity is calculated by means of the frequency. However, a frequency divider is also suitable for use with the Raspberry Pi.

The MQ gas sensors can detect different gases at room temperature. Depending on the model, other gases are supported. You can find a list of all MQ sensors and their supported gases here.

You should take care that these sensors can be very hot and they should not be touched directly. Since these modules also work analogically with 5V, you need also a MCP as well as a 3.

Crane hook design standard

The PIR motion sensor has some advantages over other similar products: besides the low price, a signal is sent only if something moves. This allows you to wait for signal flanks using the GPIOs.

In addition, a resistance can be varied so that a signal is only sent when the movement is close, or changes that are already far away are perceived. In addition to outdoor projects, the PIR can also be used in buildings — whether to activate the lighting or, as I use it, to turn on my touch screen for home automation as soon as someone approaches it. Through a small trick it is nevertheless possible to measure distances.

By measuring the time elapsed between transmitting and receiving an ultrasound signal, you can derive the distance as the sound velocity in the air is known.

thoughts on “Flow meter raspberry pi

Leave a Reply

Your email address will not be published. Required fields are marked *