Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Sensor Module: Flowsensor #377

Merged
merged 4 commits into from
Jul 31, 2024
Merged

Conversation

mschlenstedt
Copy link
Contributor

@mschlenstedt mschlenstedt commented Jul 18, 2024

Hi,

based on the new sensor module "yfs201" I created a more flexible module, which will work with almost all flow rate sensors. These sensors create a pulse frequency, which can be calculated into a flow rate by a formula (factor).

While the yfs201 module has a fixed factor of "7", the factor of this module is configurable in the config.

From YF-S201 manual:
Pulse Characteristic: F = 7 * Q (L/MIN).
Pulse frequency (Hz) / 7.0 = flow rate in L/min
==> Factor = 7.0

From YF-DN50 manual:
Pulse Characteristic: F = 0.2 * Q (L/MIN).
Pulse frequency (Hz) / 0.2 = flow rate in L/min
==> Factor = 0.2

Example config for YF-S201:

sensor_inputs:
- digits: 4
  module: meinflowmeter
  name: meinsensor
  retain: true
  pin: 17
  factor: 7
  interval: 10
sensor_modules:
- module: flowsensor
  name: meinflowmeter

If you have a more complex formula, you can use "1" as factor. You will get the frequency in Hertz (Hz) this way and the real flowrate can be calculated by another software/system/whatever.

@BenjiU BenjiU merged commit e040590 into flyte:develop Jul 31, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants