flyte / mqtt-io

Expose GPIO modules (Raspberry Pi, Beaglebone, PCF8754, PiFace2 etc.) and digital sensors (LM75 etc.) to an MQTT server for remote control and monitoring.
MIT License
470 stars 159 forks source link

New Sensor Module: Frequency Counter #378

Closed mschlenstedt closed 3 months ago

mschlenstedt commented 4 months ago

Hi,

based on the new sensor module "yfs201" I created a more flexible module, which will work with all hardware which creates a frequency (pulses) at the GPIOs. Examples are Flow Rate Sensors or Anemometers. The GPIOs of the Raspberry can detect 5 KHz (not confirmed, I found this on some older webpages).

Example config::

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

The output of the module is the Frequency at the used GPIO in Hertz (Hz).