Skip to content

Try to figure out how to control a flow of liquid (water, beer, wine,...) and to count the liquides passed through.

Notifications You must be signed in to change notification settings

frantisekrokusek/flow_controler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

Liquid flow_controler

Try to figure out how to control a flow of liquid (water, beer, wine,...) and to count the liquides passed through.

Sources of inspiration :

Connect the red wire to +5V, the black wire to common ground and the yellow sensor wire to pin #2.

Products / devices

  1. Raspberry PI3B+
  2. [Flowmetter]
  3. Electrovanne

Application Mock-up

Here you can find the first draft of the application mock-up.

Webhooks doc

Here a snippet of a code i found here

from time import sleep
from flask import Flask, request
import unicornhat as unicorn
import light.py
app = Flask(__name__)
@app.route('/', methods = ['POST'])
def index():
    data = request.get_json()
    if data['orders/create'] == null:
        light.light() //lights uHat on new order creation
    return "Success"

Flowmeter counter

#// if a plastic sensor use the following calculation
  // Sensor Frequency (Hz) = 7.5 * Q (Liters/min)
  // Liters = Q * time elapsed (seconds) / 60 (seconds/minute)
  // Liters = (Frequency (Pulses/second) / 7.5) * time elapsed (seconds) / 60
  // Liters = Pulses / (7.5 * 60)
  float liters = pulses;
  liters /= 7.5;
  liters /= 60.0;
  ``

About

Try to figure out how to control a flow of liquid (water, beer, wine,...) and to count the liquides passed through.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages