adafruit_max31855

This is a CircuitPython driver for the Maxim Integrated MAX31855 thermocouple amplifier module.

  • Author(s): Radomir Dopieralski

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_max31855.MAX31855(spi, cs)[source]

Driver for the MAX31855 thermocouple amplifier.

Parameters:
  • spi (SPI) – The SPI bus the MAX31856 is connected to.
  • cs (Pin) – The pin used for the CS signal.

Quickstart: Importing and using the MAX31855

Here is an example of using the MAX31855 class. First you will need to import the libraries to use the sensor

import board
from digitalio import DigitalInOut, Direction
import adafruit_max31855

Once this is done you can define your board.SPI object and define your sensor object

spi = board.SPI()
cs = digitalio.DigitalInOut(board.D5)  # Chip select of the MAX31855 board.
sensor = adafruit_max31856.MAX31855(spi, cs)

Now you have access to the temperature attribute

temperature = sensor.temperature
reference_temperature

Internal reference temperature in degrees Celsius.

temperature

Thermocouple temperature in degrees Celsius.

temperature_NIST

Thermocouple temperature in degrees Celsius, computed using raw voltages and NIST approximation for Type K, see: https://srdata.nist.gov/its90/download/type_k.tab