Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/norman-thomas/omni-sense-cpp
ESP8266 using many sensors, reporting measurements via MQTT
https://github.com/norman-thomas/omni-sense-cpp
arduino bme280 bmp280 esp8266 esp8266-arduino humidity-sensor iot light-sensor mqtt-client particle-sensor ppd42ns pressure-sensor rain-sensor si7021 temperature-sensor tsl2561 tsl2591 wemos-d1-mini
Last synced: 18 days ago
JSON representation
ESP8266 using many sensors, reporting measurements via MQTT
- Host: GitHub
- URL: https://github.com/norman-thomas/omni-sense-cpp
- Owner: norman-thomas
- Created: 2017-07-26T18:23:32.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-16T10:03:44.000Z (almost 6 years ago)
- Last Synced: 2024-11-11T09:46:28.383Z (3 months ago)
- Topics: arduino, bme280, bmp280, esp8266, esp8266-arduino, humidity-sensor, iot, light-sensor, mqtt-client, particle-sensor, ppd42ns, pressure-sensor, rain-sensor, si7021, temperature-sensor, tsl2561, tsl2591, wemos-d1-mini
- Language: C++
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# omni-sense-cpp
_ESP8266 using many sensors_
This is a sensors firmware for the Wifi-capable ESP8266 controller.
Support for several environment sensors (BME280, BMP280, SI7021, TSL2561, TSL2591, PPD42NS, DHT22) is implemented, which enables the measurement of temperature, humidity, pressure, luminosity, dust and rain.
Values are periodically measured and published via MQTT.## Prerequisites
* ESP8266 or WeMos D1 microcontroller
* micro-USB cable
* Arduino IDE
* Wifi
* MQTT broker## Configuration
* inside `credentials.h` configure your WiFi and MQTT credentials
* inside `omni-sense.ino` (de)activate the sensors you want to support in your build by uncommenting the `INCLUDE_*` lines
* inside `omni-sense.ino` set `MQTT_PREFIX_LOCATION` and `MQTT_PREFIX_ROOM` to desirable values, they will be used for naming the published MQTT topics## Wiring
* connect the sensor(s) to the I2C ports (SDA, SCL) of the controller
* in case of the ESP8266 NodeMCU and Wemos D1 Mini, the sensor's SCL and SDA should be hooked up to the controller's D1 and D2 pins respectively## Installation
With the ESP8266 connected to the computer, the firmware can be compiled and flashed onto the controller using the Arduino IDE.
Once running, the controller should periodically publish topics to the broker.