PMS5003 Particulate Sensor
Installing
Note The code in this repository supports both the Enviro+ and Enviro Mini boards. The Enviro Mini board does not have the Gas sensor or the breakout for the PM sensor.
:warning: This library now supports Python 3 only, Python 2 is EOL - https://www.python.org/doc/sunset-python-2/
Install and configure dependencies from GitHub:
git clone https://github.com/pimoroni/pms5003-pythoncd pms5003-python./install.sh
Note Libraries will be installed in the "pimoroni" virtual environment, you will need to activate it to run examples:
source ~/.virtualenvs/pimoroni/bin/activate
Note Raspbian/Raspberry Pi OS Lite users may first need to install git: sudo apt install git
Or... Install from PyPi and configure manually:
python3 -m venv --system-site-packages $HOME/.virtualenvs/pimoroni- Run
python3 -m pip install pms5003
Note this will not perform any of the required configuration changes on your Pi, you may additionally need to:
Bookworm
- Enable serial:
raspi-config nonint do_serial_hw 0 - Disable serial terminal:
raspi-config nonint do_serial_cons 1 - Add
dtoverlay=pi3-miniuart-btto your/boot/config.txt
Bullseye
- Enable serial:
raspi-config nonint set_config_var enable_uart 1 /boot/config.txt - Disable serial terminal:
sudo raspi-config nonint do_serial 1 - Add
dtoverlay=pi3-miniuart-btto your/boot/config.txt
In both cases the last line will switch Bluetooth over to miniUART, see https://www.raspberrypi.org/documentation/configuration/uart.md for more details.
1.0.1
- Remove platform detection and default to Pi-compatible pins
- Support passing in LineRequest and offset for custom pins (supported in gpiodevice>=0.0.4)
1.0.0
- Repackage to hatch/pyproject.toml
- Port to gpiod/gpiodevice (away from RPi.GPIO)
0.0.5
- BugFix: Read start-of-frame a byte at a time to avoid misalignment issues, potential fix for #2, #3 and #4
- Enhancement: Clarified error message when length packet cannot be read
- Enhancement: Clarified error message when start of frame cannot be read
- Enhancement: Added new error message where raw data length is less than expected (frame length)
0.0.4
- Packaging improvements/bugfix from boilerplate
0.0.3
- Added pyserial dependency
0.0.2
- Added reset function
0.0.1
- Initial Release
Metadata
Release files for pms5003 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pms5003-1.0.1.tar.gz | 12.5 kB | Without provenance | Details for pms5003-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pms5003-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pms5003-1.0.1-py3-none-any.whl |
Total release size: 20.4 kB
Release files / pms5003-1.0.1.tar.gz
| Download URL | pms5003-1.0.1.tar.gz |
|---|---|
| Size | 12.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92a248bd74910202beab5c2784b8a2f131a6c643eedff5502cc52652d415232b
|
|
BLAKE2b-256 checksum How to use checksums |
ee490cba310a578061b80994f66b6f7924d511b2add0a68d7abb09bfb88b1f94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Release files / pms5003-1.0.1-py3-none-any.whl
| Download URL | pms5003-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38f51a40d1a09efb4bb7f6f01376dc870ed720253a664a1f4d1ae19581f6e3db
|
|
BLAKE2b-256 checksum How to use checksums |
4a78ae39517e1e0977397f273a9f9be9c0847e832365106a5090851dbd76c2a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.2
|
Security for pms5003 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.