sm_tc
This is the python library to control the Eight Thermocouples DAQ 8-Layer Stackable HAT for Raspberry Pi.
Install
sudo pip install SMtc
Usage
~$ python
Python 3.10.7 (main, Nov 7 2022, 22:59:03) [GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sm_tc
>>> tc = sm_tc.SMtc(0)
>>> tc.get_temp(1)
26.5
>>>
More usage example in the examples folder
Functions prototype
class sm_tc.SMtc(stack = 0, i2c = 1)
- Description
- Init the SMtc object and check the card presence
- Parameters
- stack : Card stack level [0..7] set by the jumpers
- i2c : I2C port number, 1 - Raspberry default , 7 - rock pi 4, etc.
- Returns
- card object
set_sensor_type(channel, val)
- Description
- Set one channel thermocouple input type
- Parameters
- channel: The input channel number 1 to 8
- val: The thermocouple type [0..7] -> [B, E, J, K, N, R, S, T]
- Returns
- none
get_sensor_type(channel)
- Description
- Get one channel thermocouple input type
- Parameters
- channel: The input channel number 1 to 8
- Returns
- The thermocouple type [0..7] -> [B, E, J, K, N, R, S, T]
print_sensor_type(channel)
- Description
- Print one channel thermocouple input type [B, E, J, K, N, R, S, T]
- Parameters
- channel: The input channel number 1 to 8
- Returns
- none
get_temp(channel)
- Description
- Get one channel measured temperature in degee Celsious
- Parameters
- channel: The input channel number 1 to 8
- Returns
- Temperature in degree Celsious
Metadata
Release files for smtc 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| smtc-1.0.1.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| smtc-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 7.5 kB
Release files / smtc-1.0.1.tar.gz
| Download URL | smtc-1.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6941eb032a024e8d936ff7c7997aff60b3e80196c750eb64d51f0cc595bfa8a3
|
|
BLAKE2b-256 checksum How to use checksums |
edce2d7f6b01d661b85454744530279a82ddad7d5c5f49c8880dbe2465f1f6d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|
Release files / smtc-1.0.1-py2.py3-none-any.whl
| Download URL | smtc-1.0.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
32dc68438291c2985e73d94269dfe6625616385880f1414c5fd4bc608962374f
|
|
BLAKE2b-256 checksum How to use checksums |
8a4b916ddc2670cbc45eb455a50255c21776807a38e7466fbab587df116db471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.2
|