1 / 4
Air Quality Monitor — zdjęcie 1
1 / 4

Air Quality Monitor

Zamów wydruk tego modelu

Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.

Zapisane na tym urządzeniu.

Air Quality Monitor - you can check the quality of the air, specially in the place where you are printing your projects.

Ocena
0 / 5
Polubienia
16
Pobrania
33
Wydruki
0
Wyświetlenia
345
Oceny
0

Aktualizacja u źródła:

Informacje o modelu

Źródło
Printables
Licencja
Creative Commons — Attribution — Noncommercial

ESP32 Air Quality Monitor with LED Bar (SGP40)

Overview

This project is a compact desk air quality monitor based on an ESP32 C3 Waveshare microcontroller and the SGP40 - DFRobot SEN0394 VOC sensor.


It measures indoor air quality in real time and displays the result using a LED RGB 10 x WS2813 Mini 3535 and a web dashboard hosted directly on the ESP32 C3 Waveshare.

The device creates its own Wi-Fi access point and shows the air quality on a web page accessible from any phone or computer.

The LED bar provides an instant visual indication of air quality:

  • 🟢 Green – very good air quality

  • 🟡 Yellow – good

  • 🟠 Orange – elevated pollution

  • 🔴 Red – poor air quality

The ESP32 also hosts a simple web interface where you can see the current VOC level and historical data.

This makes the device ideal for:

  • home air monitoring

  • office air quality control

  • ventilation testing

  • DIY smart home projects


Features

  • Real-time VOC air quality monitoring

  • ESP32-C3 microcontroller

  • SGP40 digital air quality sensor

  • 10 LED RGB air quality indicator

  • Automatic sensor warm-up and stabilization

  • Median filtering for stable readings

  • Automatic baseline calibration

  • Built-in WiFi Access Point

  • Web dashboard

  • 24-hour VOC history

  • Fully standalone device (no internet required)


Bill of Materials (BOM)

Component

Quantity

ESP32-C3 (Waveshare ESP32-C3-Zero)

1

DFRobot SGP40 VOC Sensor (SEN0394)

1

LED RGB 10 x WS2813 Mini 3535

1

5V power supply (USB)

1

jumper wires

several

Optional:

  • 3D printed enclosure

  • diffuser for LED bar


Wiring

SGP40 Sensor (I2C)

SGP40

ESP32-C3

VCC

3.3V

GND

GND

SDA

GPIO 8

SCL

GPIO 9


LED Stick (WS2812 / WS2813)

LED Stick

ESP32-C3

VCC

5V

GND

GND

DIN

GPIO 3


ESP32 internal LED

The onboard RGB LED is disabled in the firmware so only the external LED bar is used.


LED Color Scale

Air Quality

VOC Index

LED Color

Very good

0 – 100

Green

Good

101 – 200

Yellow

Elevated

201 – 300

Dark Orange

Poor

301 – 500

Red

Color tuning optimized for WS2812 LEDs.


Web Interface

The ESP32 creates a WiFi network:

SSID: ESP32-AIR
Password: 12345678

Open in browser:

http://192.168.4.1

The web dashboard shows:

  • current VOC value

  • air quality status

  • 24-hour graph

  • minimum and maximum values

The page refreshes automatically every 30 seconds.


How it Works

  1. ESP32 reads VOC data from the SGP40 sensor

  2. Measurements are filtered using a median filter

  3. Auto-calibration stabilizes the baseline

  4. VOC value is converted to a 0–500 air quality index

  5. LED bar changes color depending on air quality

  6. Data is logged for the 24-hour history

  7. ESP32 hosts a local web interface

Tagi