I2C driver for the Sensirion STCC4 sensor family
Project description
Python I2C Driver for Sensirion STCC4
This repository contains the Python driver to communicate with a Sensirion STCC4 sensor over I2C.
Click here to learn more about the Sensirion STCC4 sensor.
The STCC4 is Sensirion's next generation miniature CO2 sensor for indoor air quality applications.
The default I²C address of STCC4 is 0x64.
[!NOTE] The SEK-STCC4 board from Sensirion includes a STCC4 and a SHT4x for temperature and humidity compensation, which is controlled by the STCC4 through the integrated I2C controller interface. The provided examples are designed considering this sensor configuration.
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 | black | GND | Ground | |
| 2 | red | VDD | Supply Voltage | 2.7V to 5.5V |
| 3 | green | SDA | I2C: Serial data input / output | |
| 4 | yellow | SCL | I2C: Serial clock input |
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_stcc4-1.1.0.tar.gz.
File metadata
- Download URL: sensirion_i2c_stcc4-1.1.0.tar.gz
- Upload date:
- Size: 519.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76c660e56288591a67d67232d728906243a0dd5abfc112dabc6e54f490d1e071
|
|
| MD5 |
a7cd7605d6a1f4f54290ba5f884f1f64
|
|
| BLAKE2b-256 |
993814109fb50a5d740ca1b303cbf964b2457efc489b833f24ed9948e6ac5d6e
|
File details
Details for the file sensirion_i2c_stcc4-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sensirion_i2c_stcc4-1.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf305cd5c8a26cd04bc612e4d403162ef3d0a818ef130daf095a82e31a81b44b
|
|
| MD5 |
43253a067d6e0a28ad7c6b93c0d9485e
|
|
| BLAKE2b-256 |
d9d6d4a82cc405b7a3e98356018418fc7362657f9c7e6eccf56af46f9b6ca243
|