Simple python driver for SDS011 PM sensor from Nova.
Project description
Simple python driver for SDS011 PM sensor from Nova.
Free software: MIT license
Installation
pip install pysds011
You can also install the in-development version with:
pip install https://github.com/michelepagot/pysds011/archive/master.zip
Usage
Package has a class interface
log = logging.getLogger(__name__)
ser = serial.Serial('/dev/ttyUSB0', 9600)
ser.open()
sd = driver.SDS011(ser, log)
sd.cmd_set_sleep(0)
sd.cmd_set_mode(sd.MODE_QUERY)
sd.cmd_firmware_ver()
- Package is also provided with a reference cli application
> pysds011.exe –port COM42
Documentation
SDS011 datasheet http://cl.ly/ekot This project is ispired by https://gist.github.com/kadamski/92653913a53baf9dd1a8
Development
Changelog
0.0.2 (2021-1-4)
Improved cli (first functional).
0.0.1 (2020-12-19)
First release on PyPI.
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
pysds011-0.0.2.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for pysds011-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f28bcb14bd1327ed32dfcf377efcda03bd273ac36ecc45653cba8b15dad91c40 |
|
MD5 | 7728160fe7de51e31082f5b710b58763 |
|
BLAKE2b-256 | d4ad149cb82a91ae53cd71e215fa63d98604faa716b45955096d047a83c3e01b |