nanoFramework.Iot.Device.Pmsa003i
1.0.1
Prefix Reserved
dotnet add package nanoFramework.Iot.Device.Pmsa003i --version 1.0.1
NuGet\Install-Package nanoFramework.Iot.Device.Pmsa003i -Version 1.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="nanoFramework.Iot.Device.Pmsa003i" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="nanoFramework.Iot.Device.Pmsa003i" Version="1.0.1" />
<PackageReference Include="nanoFramework.Iot.Device.Pmsa003i" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add nanoFramework.Iot.Device.Pmsa003i --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: nanoFramework.Iot.Device.Pmsa003i, 1.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package nanoFramework.Iot.Device.Pmsa003i@1.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=nanoFramework.Iot.Device.Pmsa003i&version=1.0.1
#tool nuget:?package=nanoFramework.Iot.Device.Pmsa003i&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Plantower PMSA003I particulate-matter sensor
The PMSA003I measures PM1.0, PM2.5, and PM10 mass concentration and particle counts in six size bins. This binding reads the sensor's 32-byte frame over I2C and validates the frame header, length, and checksum.
Documentation
ESP32-C3 Super Mini wiring
| PMSA003I breakout | ESP32-C3 Super Mini | Notes |
|---|---|---|
| VIN | Board supply | Follow the breakout board's supply specification |
| GND | GND | Common ground |
| SDA | GPIO6 | I2C1 data |
| SCL | GPIO7 | I2C1 clock |
The fixed 7-bit I2C address is 0x12. Configure the ESP32 I2C pin functions before creating I2cDevice.
Usage
Configuration.SetPinFunction(6, DeviceFunction.I2C1_DATA);
Configuration.SetPinFunction(7, DeviceFunction.I2C1_CLOCK);
I2cConnectionSettings settings = new I2cConnectionSettings(1, Pmsa003i.DefaultI2cAddress);
I2cDevice i2cDevice = new I2cDevice(settings);
Pmsa003i sensor = new Pmsa003i(i2cDevice);
PmsReading reading = sensor.Read();
Debug.WriteLine($"PM2.5: {reading.Pm2Point5Atmospheric} ug/m3");
Malformed frames throw InvalidOperationException. Dispose the sensor to dispose its I2C device, or pass shouldDispose: false to retain ownership.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- nanoFramework.CoreLibrary (>= 1.17.11)
- nanoFramework.System.Device.I2c (>= 1.1.29)
- nanoFramework.System.Device.Model (>= 1.2.862)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.1 | 92 | 10/1/2026 |