OpenCO2 Sensor is an Arduino IDE compatible Repository for an E-Ink Indoor air quality CO2 Sensor using the ESP32-S2 and an RBG LED.
Buy it here on Tindie
Especially in winter, when the windows are closed, a reminder to ventilate regularly is useful for health, comfort and well-being. Poor indoor air quality can lead to decreased productivity and learning disabilities. Therefore, I developed an ESP32-S2 project that uses an E-Ink display to show the indoor CO2 content. Comparable commercial meters cost significantly more and have fewer features.
With the SCD40, Sensirion offers a completely new miniaturized CO2 sensor based on the photoacoustic sensor principle. The integrated, industry-leading humidity and temperature sensor offers high accuracy with low power consumption.
1.54" in size, with 200x200 pixel resolution and low power consumption with wide viewing angle. Per partial refresh, readings are updated every five seconds.
For displaying the air quality as a traffic light (green, yellow, red, magenta). Brightness and color are adjustable via software.
size: 47 x 41 x 24 mm
Use "Save as" to download the files.
By means of the ESP32-S2 processor on a self-designed PCB, an APP connection via software update is planned. Thus, push notifications windows (open / close) and long-term measurements are possible.
- Download and unzip esptool
- Download the all
.bin
files from the latest release - Make sure, that the power switch is in the
ON
position (down) - Plug a data USB-C cable into your PC and the Sensor
- Hold the Button on the backside of the CO2 Sensor near the USB-C port and push simultaneously the reset ↪️ Button
- Release the reset ↪️ Button first and then the other one
- Run the following commands in the folder containing the
.bin
andesptool
port for Windows:COM7
or Linux:/dev/ttyUSB0
|/dev/ttyACM0
$ python3 -m pip install pyserial
$ python3 esptool.py --chip esp32s2 --port [COM7|/dev/ttyUSB0|/dev/ttyACM0] --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0xe000 boot_app0.bin 0x1000 co2_scd4x.ino.bootloader.bin 0x10000 co2_scd4x.ino.bin 0x8000 co2_scd4x.ino.partitions.bin
- Afterwards push the reset ↪️ Button
- Copy the esp32-waveshare-epd Folder to your
Arduino/libraries/
- Install the ESP32-S2 support for Arduino IDE
- Choose
ESP32S2 Dev Module
underTools -> Boards -> ESP32 Arduino
- Connect the Sensor as described in step "Programming via Arduino IDE" and choose the new Port under
Tools -> Boards -> Port
-
Make sure, that the power switch is in the
ON
position (down) -
Plug a data USB cable into your PC and the Sensor
-
Hold the Button on the backside of the CO2 Sensor near the USB-C port and push simultaneously the reset ↪️ Button
-
Release the reset ↪️ Button first and then the other one
-
Click
Upload
in the Arduino IDE and wait -
Afterwards push the reset ↪️ Button
Vor allem im Winter bei geschlossenen Fenstern ist eine Erinnerung, regelmäßig zu lüften, sinnvoll für die Gesundheit, den Komfort und das Wohlbefinden. Schlechte Raumluftqualität kann zu verminderter Produktivität und Lernstörungen führen. Daher habe ich ein ESP32-S2 Hobby Projekt entwickelt, welches mittels eines E-Ink Displays den CO2 Gehalt der Luft anzeigt. Vergleichbare kommerzielle Messgeräte kosten deutlich mehr und besitzen weniger Features.
Mit dem SCD40 bietet Sensirion einen völlig neuen miniaturisierten CO2-Sensor, welcher auf dem photoakustischen Sensorprinzip basiert. Der integrierte, branchenführende Feuchte- und Temperatursensor bietet eine hohe Genauigkeit bei einem geringen Energieverbrauch.
1,54” groß, mit einer Auflösung von 200x200 Pixeln und niedrigem Stromverbrauch bei breitem Betrachtungswinkel. Per partiellem Refresh werden die Messwerte alle fünf Sekunden aktualisiert.
Zur Darstellung der Luftqualität als Ampel (grün / gelb / rot). Helligkeit und Farbe sind per Software einstellbar.
Größe: 47 x 41 x 24 mm
Benutze "Speichern unter" um die Dateien herunter zu laden.
Mittels des ESP32-S2 Prozessors auf einem selbst designten PCB ist eine APP Anbindung per Software Update geplant. Somit sind Push Benachrichtigungen Fenster (auf / zu) und Langzeitmessungen möglich.