#i2c-sensors #i2c #co2 #driver #i2c-driver #sensor

no-std scd30-interface

An I2C driver for the SCD30 sensor in Rust

3 stable releases

2.0.0 Dec 31, 2024
1.0.1 Nov 24, 2024
1.0.0 Nov 18, 2024

#1518 in Embedded development

Download history 129/week @ 2024-12-27 17/week @ 2025-01-03 6/week @ 2025-01-10 2/week @ 2025-02-14 8/week @ 2025-02-21 3/week @ 2025-02-28

204 downloads per month

MIT/Apache

68KB
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.
  • All functions are also available as async interfaces with the async feature
  • Easy to integrate into projects using embedded-hal and embedded-hal-async 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