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

no-std pmsa003i

Plantower PMSA003I Driver for Embedded HAL

5 releases

0.1.9 Oct 26, 2024
0.1.8 Oct 2, 2024
0.1.7 Sep 29, 2024

#418 in Embedded development

Download history 20/week @ 2024-09-07 345/week @ 2024-09-14 13/week @ 2024-09-21 394/week @ 2024-09-28 42/week @ 2024-10-05 7/week @ 2024-10-12 116/week @ 2024-10-26 6/week @ 2024-11-02

132 downloads per month

MIT/Apache

11KB
131 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