sen6x-driver 0.0.4

embedded-hal driver for the sensirion sen6x sensors
Documentation

Sensirion I2C SEN6x Driver

This library provides an embedded no_std driver for the Sensirion SEN6x series. This driver was built using embedded-hal traits.

This driver is compatible with embedded-hal v1.0.

Crates.io Docs.rs

Reasons for yet another driver

There are several other implementation, but they lack one or more features I needed:

  • support for different sensors from Sen6x family
  • support for shared I2C bus in asynchronous implementation
  • support for calibration/compensation commands

Features

  • embedded-hal - Enables async I2C support via embedded-hal.
  • embedded-hal-async - Enables async I2C support via embedded-hal-async.
  • embassy - Enables shared I2C bus support using embassy::embassy_sync::mutex::Mutex. This option enables embedded-hal-async
[dependencies]
sen6x-driver = { version = "0.0.3", features = ["embassy"] }

Sensirion SEN6x

The SEN6x sensor module family is an air quality platform that combines critical parameters such as particulate matter, relative humidity, temperature, VOC, NOx and either CO2 or formaldehyde, all in one compact package.

sen6x

Further information: Datasheet SEN6x

GenAI Usage

This project was created with the assistance of Claude and Gemini. Primarily, GenAI is used to:

  • Generate documentation
  • Check code against the datasheet
  • Fix warnings and clean up code

License

Licensed under MIT license

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, shall be licensed under MIT License, without any additional terms or conditions.