Skip to content

Sensirion/openco2-mini-sensirion-firmware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCO2 Mini Sensirion firmware

An alternative firmware for the OpenCO2 Mini by @davidkreidler. This firmware has a more restricted feature-set than the original firmware, the focus is given on BLE connectivity and faster measurement rate (1Hz).

Features

  • Connectivity with MyAmbience mobile app:
    • Live data
    • Data download
    • FRC support
    • Custom name support
  • LED colors synced with MyAmbience alerts.

Built using Sensirion libraries

The firmware is built around the official STCC4 driver and the "UPT BLE server" library.

Updating your OpenCO2Mini firmware

To update your OpenCO2Mini firmware you can follow the steps below:

  1. Download the binary of the latest release here
  2. Open the online programmer of ESPBoards.dev available here (or similar)
  3. Click Connect to ESP and chose the your device in the list.
  4. Select Flash firmware
  5. Add the .bin file downloaded at step 1 and enter the Application address 0x10000 (not 0x1000 ! Which is the bootloader address.)
  6. Click Program button and wait for the upload to complete.
  7. Once completed, the device can be power cycled by plugging it out and back in.
  8. You are done.

Development

Development is done using PlatformIO.

Prerequisites

  • Install PlatformIO
    • VS Code extension: install "PlatformIO IDE" from the Extensions marketplace.
    • or CLI: pip install -U platformio (requires Python 3.8+).

Build (compile)

  • VS Code: Open this folder, then in the PlatformIO panel select the openco2-mini environment and click "Build".
  • CLI:
    • From the project root run:
      • pio run -e openco2-mini

Uploading firmware to OpenCO2 Mini (ESP32-S3)

The OpenCO2 Mini must be in bootloader mode to accept a new firmware.

  1. Prepare the device
    • Hold down the button on the OpenCO2 Mini.
    • While holding the button, plug the device into a USB‑C port of your computer.
    • Release the button after it is connected. This puts the device into download (bootloader) mode.
  2. Upload
    • VS Code: In PlatformIO, select the openco2-mini environment and click "Upload".
    • CLI: pio run -e openco2-mini -t upload
  3. Reset after upload
    • After a successful upload, trigger a reset by unplugging the device and plugging it in again.

Notes

  • The serial monitor (115200 baud) can be opened via PlatformIO after the device has rebooted.
  • If upload fails, retry the bootloader sequence (hold button → plug in → release) and run the upload again.

About

A minimal firmware for the OpenCo2 Mini

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors