Difference between revisions of "Component: Thermocouple (MAX31855) (Environmental)"
From Flowcode Help
Jump to navigationJump to searchLine 17: | Line 17: | ||
==Component Source Code== | ==Component Source Code== | ||
− | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_ThermocoupleMAX31855.fcfx FC_Comp_Source_ThermocoupleMAX31855.fcfx] |
− | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/ | + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_ThermocoupleMAX31855.fcfx FC_Comp_Source_ThermocoupleMAX31855.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 75: | Line 75: | ||
Example program showing how to use the Thermocouple component. | Example program showing how to use the Thermocouple component. | ||
{{Fcfile|MAX31855_Example.fcfx|MAX31855_Example}} | {{Fcfile|MAX31855_Example.fcfx|MAX31855_Example}} | ||
+ | |||
+ | |||
Latest revision as of 13:13, 7 February 2023
Author | Matrix TSL |
Version | 1.0 |
Category | Environmental |
Contents
Thermocouple (MAX31855) component
Component to interface the MAX31855 IC from MAXIM. Uses a standard 3-wire SPI interface to connect to the IC and collect the temperature. IC available in different versions to suit different thermocouple types.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_ThermocoupleMAX31855.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_ThermocoupleMAX31855.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Example program showing how to use the Thermocouple component. MAX31855_Example
Macro reference
Initialise
Initialise | |
Configures the SPI bus ready for communications. | |
- VOID | Return |
ReadReference_Float
ReadReference_Float | |
Returns the reference temperature from the last sample as a floating point value in Degrees C. | |
- FLOAT | Return |
ReadReference_Int
ReadReference_Int | |
Returns the reference temperature from the last sample as an integer value in Degrees C. | |
- INT | Return |
ReadThermocouple_Float
ReadThermocouple_Float | |
Returns the thermocouple temperature from the last sample as a floating point value in Degrees C. | |
- FLOAT | Return |
ReadThermocouple_Int
ReadThermocouple_Int | |
Returns the thermocouple temperature from the last sample as an integer value in Degrees C. | |
- INT | Return |
Sample
Sample | |
Reads the memory of the MAX31855 IC and checks for errors. Must be called before any of the Read functions. Returns: 0=OK, 1=Open Circuit, 2=Short GND, 3=Short VCC | |
- BYTE | Return |