A python 3 interface for MAX31855 thermocouple IC
Project description
pyMAX31855
This module is a Python3 based interface to a max31855 with k-type thermocouple.
It was tested on a raspberry pi 0 with adafruit breakout board.
The python module from adafruit was apparently broken.
Uses NIST correction for k-type thermocouple.
A simple usage example
Connect the max31855 to spi0.0 and run this example code.
from pprint import pprint as pp
import time
from max31855 import max31855
obj_ = max31855(bus=0,device=0)
try:
while True:
pp(obj_.read_value())
time.sleep(5)
except KeyboardInterrupt:
pass
This will print a value dictionary (manually commented)
{'fault': None,#<-- the fault status
'hexdata': '01781820',#<-- the sensors datagram
't_rj': 24.125,#<-- cold junction temperature
't_tc': 23.5,#<-- thermocouple temperature
't_tc_lin': 23.471984356580563,#<-- linearized thermocouple temperature
'u_rj': 0.9648033405278587,#<-- junction voltage
'u_tc': -0.0257975}#<-- thermocouple voltage
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size pyMAX31855-0.0.1-py3-none-any.whl (18.2 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size pyMAX31855-0.0.1.tar.gz (5.2 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for pyMAX31855-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e021efa1dfe94f47a34e22584057ff9bc9448d5cf4e85482a95d5cc4185b729 |
|
MD5 | 7e37066106bc7b0c92999eac082bf841 |
|
BLAKE2-256 | 99fb1db6109ed8faad30ba1a9a3f7c8ebf3bf25201032cff5d33c8f118d82f66 |