项目作者: mlesniew

项目描述 :
Ventilatore is an automatic bathroom fan controller built using the NodeMCU.
高级语言: C++
项目地址: git://github.com/mlesniew/ventilatore.git
创建时间: 2019-10-06T19:12:51Z
项目社区:https://github.com/mlesniew/ventilatore

开源协议:GNU General Public License v3.0

下载


logo

Ventilatore is an automatic bathroom fan controller built using the NodeMCU.

Build Status
License

How it works

The air humidity inside and outside the bathroom is measured using two
Bosch BME280 sensors.
If the humidity difference (inside minus outside) raises above a given threshold, the fan gets started through a
relay. The fan is kept running until the humidity difference drops to an acceptable value.

Pictures

Outside

Inside

Web interface

If connected to a WiFi network, a web interface is exposed with live measurements and configuration options.

Web interface

Prometheus metrics

Besides the web page, a Prometheus metrics endpoint is exposed.
These metrics can be then be visualized on Grafana dashboards:

Grafana

Grafana dashboard configuration

Electronics

Required parts

  • NodeMCU
  • Bosch BME280 sensor x2
  • 5V relay
  • TM1637 4-digit 7-segment display
  • MTS on-off-on toggle switch
  • LEDs: red and blue
  • Resistors: 220 Ω, 100 Ω, 2x 4,7 kΩ
  • Monostable push button

Schema

Schema

Compilation

The project can be built using PlatformIO. Nothing else needs to be installed, all
required libraries are linked to the project as git submodules.

Steps to download, build and upload:

  1. git clone https://github.com/mlesniew/ventilatore.git
  2. cd ventilatore
  3. git submodule init
  4. git submodule update
  5. pio run
  6. pio run --target=upload
  7. pio run --target=uploadfs