Giter VIP home page Giter VIP logo

azuresphereplantmonitor's Introduction

Azure Sphere Plant Monitor (Sprout)

An AVNET MT3620 starter kit magnetically attached to a shelf Sprout dashboard showing soil moisture data

An Azure Sphere app to periodically monitor and publish sensor data about some houseplants to a public dashboard. Automatically polls data from two chirp! soil moisture sensors, a SHT31D tempurature/humidity sensor, a ALS-PT19 lux sensor, and a LPS22H pressure sensor through a LSM5DSO Gyro. Data is then translated into a JSON package and uploaded through Azure IoT to an Azure Function, which loads this data into a MongoDB hosted on Atlas. After this data is loaded, it can queried by the SproutServerless Lambda and served to the Sprout Dashboard.

This program was built for the AVNET Azure Sphere MT3620 Starter Kit V1, but should still operate on other hardware given correct configurations.

Examples of the data collected is shown below. Current readings of all of these sensors can also be viewed on the Sprout dashboard.

  • Temperature data over one day: Graph of tempurature data logged using this project over a two week period
  • Temperature data compared with humidity data over one day: Graph of temperature and humidity data logged using this project over a two week period
  • Soil moisture data over one day from both sensors: Graph of soil moisture data logged using this project over a two week period
  • Soil moisture data reacting to the plant being watered: Graph of soil moisture data logged using this project over a short period, showing a large spike in one of the sensors readings

Internally, this program uses the EventLoop API for thread-safe event loop management and C-Macro-Collections for message queues. Sensors are polled every minute, and the resulting messages are uploaded ever 10 minutes. In the event of a network disconnection, messages are queued until the network is reconnected or the queue becomes full. A global state machine keeps track of the current network state, triggering reconnection attempts with exponential backoff on disconnection. Messages that fail to send due to the network disconnecting are re-queued in no particular order, and as a result the ordering of messages is not guarenteed (but can be reassembled using the message timestamp).

This project is a collaboration between Melanie Gutzmann (dashboard + api) and Noah Koontz (api + IoT data collection).

Pixel Tracker

azuresphereplantmonitor's People

Contributors

prototypicalpro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

kwest-wrd

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.