Git Product home page Git Product logo

gadgets's Introduction

IoT Gadgets

This is my single project for all IoT devices I develop. I'm sharing it in hope to help others with their own IoT projects.

Sensors

Sensor devices measure environmental data like temperature or humidity and send the values to centralized database.

I use InfluxDB + Grafana for collecting and presenting the sensor data.

How to build a device

My development environment:

Step by step:

  1. Buy hardware. See platformio.ini for the hardware I use. Assemble the headers, sensors etc.

  2. Select or add new env in platformio.ini, adjust build_flags.

  3. Copy include/config.h.templ to include/config.h and fill the credentials for Wi-Fi etc.

  4. Run ./pio_init to apply the changes (and install optional libraries)

  5. Connect the device and run pio run --target upload to program it.

  6. Debug with pio device monitor.

TODO: Control Server

Provides centralized control of all connected devices. Each device has to actively query for new firmware and commands.

URLs:

  • /update - ArduinoOTA firmware update (each device gets its own firmware)
  • /control - Control commands for each device, headers contain "X-Seq" which indicates a change
  • /write - sensor data, forward to InfluxDB

Implementation:

  • Python + frontend web server (nginx)

TODO: Deployed devices

Here I'll document the assembled devices, with links to the parts and also some photos.

gadgets's People

Contributors

rbrich avatar

Watchers

 avatar  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.