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.

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-0.0.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distributions

pms5003-0.0.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

pms5003-0.0.5-py2-none-any.whl (5.4 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: pms5003-0.0.5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for pms5003-0.0.5.tar.gz
Algorithm Hash digest
SHA256 721ab02c7cd0e50743871f2faf7acfa7482653fd770a87a76d73cbfa00b9a896
MD5 2a661d010771f35d4c636d9cf2d16691
BLAKE2b-256 c80913a8dd1ccd070eb1a6e1091c0762de957572d6abb789aa43c122a715cc25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pms5003-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for pms5003-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 71faeada77d9d514304b6fa7d830d3bc17d626c605871c7c0ae7fee47b7976f4
MD5 9a3f8773cef795c7f911fc01906ed31d
BLAKE2b-256 861350142197780633fc5170d34423a17ff8c2f56078123fad5f364661d7cd36

See more details on using hashes here.

File details

Details for the file pms5003-0.0.5-py2-none-any.whl.

File metadata

  • Download URL: pms5003-0.0.5-py2-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.9

File hashes

Hashes for pms5003-0.0.5-py2-none-any.whl
Algorithm Hash digest
SHA256 8259f683e85b55c4f8e152b6a1174c264f2d48b3effcd57fcd73bacfd1e9b2fd
MD5 17ad60df20fc4fb5b484bf5284e13cd9
BLAKE2b-256 8203707216aaea01de456b38c496ef6bc8b7b9353b27247feae877713db0a435

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