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).
-
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.
-