Crates.io | sps30-i2c |
lib.rs | sps30-i2c |
version | 0.1.0 |
source | src |
created_at | 2020-08-07 06:28:16.15524 |
updated_at | 2020-08-11 09:53:30.164143 |
description | Platform-agnostic Rust driver for the SPS30 particulate matter sensor |
homepage | https://github.com/david-gherghita/sps30-i2c-rs |
repository | |
max_upload_size | |
id | 273878 |
size | 50,362 |
This is a platform agnostic Rust driver for the SPS30 particulate matter
sensor using the embedded-hal
traits.
The driver supports only floating point output and is written for the firmware version 2.1. Although it is fully compatible with older versions and the 2.2 version, it doesn't fully support the latest.
This driver allows you to:
start_measurement()
.stop_measurement
.read_data_ready_flag()
.read_measured_values()
.sleep()
.wake_up()
.start_fan_cleaning()
.read_auto_cleaning_interval()
.write_auto_cleaning_interval()
.read_device_product_type()
.read_device_serial_number()
.read_firmware_version()
.read_device_status_register()
.clear_device_status_register()
.device_reset()
.The SPS30 Particulate Matter (PM) sensor is a technological breakthrough in optical PM sensors. Its measurement principle is based on laser scattering and makes use of Sensirion's innovative contamination-resistance technology. This technology, together with high-quality and long-lasting components, enables precise measurements from its first operation and throughout its lifetime of more than ten years. In addition, Sensiron's advanced algorithms provide superior precision for different PM types and higher-resolution particle size binning, opening up new possibilities for the detection of different sorts of environmental dust and other particles.
The SPS30 has been designed for use in various applications and devices, such as:
Documentation:
To use this driver, import this crate and an embedded-hal
implementation,
then instantiate the device.
Please see examples folder.
For questions, issues, feature requests, and other changes, please file an issue in the github project.
Licensed under either of
at your option.
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.