Component: Thermistor (Environmental)
From Flowcode Help
(Redirected from Component: ID 93ab1895 66cf 4fd8 a04f 79f09acc19e6)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 2.0 |
Category | Environmental |
Contents
Thermistor component
A generic thermistor component that can be used to simulate and create code for any thermistor with a known temperature/resistance curve. Thermistor is connected in a simple potential divider circuit - thermistor between ADC input and 0V, and a fixed resistor between ADC and the positive supply. Default calibration is for the EBM003 module.
Version information
Library Version, Component Version, Date, Author, Info 9, 2.0, 19-07-24, BR, Added compatibility for external ADC 9, 2.0, 19-07-24, BR, Allowed full bit depth usage of the internal ADC
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
CalculateTemperature
![]() |
CalculateTemperature |
Converts the input ADC value and returns the Temperature in tenths of degree C | |
![]() |
ADCValue |
ADC Reading to be converted | |
![]() |
Return |
GetADCValue
![]() |
GetADCValue |
Returns the Raw ADC value from the Analogue Channel | |
![]() |
Return |
GetIntegerTemperature
![]() |
GetIntegerTemperature |
Reads the ADC input and returns the calculated Temperature as Integer degrees C | |
![]() |
Return |
GetRealTemperature
![]() |
GetRealTemperature |
Reads the ADC input and Returns the calculated Temperature as Float value in degrees C | |
![]() |
Return |
SetADCValue
![]() |
SetADCValue |
Used to set the ADC value when an external ADC is being used. | |
![]() |
AdcValue |
Value of the external ADC. e.g. 0-255 for an 8-bit ADC | |
![]() |
Return |
SetChannel
![]() |
SetChannel |
Set the ADC Channel | |
![]() |
ChannelID |
![]() |
Return |
SetMinMax
![]() |
SetMinMax |
Set the minimum and maximum temperature values that can be shown and set on the thermometer readout. | |
![]() |
Min |
Minimum Value | |
![]() |
Max |
Maximum Value | |
![]() |
Return |
SetTemperature
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Thermistor.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Thermistor.fcfx