MAX31865 - RTD Temperature sensor

class pyserialsensors.devices.max31865.MAX31865(*args, rtd_nominal=100, ref_resistor=430.0, wires=4, **kwargs)[source]

Driver for the MAX31865 thermocouple amplifier.

property auto_convert

The state of the sensor’s automatic conversion mode (True/False).

property bias

The state of the sensor’s bias (True/False).

clear_faults()[source]

Clear any fault state previously detected by the sensor.

exists()[source]

Check if the sensor is available.

property fault

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

get_data()[source]

Fetch data from sensor and write to default data layout defined in the base class

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.

property resistance

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

setup()[source]

Harware communication - Initialize communication bus - Communicate wire mode to device - Prepare default setup

property temperature

Read the temperature of the sensor and return its value in degrees Celsius. This math originates from: http://www.analog.com/media/en/technical-documentation/application-notes/AN709_0.pdf To match the naming from the app note we tell lint to ignore the Z1-4 naming.