CO2 monitor integration for M5Stack AtomS3. Reads sensor values from UD-CO2S, and sends values to ThingsSpeak IoT platform. Temperature, Humidity (relative and absolute), CO2 concentration are shown in the display. Click on the display button to switch between each readings.
- M5Stack AtomS3
- UD-CO2S
- USB AC adapter (Type A)
- USB Type A male to male cable
- USB Type A splitter
- One female end connects to power
- One female end connects to UD-CO2S
- Male end connects to Atom S3, using Type C to A adapter
- USB Type C (male) to A (female) adapter
- Used to connect AtomS3 to USB splitter
- USB Type C Extender Adapter
graph LR
AC["USB AC Adapter"] -->|Type A Male-to-Male Cable| Splitter["USB Type A Splitter"]
Splitter -->Adapter["USB Type C to A Adapter"]
Adapter --> Extension["Type C Extender"]
Extension --> |USB Type C Cable| AtomS3
Splitter --> UDCO2S["UD-CO2S"]
- Prepare environment: VSCode + platform.io
- Setup
src/config.h
- ThingSpeak API keys, channel ID, data sending interval
- Wi-Fi SSID and password
- Build and write the program to AtomS3 using USB
- Connect UD-CO2S to AtomS3
- Provide power 5V supply
- When AtomS3 is booted up, it will automatically connect to Wi-Fi and start reading values from the sensor.
MIT license excluding files under lib/EspUsbHost/
. See here for details.
- This project was developed based on codes/libraries from wakwak-koba/EspUsbHost.