An open API service indexing awesome lists of open source software.

https://github.com/mu373/atom-s3-co2

CO2 monitor integration for M5Stack AtomS3. Reads sensor values from UD-CO2S, and sends values to ThingsSpeak IoT platform.
https://github.com/mu373/atom-s3-co2

atoms3 co2 esp32 esp32-s3 iot m5stack thingspeak ud-co2s

Last synced: 2 months ago
JSON representation

CO2 monitor integration for M5Stack AtomS3. Reads sensor values from UD-CO2S, and sends values to ThingsSpeak IoT platform.

Awesome Lists containing this project

README

        

# atom-s3-co2
CO2 monitor integration for M5Stack AtomS3. Reads sensor values from [UD-CO2S](https://www.iodata.jp/product/tsushin/iot/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.

## Materials
- M5Stack AtomS3
- [UD-CO2S](https://www.iodata.jp/product/tsushin/iot/ud-co2s/)
- USB AC adapter (Type A)
- [USB Type A male to male cable](https://www.amazon.com/dp/B00HSS9KJY)
- [USB Type A splitter](https://www.amazon.com/dp/B085BJRZN2)
- 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](https://www.amazon.com/dp/B0C9VD4YTK)
- Used to connect AtomS3 to USB splitter
- [USB Type C Extender Adapter](https://www.amazon.com/dp/B0D9XHNDX6)

```mermaid
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"]
```

## Setup
- 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.

## License
MIT license excluding files under `lib/EspUsbHost/`. See [here](https://github.com/mu373/tail-estimation/blob/master/LICENSE.md) for details.

## References
- This project was developed based on codes/libraries from [wakwak-koba/EspUsbHost](https://github.com/wakwak-koba/EspUsbHost).