Python UART Driver for Sensirion SPS30
This repository contains the Python driver to communicate with a Sensirion SPS30 sensor over UART using the SHDLC protocol.
Click here to learn more about the Sensirion SPS30 sensor.
Connect the sensor
You can connect your sensor over the provided USB cable. For special setups check out the sensor pinout in the section below.
Sensor pinout
| Pin | Cable Color | Name | Description | Comments |
|---|---|---|---|---|
| 1 | red | VDD | Supply Voltage | 5V |
| 2 | green | RX | UART: Transmission pin for communication | |
| 3 | yellow | TX | UART: Receiving pin for communication | |
| 4 | SEL | Interface select | Leave floating to select SHDLC | |
| 5 | black | GND | Ground |
Documentation & Quickstart
See the documentation page for an API description and a quickstart example.
Contributing
Check coding style
The coding style can be checked with flake8:
pip install -e .[test] # Install requirements
flake8 # Run style check
In addition, we check the formatting of files with
editorconfig-checker:
pip install editorconfig-checker==2.0.3 # Install requirements
editorconfig-checker # Run check
License
See LICENSE.
Metadata
Release files for sensirion-uart-sps30 1.0.0
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 |
|---|---|---|---|---|
| sensirion_uart_sps30-1.0.0.tar.gz | 9.6 kB | Without provenance | Details for sensirion_uart_sps30-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sensirion_uart_sps30-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for sensirion_uart_sps30-1.0.0-py3-none-any.whl |
Total release size: 19.1 kB
Release files / sensirion_uart_sps30-1.0.0.tar.gz
| Download URL | sensirion_uart_sps30-1.0.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebe63837ed7fd11d1a0c4d63770b71838d8d49a37da77e717d071feea8f8555e
|
|
BLAKE2b-256 checksum How to use checksums |
2a3694855fbcc4681ee84d2e704fb41303518de40a2fb920e147e19bafcc9d61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / sensirion_uart_sps30-1.0.0-py3-none-any.whl
| Download URL | sensirion_uart_sps30-1.0.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15acb32e94e26b509b896df154f4f1cf40ce997f6da849603f09d65f9fca486e
|
|
BLAKE2b-256 checksum How to use checksums |
fe8118e2d4cd3fc2d65befbad7dda8a2dc37e8d78e9a0ee54a889d1469ff0033
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for sensirion-uart-sps30 1.0.0
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.