#driver #embedded-hal-driver #aqi #pm2-5

no-std pmsa003i

Plantower PMSA003I Driver for Embedded HAL

4 releases

new 0.1.8 Oct 2, 2024
0.1.7 Sep 29, 2024

#216 in Embedded development

Download history 225/week @ 2024-09-08 143/week @ 2024-09-15 10/week @ 2024-09-22 433/week @ 2024-09-29

811 downloads per month

MIT/Apache

11KB
129 lines

Plantower PMSA003I Driver for Embedded HAL

Driver for the I2C connected Plantower PMSA003I particulate sensor.

Uses embedded-hal in order to be platform agnostic. It also works in no_std environments.

Returns all data as per the data sheet

Features

  • Blocking operation
  • Async operation if the async feature is specified
  • Calculation of AQI using the aqi crate if the aqi feature is specified

Example

See Pmsa003i for an example of how to use the library.

Got inspiration and direction from the following... thank you!


lib.rs:

Plantower PMSA003I Driver for Embedded HAL

Driver for the PMSA003I particulate sensor using embedded-hal.

Works on no_std and supports both async and blocking operation.

See [Pmsa003i] for an example of how to use the library.

Feature flags

Dependencies

~225–390KB