#i2c-driver #sensor #i2c #co2 #humidity-sensor #temperature-humidity

no-std scd30-interface

An I2C driver for the SCD30 sensor in Rust

2 stable releases

new 1.0.1 Nov 24, 2024
1.0.0 Nov 18, 2024

#1512 in Embedded development

Download history 132/week @ 2024-11-17

132 downloads per month

MIT/Apache

62KB
1.5K SLoC

Rust SCD30 Driver

Crates.io Version docs.rs Integration Pipeline codecov Crates.io MSRV

A Rust I2C driver for Sensirion's SCD30 CO2, temperature and humidity sensor module. This driver is based on the embedded-hal traits.

Features:

  • Full implementation of the SCD30's functionality:
    • Read out CO2, temperature and relative humidity measurement.
    • Configure altitude, temperature and ambient pressure compensation.
    • Configure automatic self-recalibration and forced recalibration value.
    • Read out data status, configuration and firmware version.
    • Execute soft reset.
  • Easy to integrate into projects using embedded-hal crates.
  • Optional defmt support.

Contributing

If you want to contribute open a Pull Request with your suggested changes and ensure that the integration pipeline runs.

License

Licensed under either of

SPDX-License-Identifier: Apache-2.0 OR MIT

Dependencies

~0.4–1MB
~19K SLoC