Skip to main content

I2C driver for the Sensirion SCD4X sensor family

Project description

Python I2C Driver for Sensirion SCD4X

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

SCD4X picture

Click here to learn more about the Sensirion SCD4X 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
SCD40 0x62
SCD41 0x62
SCD43 0x62

The following instructions and examples use a SCD41.

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 yellow SCL I2C: Serial clock input
2 black GND Ground
3 red VDD Supply Voltage 2.4V to 5.5V
4 green SDA I2C: Serial data input / output

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_scd4x-1.1.0.tar.gz (15.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_scd4x-1.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file sensirion_i2c_scd4x-1.1.0.tar.gz.

File metadata

  • Download URL: sensirion_i2c_scd4x-1.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sensirion_i2c_scd4x-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3ea454fb236892b6eb434333d8208fa8c08fa2187352481fc90938e0c5262cb9
MD5 bf329ba585fc727ba64d959c9c2a438f
BLAKE2b-256 ba5c9bc79a9d6dccfadcbb80c63b8766ea6eda9fd4265954ba9b2adcf46e9deb

See more details on using hashes here.

File details

Details for the file sensirion_i2c_scd4x-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sensirion_i2c_scd4x-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29d002b088c87cdf2c039a2b3aa3241d5f70b4caef68f2c0fa0a93661fd6c237
MD5 8d3e405a4ab9bcafac12c5358a74a609
BLAKE2b-256 c3b8ecdb86e9a145535245235460a5ccc0dc4f9638665f2fc5006450b27999e0

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