Introduction

Documentation Status Discord

CircuitPython module for the MAX31865 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.

Usage Example

See examples/simpletest.py for a demo of the usage.

Contributing

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

API Reference

adafruit_max31865

CircuitPython module for the MAX31865 platinum RTD temperature sensor. See examples/simpletest.py for an example of the usage.

  • Author(s): Tony DiCola
class adafruit_max31865.MAX31865(spi, cs, *, rtd_nominal=100, ref_resistor=430.0, wires=2)[source]

Driver for the MAX31865 thermocouple amplifier.

auto_convert

Get and set the boolean state of the sensor’s automatic conversion mode (True/False).

bias

Get and set the boolean state of the sensor’s bias (True/False).

clear_faults()[source]

Clear any fault state previously detected by the sensor.

fault

Get the fault state of the sensor. Use clear_faults to clear the fault state. Returns a 6-tuple of boolean values which indicate if any faults are present:

  • HIGHTHRESH
  • LOWTHRESH
  • REFINLOW
  • REFINHIGH
  • RTDINLOW
  • OVUV
read_rtd()[source]

Perform a raw reading of the thermocouple and return its 15-bit value. You’ll need to manually convert this to temperature using the nominal value of the resistance-to-digital conversion and some math. If you just want temperature use the temperature property instead.

resistance

Read the resistance of the RTD and return its value in Ohms.

temperature

Read the temperature of the sensor and return its value in degrees Celsius.