Skip to main content

PMS5003 Particulate Sensor

Project description

PMS5003 Particulate Sensor

Build Status Coverage Status PyPi Package Python Versions

Installing

Stable library from PyPi:

  • Just run sudo pip install pms5003

Latest/development library from GitHub:

  • git clone https://github.com/pimoroni/pms5003-python
  • cd pms5003-python
  • sudo ./install.sh

Requirements

The serial port on your Raspberry Pi must be enabled:

# Disable serial terminal over /dev/ttyAMA0
sudo raspi-config nonint do_serial 1

# Enable serial port
raspi-config nonint set_config_var enable_uart 1 /boot/config.txt

And additionally be using a full UART (versus the default miniUART):

Add the line dtoverlay=pi3-miniuart-bt to your /boot/config.txt

This will switch Bluetooth over to miniUART, see https://www.raspberrypi.org/documentation/configuration/uart.md for more details.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pms5003-1.0.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

pms5003-1.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file pms5003-1.0.0.tar.gz.

File metadata

  • Download URL: pms5003-1.0.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pms5003-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f474aa1048be8a6066262c812ea44c5f7be19417896ca88f79293fade5a82ed6
MD5 fa3dd442471cf2b0bc8bed7386dfbc8d
BLAKE2b-256 981f9db417757d74569ce9473e0945703df7513c53b25de8711974fbc4157c72

See more details on using hashes here.

File details

Details for the file pms5003-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pms5003-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for pms5003-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85f6f4ddbc5abfe7369d3178ec7e1fc98104a31800e54d3bb2ef319f62d19440
MD5 de544fb3383f5471d61b7828b9f83aee
BLAKE2b-256 7ffa99a9bfd3e0a54c912c739a31afe3e34b90c98f3d180f25b50a7b0f2b0321

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page