Skip to main content

I2C driver for the Sensirion LD20 sensor family

Project description

Python I2C Driver for Sensirion LD20

This repository contains the Python driver to communicate with a Sensirion sensor of the LD20 family over I2C.

LD20 picture

Click here to learn more about the Sensirion LD20 sensor family.

Not all sensors of this driver family support all measurements. In case a measurement is not supported by all sensors, the products that support it are listed in the API description.

Supported sensor types

Sensor name I²C Addresses
LD20-0600L 0x08
LD20-2600B 0x08

The following instructions and examples use a LD20-0600L.

Connect the sensor

You can connect your sensor over a SEK-SensorBridge. For special setups you find the sensor pinout in the section below.

Sensor pinout

sensor wiring picture

Pin Cable Color Name Description Comments
1 green SDA I2C: Serial data input / output
2 red VDD Supply Voltage 3.2V to 3.8V
3 black GND Ground
4 yellow SCL I2C: Serial clock input
5 NC Do not connect

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.

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

sensirion_i2c_ld20-1.0.0.tar.gz (163.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sensirion_i2c_ld20-1.0.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file sensirion_i2c_ld20-1.0.0.tar.gz.

File metadata

  • Download URL: sensirion_i2c_ld20-1.0.0.tar.gz
  • Upload date:
  • Size: 163.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sensirion_i2c_ld20-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cfc72e985c71fc80e5bd28c1143a135ed2621085b0c15f700a157c2511bf8765
MD5 71bf1299d2924db0b4aa3ace170ffad5
BLAKE2b-256 c0bd1b6bc5e6792e753812897034835e3bd9ccf4cb3fc8b9185b9f07a112f6f7

See more details on using hashes here.

File details

Details for the file sensirion_i2c_ld20-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sensirion_i2c_ld20-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a2bd94792cebf5dad9d3aac69e86f7ad8d32fd1b395c1ceecee599982487a98
MD5 6a58e4a94e284ceda290899872bede6f
BLAKE2b-256 2edc3c317506228b0d85170a6274b5d58bb3add403d52a18082ee3ee4085b65e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page