Skip to content

Add driver for Sensirion SCD30 CO2 sensor #880

Description

@NetForces

I would like to contribute an I2C driver for the Sensirion SCD30 CO2, temperature, and humidity sensor.

The proposed driver will:

  • use drivers.I2C without importing machine;
  • implement the drivers.Sensor Update API with cached CO2, temperature, and humidity readings;
  • support continuous measurement, data-ready checks, measurement interval configuration, ambient-pressure compensation, automatic self-calibration, and stopping measurements;
  • validate the Sensirion CRC on commands and measurement responses;
  • use fixed-size device buffers to bound allocations;
  • include host-side protocol tests, an example, and a smoke-test build entry.

The protocol implementation has already been exercised on an SCD30 connected to an M5Stack CoreInk. The target requires an I2C controller with clock-stretching support, as specified by the SCD30 interface description.

Datasheet/interface description: https://sensirion.com/media/documents/D7CEEF4A/6165372F/Sensirion_CO2_Sensors_SCD30_Interface_Description.pdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions