Skip to main content

CraftBeerPi4 Flowsensor / Step Plugin

Project description

CraftBeerPi4 FLowmeter Sensor / Step Plugin

For recently added VolumeSensor functionality scroll down

This plugin has been ported from the craftbeerpi3 plugin version (https://github.com/nanab/Flowmeter)

The plugin includes sensor with action to reset the sensor and a custom step. Use a 10k ohm resistor on sensors signal pin to protect your Pi or connect the hall type flow sensor to your Craftbeerpi extension board at the flowmeter ports.

Wire the sensor to the pi: Red -> 5v. Black -> GND. Yellow -> 10k ohm resistor -> GPIO pin. (or data on the extension board. No extra resistor required here)

  • Installation:

  • Sensor Usage:

    • On the settings page, choose a unit for the Volume (e.g. L, qt, gal, ...)
    • Add Sensor under Hardware and choose Flowmeter as Type
    • Several parameters can be set:
      • GPIO defines the GPIO that is used for the signal of the sensor (connected to the yellow cable)
      • Display defines if the total volume or the flow per second is displayed
      • Hertz: Here you need to set the frequency of your sensor (Singals per Liter per minute). This should be documented in the sensor datasheet

Flowsensor Settings

  • Once configured, you need to add the sensor to the Dashboard.
  • Please select Yes for Action as this will add an additional menu on the right side of the sensor to reset the sensor to 0

Flowsensor Action Setting Flowsensor Action Button

  • When you press the menu button on the right side of the sensor, a menu wil show up where you can reset the sensor.

Flowsensor Action Menu

  • Flowstep Usage:
    • The plugin provides a step where you can define a volume that should flow while the step is active.
    • You need to select your flowsensor as sensor.
    • An actor has to be defined that triggers the start and stop of the flow (e.g. magnetic valve)
    • You need to enter the volume that should flow while the step is active
    • When the step starts, the sensor will be set to 0.
    • You can select if the sensor should be set to 0 once the step is completed.

Flowstep

VolumeSensor functionality

The recently added very simple VolumeSensor functionality can be used like this:

Parameters:

  • GPIO: The GPIO Pin number in BCM numbering
  • impulsesPerVolumeUnit: the amount of impulses that should be displaying the volume of 1 of whatever Unit. This is unit agnostic. Just use the same unit in your FlowStep if you use it.

The VolumeSensor does nothing more then to count impulses and calculate the volume the number of impulses represent.

Actions:

  • Reset Sensor: resets the countet impulses and volume to 0
  • Fake Impulse: fakes the detection of an impulse (i used this for testing because i dont have a flow sensor)

Changelog:

  • 10.06.23: (0.0.6) bump version to release
  • 14.05.23: (0.0.6.rc1) added simple VolumeSensor and cbpi4 requirement
  • 14.04.23: (0.0.5.a2) fixed bug in parameter generation
  • 08.04.23: (0.0.5.a1) added test support for plugin settings selection branch
  • 11.05.22: (0.0.4) Updated README (removed cbpi add)
  • 10.05.22: (0.0.3) removed cbpi dependency
  • 27.04.22: (0.0.2) Added MQTT based flowsensor with reset topic
  • 02.10.21: (0.0.1) Initial Release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cbpi4-Flowmeter-0.0.6.tar.gz (19.1 kB view details)

Uploaded Source

File details

Details for the file cbpi4-Flowmeter-0.0.6.tar.gz.

File metadata

  • Download URL: cbpi4-Flowmeter-0.0.6.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for cbpi4-Flowmeter-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b81c243a86f13b9a7ebd809e04f632a23d60e8929032555ba8ef2d1f621c4348
MD5 3bded7f336de3aeed4b5fb72283ebed5
BLAKE2b-256 d858d790a6982d839be5afbac6ad6c4c9233b07c9861db2f51a0d61841c449a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page