4 releases

0.0.4 Mar 18, 2021
0.0.3 Mar 12, 2021
0.0.2 Mar 12, 2021
0.0.1 Feb 15, 2021

#1235 in Hardware support

46 downloads per month

MIT/Apache

57KB
1K SLoC

sgp40-rs

Platform agnostic Rust device driver for Sensirion SGP40

Build status Crates.io Version Crates.io Downloads No Std

Platform agnostic Rust driver for Sensirion SGP40 gas sensor using the embedded-hal traits.

Sensirion SGP40

Sensirion SGP40 is 2nd generation low-power accurate gas sensor for air quality application. The sensor uses I²C interface and measures VOC (Total Volatile Organic Compounds)

Datasheet: https://www.sensirion.com/file/datasheet_sgp40

Development status

The sensor is feature complete and the future development evolves:

  • Storing and setting states haven't been tested yet.
  • VOC index follows pretty closely with C implementation values but the jury is still out there to ponder if the algoritm truly calculates things properly.
  • Serial number fetching is not working yet.
  • Moving into using Embedded-hal 1.x

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.5MB
~48K SLoC