Skip to main content

I2C driver for the Sensirion STC42 sensor family

Project description

Python I2C Driver for Sensirion STC42

This repository contains the Python driver to communicate with a Sensirion STC42A sensor over I2C.

STC42 picture

Click here to learn more about the Sensirion STC42A sensor.

The STC42A is a sensor for measuring hydrogen in air.

The default I²C address of STC42A is 0x29. Additionally supported I²C addresses are 0x2A, 0x2B.

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 black GND Ground
2 red VDD Supply Voltage 3.15V to 3.45V
3 blue 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


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_stc42-1.0.1.tar.gz (11.5 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_stc42-1.0.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file sensirion_i2c_stc42-1.0.1.tar.gz.

File metadata

  • Download URL: sensirion_i2c_stc42-1.0.1.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sensirion_i2c_stc42-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b2aa66b1c4b4c1ea0126c6584e3738856c1c73fb907d653f06cd82e0f46c8178
MD5 18b4cfb395b08d6af5b5882ac7dc2e93
BLAKE2b-256 d2340fa57a0afec7d2f7939cea4d7d8579e91f8141639cb34e91b30d05c95b8c

See more details on using hashes here.

File details

Details for the file sensirion_i2c_stc42-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sensirion_i2c_stc42-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33bf511f6b7348098ad8e482da1b125dfaebba34c2f20f8a062019833e988953
MD5 2523b420471938484b14a6d9bfb308d1
BLAKE2b-256 2efc8c9f5ac6ce5abc4713130b57f5e8d6d480fc7eafeaa709602ac185a6ed90

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