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

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

#1905 in Embedded development

Download history 109/week @ 2024-11-13 151/week @ 2024-11-20 33/week @ 2024-11-27 19/week @ 2024-12-04 7/week @ 2024-12-11 120/week @ 2024-12-25 23/week @ 2025-01-01 9/week @ 2025-01-08

152 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
~20K SLoC