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.
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
| 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ea454fb236892b6eb434333d8208fa8c08fa2187352481fc90938e0c5262cb9
|
|
| MD5 |
bf329ba585fc727ba64d959c9c2a438f
|
|
| BLAKE2b-256 |
ba5c9bc79a9d6dccfadcbb80c63b8766ea6eda9fd4265954ba9b2adcf46e9deb
|
File details
Details for the file sensirion_i2c_scd4x-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sensirion_i2c_scd4x-1.1.0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29d002b088c87cdf2c039a2b3aa3241d5f70b4caef68f2c0fa0a93661fd6c237
|
|
| MD5 |
8d3e405a4ab9bcafac12c5358a74a609
|
|
| BLAKE2b-256 |
c3b8ecdb86e9a145535245235460a5ccc0dc4f9638665f2fc5006450b27999e0
|