Jump to content

Component: RTD (MAX31865) (Environmental): Difference between revisions

From Flowcode Help
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable""
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(4 intermediate revisions by the same user not shown)
Line 34: Line 34:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AutoConvert'''
| width="90%" class="mtx-class-macrohead" | '''AutoConvert'''
|-
|-
| colspan="2" | Enables or disables automatic continuous conversion. 
| colspan="2" | Enables or disables automatic continuous conversion. 
Line 53: Line 53:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ClearFault'''
| width="90%" class="mtx-class-macrohead" | '''ClearFault'''
|-
|-
| colspan="2" | Clears any latched fault flags in the MAX31865. 
| colspan="2" | Clears any latched fault flags in the MAX31865. 
Line 67: Line 67:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EnableBias'''
| width="90%" class="mtx-class-macrohead" | '''EnableBias'''
|-
|-
| colspan="2" | Enables or disables the MAX31865 bias current. 
| colspan="2" | Enables or disables the MAX31865 bias current. 
Line 86: Line 86:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
| width="90%" class="mtx-class-macrohead" | '''Initialise'''
|-
|-
| colspan="2" | Initialises the SPI bus and basic MAX31865 configuration. 
| colspan="2" | Initialises the SPI bus and basic MAX31865 configuration. 
Line 100: Line 100:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadFault'''
| width="90%" class="mtx-class-macrohead" | '''ReadFault'''
|-
|-
| colspan="2" | Reads the MAX31865 fault status register. 
| colspan="2" | Reads the MAX31865 fault status register. 
Line 114: Line 114:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadTemperature'''
| width="90%" class="mtx-class-macrohead" | '''ReadTemperature'''
|-
|-
| colspan="2" | Performs a sample and returns temperature in Degrees C. 
| colspan="2" | Performs a sample and returns temperature in Degrees C. 
Line 128: Line 128:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Sample'''
| width="90%" class="mtx-class-macrohead" | '''Sample'''
|-
|-
| colspan="2" | Performs a single MAX31865 conversion and returns the raw sensor reading. 
| colspan="2" | Performs a single MAX31865 conversion and returns the raw sensor reading. 
Line 142: Line 142:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetNotchFilter'''
| width="90%" class="mtx-class-macrohead" | '''SetNotchFilter'''
|-
|-
| colspan="2" | Sets the notch filter to 50Hz (1) or 60Hz (0). 
| colspan="2" | Sets the notch filter to 50Hz (1) or 60Hz (0). 
Line 161: Line 161:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetWires'''
| width="90%" class="mtx-class-macrohead" | '''SetWires'''
|-
|-
| colspan="2" | Sets the RTD wiring mode (2/3/4-wire). 
| colspan="2" | Sets the RTD wiring mode (2/3/4-wire). 
Line 181: Line 181:
{| class="mtx-class-macrotable wikitable"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | RTD Properties
| width="90%" class="mtx-class-propfolder" | RTD Properties
|-
|-
|-
|-
Line 219: Line 219:
| colspan="2" |  
| colspan="2" |  
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | SPI Properties
| width="90%" class="mtx-class-propfolder" | SPI Properties
|-
|-
|-
|-

Latest revision as of 14:36, 13 July 2026

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

AutoConvert
Enables or disables automatic continuous conversion. 
- BYTE Enable
0 = One-shot, 1 = Continuous 
- VOID Return


ClearFault

ClearFault
Clears any latched fault flags in the MAX31865. 
- VOID Return


EnableBias

EnableBias
Enables or disables the MAX31865 bias current. 
- BYTE Enable
0 = Off, 1 = On 
- VOID Return


Initialise

Initialise
Initialises the SPI bus and basic MAX31865 configuration. 
- VOID Return


ReadFault

ReadFault
Reads the MAX31865 fault status register. 
- BYTE Return


ReadTemperature

ReadTemperature
Performs a sample and returns temperature in Degrees C. 
- FLOAT Return


Sample

Sample
Performs a single MAX31865 conversion and returns the raw sensor reading. 
- UINT Return


SetNotchFilter

SetNotchFilter
Sets the notch filter to 50Hz (1) or 60Hz (0). 
- BYTE Mode
0 = 50Hz, 1 = 60Hz 
- VOID Return


SetWires

SetWires
Sets the RTD wiring mode (2/3/4-wire). 
- BYTE Wires
2, 3 or 4 wires 
- VOID Return


Property reference

Properties
RTD Properties
RTD Type
Selects the RTD type used with the MAX31865. 
Reference Resistor (Ohms)
Reference resistor value used on the MAX31865 breakout (default 430 Ohms). 
Notch Filter
 
Bias Current
 
Auto Convert
 
RTD Wiring Mode
 
SPI Properties
Channel
SPI Channel selector 
Prescale
Prescale option selector 
MOSI
SPI Data Out pin (MOSI). 
MISO
SPI Data In pin (MISO). 
CLK
SPI Clock pin (SCK). 
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