A Rust-based air quality monitoring system using ESP32 microcontroller, SCD41 CO2 sensor, and SSD1306 OLED display.
- Measures CO2, temperature, and humidity using Sensirion SCD41 sensor
- Displays readings on a SSD1306 OLED display
- Written in Rust using esp-idf framework
- Periodic measurements with configurable interval
- Error handling and display
- ESP32 development board
- Sensirion SCD41 CO2 sensor
- SSD1306 OLED display (128x64)
- I2C connections:
- SDA: GPIO8
- SCL: GPIO9
- Install Rust and ESP-IDF toolchain
- Clone the repository:
git clone https://github.com/arietis/esp32-co2-monitor.git cd esp32-co2-monitor
- Build the project:
cargo build
- Flash to ESP32:
cargo run
The default measurement interval is 5 seconds. You can modify this in src/main.rs
:
const MEASUREMENT_INTERVAL_MS: u32 = 5000;
This project is licensed under the MIT License - see the LICENSE file for details.