/az-iot

Azure IoT Projects

Primary LanguageC++GNU General Public License v3.0GPL-3.0

az-iot

Azure IoT Projects

Quantified Desk

Uses arduino mkr1000 and supersonic sensor to measure standing desk height, sending information to Azure IoT Hub and visualizing it in a real-time Dashboard (Python application backend and Pusher/Javascript frontend).

It also detects state changes (sitting -> standing and standing -> sitting) and logs them in a table.

Sample visualization

Arduino project setup is available in this link:

https://www.hackster.io/vmehmeri/quantified-desk-iot-6647bf

Requirements

As a pre-requisite, an Azure IoT Hub must be setup and configured to route device messages to an Azure Service Bus queue. Your Arduino device will also require SSL certificates for connecting to the IoT Hub endpoint.

Configure your IoT Hub message routing under Messaging > Messaging routing > Add (then select your queue)

Backend:

  • azure-servicebus
  • pusher

Frontend:

  • pusher
  • flask

All can be installed with pip

Arduino Libraries:

  • Ultrasonic
  • WiFi101
  • RTCZero
  • WiFiUdp

All those libraries are already available in Arduino Web Editor. The latest code can also be accessed as a Web Editor sketch through the link below:

Arduino Web Sketch

Usage

First configure your connection details in

Start frontend

    python frontend/app.py

On a separate terminal, start backend

    python device_handler.py

Both frontend and backend can run in any computer with access to the Azure URLs.