Skip to main content

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 version >> 21.2.2223

Documentation

This internal package documentation is available at https://pysds011.readthedocs.io/ Some other interesting reading are: - SDS011 datasheet http://cl.ly/ekot - This project is inspired by https://gist.github.com/kadamski/92653913a53baf9dd1a8

Development

Changelog

0.0.3 (2021-1-8)

  • cli get subcommands and produce meaningful results

  • robustness about error handling

  • Testing and documentation

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.3.tar.gz (10.3 kB view hashes)

Uploaded Source

Built Distribution

pysds011-0.0.3-py2.py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 2 Python 3

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