Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

A CircuitPython driver for the MAX31856 Universal Thermocouple Amplifier

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-max31856

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-max31856

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-max31856

Usage Example

import board
import digitalio
import adafruit_max31856

# Create sensor object, communicating over the board's default SPI bus
spi = board.SPI()

# allocate a CS pin and set the direction
cs = digitalio.DigitalInOut(board.D5)
cs.direction = digitalio.Direction.OUTPUT

# create a thermocouple object with the above
thermocouple = adafruit_max31856.MAX31856(spi, cs)

# measure the temperature! (takes approx 160ms)
print(thermocouple.temperature)

# alternative (non-blocking) way to get temperature
thermocouple.initiate_one_shot_measurement()
# <perform other tasks>
# now wait for measurement to complete
while thermocouple.oneshot_pending:
  pass
print(thermocouple.unpack_temperature())

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Release files for adafruit-circuitpython-max31856 0.12.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-max31856 0.12.7
File Size Uploaded
adafruit_circuitpython_max31856-0.12.7.tar.gz 26.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-max31856 0.12.7
File Interpreter ABI Platform
adafruit_circuitpython_max31856-0.12.7-py3-none-any.whl Python 3 none any Details

Total release size: 35.0 kB

Release files / adafruit_circuitpython_max31856-0.12.7.tar.gz

Download URL adafruit_circuitpython_max31856-0.12.7.tar.gz
Size 26.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f404ba2a14b2c4f583a0ca2b6e46e0551de5f02ae8eea08f63fe4cde330ead70
BLAKE2b-256 checksum
How to use checksums
2a2fd5f23119b76d256ee7a3ba863fe57232a1c5abbe53d9c5cd7686c021ad4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_max31856-0.12.7-py3-none-any.whl

Download URL adafruit_circuitpython_max31856-0.12.7-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e8847d6cc4dce3a3f09d4e6199df5b136223e9dfc8326261d64a4f16fa39695
BLAKE2b-256 checksum
How to use checksums
fbb57e38c7b3633883df74b148196b42128bf2f236daca8bf2a458aa14a0c5b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

0.12.7 This release

2 release files

0.12.6

2 release files

0.12.5

2 release files

0.12.4

2 release files

0.12.3

2 release files

0.12.2

2 release files

0.12.0

2 release files

0.11.7

2 release files

0.11.6

2 release files

0.11.5

2 release files

0.11.4

2 release files

0.11.3

2 release files

0.11.2

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.0

1 release file

0.9.11

1 release file

0.9.10

1 release file

0.9.9

1 release file

0.9.8

1 release file

0.9.7

1 release file

0.9.6

1 release file

0.9.5

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9.0

1 release file

0.8.4

1 release file

0.8.3

1 release file

0.8.2

1 release file

0.8.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page