Home - gloveboxes/HealthySpacesAnomalyDetection GitHub Wiki

Healthy Spaces CO2 and Azure Anomaly Detector APIs

Create healthier safer workspaces by monitoring CO2, temperature, and humidity levels with Azure Sphere, Azure IoT Central, and Azure Anomaly Detector.

The image shows a banner with CO2 data


Documentation and source code

Navigate the wiki sidebar documentation starting with setting up the Azure Sphere development environment. All the source code is provided under an MIT License, and contributions are very welcome.


What you will learn

You will learn about building secure Edge solutions with Azure Sphere, Azure IoT Central, and you will learn about the Azure Anomaly Detector API service. The Azure Anomaly Detector service supports univariate and multivariate APIs to monitor data over time and detect anomalies with machine learning. Get insight into your time series data, regardless of volume, industry, or scenario.


Contents

Folder Description
src Azure Sphere CO2 monitor code
README.md This README file.
LICENSE.txt The license for the project.

Learning resources

  1. Azure Anomaly Detector API
  2. Azure Sphere Documentation
  3. Develop secure IoT Solutions for Azure Sphere with IoT Hub

Create safer spaces

Although CO2 levels are not a direct measure of possible exposure to COVID-19, checking levels using a monitor can help you identify poorly ventilated areas.

Learn more about Ventilation and air conditioning during the coronavirus (COVID-19) pandemic.

Create productive and healthy spaces

When working from home, it's easy to close the door to shut out the noise of everyday life while we get on with work. Closing the door can lead to a build-up of CO2 gas, a by-product of our breathing. High CO2 levels can impact our wellbeing, concentration, and productivity levels.

Learn how Indoor carbon dioxide levels could be a health hazard, scientists warn.

The problem is we cannot see or smell Carbon Dioxide, it keeps building up, and we have no way of knowing it's happening other than getting tired or a headache.


Solution requirements

These are the solution requirements:

  1. Chart CO2 levels, along with temperature, pressure, and humidity.
  2. Provide an audible and visual alert for high CO2 levels.
  3. Set CO2 alert levels for a given device.
  4. Detect workspace environment anomalies

What you will learn from implementing the CO2 monitoring solution

You will learn how to do the following:

  1. Set up Azure Sphere security.
  2. Publish telemetry to IoT Central.
  3. Anomaly detection with Azure Anomaly Detector APIs.

Azure IoT Central

Azure IoT Central provides an easy way to connect, monitor, and manage your Internet of Things (IoT) assets at scale. There is a free trial for IoT Central, and you can continue to connect two devices to IoT Central for free after the trial period expires.

This image shows an IoT Central chart


Azure Sphere

Azure Sphere is a general-purpose Edge-to-Cloud platform that is secure by design and by default. You focus on your IoT application, and Azure Sphere looks after ongoing platform security.

Azure Sphere consists of the following components:

  • Azure Sphere–certified chips from hardware partners include built-in Microsoft security technology to provide connectivity and a dependable hardware root of trust.
  • Azure Sphere OS adds layers of protection and ongoing security updates to create a trustworthy platform for new IoT experiences.
  • Azure Sphere Security Service brokers trust for device-to-cloud communication, detects threats, and renews device security.

Together these components implement The Seven Properties of Highly Secure Devices.

Azure Sphere end-to-end.


Supported hardware configurations

The CO2 monitor project supports the following hardware configurations.

Avnet Azure Sphere with Click peripherals

  1. Avnet Azure Sphere Starter Kit Rev 1 or Rev 2
  2. MikroE BUZZ Click
  3. MikroE HVAC Click The MikroE HVAC Click uses the Sensirion SDC41 CO2, Temperature, and humidity sensor. Calibration of the sensor is also required, see the SDC4x datasheet

Set up

  1. Insert the MikroE BUZZ Click into socket 1 of the Avnet Azure Sphere starter kit.
  2. Insert the MikroE HVAC Click into socket 2 of the Avnet Azure Sphere starter kit.

This image shows the Avnet Azure Sphere with click and grove peripherals


Avnet Azure Sphere onboard sensors

This image shows the layout of the Avnet starter kit

The Avnet Azure Sphere starter kit has several onboard sensors, including temperature, pressure, light, and an accelerometer. This solution uses the onboard air pressure and the light sensor.

So, with the CO2 sensor from Sensirion and the Avnet onboard sensors, there are sensors for carbon dioxide, temperature, humidity, pressure, and light.

License

See LICENSE.txt

  • The AzureSphereDevX repository is included via a submodule. The license for AzureSphereDevX can be found here.
  • The AzureSphereDevX.HardwareDefinitions repository is included via a submodule. The license for AzureSphereDevX.HardwareDefinitions can be found here.
  • The AzureSphereDevX.Tools repository is included via a submodule. The license for AzureSphereDevX.Tools can be found here.
  • The AzureSphereDrivers repository is included via a submodule. The license for AzureSphereDrivers can be found here.