Skip to content

Indoor air quality monitor based on ESP32 & Sensirion SPS30 Particulate Matter Sensor.

License

Notifications You must be signed in to change notification settings

bastienwirtz/air-quality-monitor

Repository files navigation

Air quality monitor

Connected Particle matter, eCO2 & TVOC air quality monitor.

Features:

  • Particle matter monitoring (PM1, PM12.5, PM4, PM10)
  • eCO2 / TVOC monitoring
  • MQTT connectivity

Todo

  • Store sgp sensor baseline in esp32 memory & restore it on boot.

Parts

Wiring

Both SPS & SGP sensor are connected to the I2C bus (pin 21 & 22)

Build

Dependencies

Configuration

Display:
The TFT_eSPI needs to be configured for TTGo board / screen. Edit the <your-TFT_eSPI-library-path>/User_Setup_Select.h:

//#include <User_Setup.h>
#include <User_Setups/Setup25_TTGO_T_Display.h>

Connectivity:
Edit the configuration section of the main.ino file according to your needs:

// Configuration
char* wifiSsid = "your-ssid";
char* wifiPassword = "your-wifi-password";
char* mqttServer = "your-mqtt.server";
char* mqttUser = "your-mqtt-user";
char* mqttPassword = "your-mqtt-password";

Compiler:
Make sure to include the repository directory to your compiler include path. Example for vscode:

// .vscode/c_cpp_properties.json (inside the source directory)
"configurations": [
        {
            "includePath": [
                ...
                "${workspaceFolder}",
            ],
            ...
        }
    ],
    ...
}

References

About

Indoor air quality monitor based on ESP32 & Sensirion SPS30 Particulate Matter Sensor.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published