Coder Social home page Coder Social logo

omni-sense-cpp's Introduction

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.

omni-sense-cpp's People

Contributors

norman-thomas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.