Component: RTD (MAX31865) (Environmental)

From Flowcode Help
Jump to navigationJump to search
Author Matrix TSL
Version 1.0
Category Environmental


RTD (MAX31865) component

Component to interface the MAX31865 RTD-to-digital converter IC. Uses a standard SPI interface to connect to the IC and measure RTD resistance / temperature. Compatible with PT100 and PT1000 temperature sensors.

Version information

Library Version, Component Version, Date, Author, Info
1, 1.0, 23-12-24, BR, Initial MAX31865 RTD component implementation


Detailed description

No detailed description exists yet for this component

Examples

No additional examples

Macro reference

AutoConvert

Fc9-comp-macro.png AutoConvert
Enables or disables automatic continuous conversion. 
Fc9-u8-icon.png - BYTE Enable
0 = One-shot, 1 = Continuous 
Fc9-void-icon.png - VOID Return


ClearFault

Fc9-comp-macro.png ClearFault
Clears any latched fault flags in the MAX31865. 
Fc9-void-icon.png - VOID Return


EnableBias

Fc9-comp-macro.png EnableBias
Enables or disables the MAX31865 bias current. 
Fc9-u8-icon.png - BYTE Enable
0 = Off, 1 = On 
Fc9-void-icon.png - VOID Return


Initialise

Fc9-comp-macro.png Initialise
Initialises the SPI bus and basic MAX31865 configuration. 
Fc9-void-icon.png - VOID Return


ReadFault

Fc9-comp-macro.png ReadFault
Reads the MAX31865 fault status register. 
Fc9-u8-icon.png - BYTE Return


ReadTemperature

Fc9-comp-macro.png ReadTemperature
Performs a sample and returns temperature in Degrees C. 
Fc9-f32-icon.png - FLOAT Return


Sample

Fc9-comp-macro.png Sample
Performs a single MAX31865 conversion and returns the raw sensor reading. 
Fc9-u16-icon.png - UINT Return


SetNotchFilter

Fc9-comp-macro.png SetNotchFilter
Sets the notch filter to 50Hz (1) or 60Hz (0). 
Fc9-u8-icon.png - BYTE Mode
0 = 50Hz, 1 = 60Hz 
Fc9-void-icon.png - VOID Return


SetWires

Fc9-comp-macro.png SetWires
Sets the RTD wiring mode (2/3/4-wire). 
Fc9-u8-icon.png - BYTE Wires
2, 3 or 4 wires 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png RTD Properties
Fc9-type-16-icon.png RTD Type
Selects the RTD type used with the MAX31865. 
Fc9-type-14-icon.png Reference Resistor (Ohms)
Reference resistor value used on the MAX31865 breakout (default 430 Ohms). 
Fc9-type-16-icon.png Notch Filter
 
Fc9-type-7-icon.png Bias Current
 
Fc9-type-7-icon.png Auto Convert
 
Fc9-type-16-icon.png RTD Wiring Mode
 
Fc9-conn-icon.png SPI Properties
Fc9-type-16-icon.png Channel
SPI Channel selector 
Fc9-type-16-icon.png Prescale
Prescale option selector 
Fc9-type-5-icon.png MOSI
SPI Data Out pin (MOSI). 
Fc9-type-5-icon.png MISO
SPI Data In pin (MISO). 
Fc9-type-5-icon.png CLK
SPI Clock pin (SCK). 
Fc9-type-5-icon.png CS / SS
Chip Select / Slave Select pin used to enable the MAX31865. 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_ThermocoupleMAX31865.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_ThermocoupleMAX31865.fcfx