pimoroni / pms5003-circuitpython

CircuitPython library for the PMS5003 particulate sensor
MIT License
2 stars 5 forks source link

PMS5003 Particulate Sensor

Build Status Coverage Status PyPi Package Python Versions

Installing

Stable library from PyPi:

Latest/development library from GitHub:

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.