Component: Thermistor (Environmental)
From Flowcode Help
Jump to navigationJump to search
Author | Matrix TSL |
Version | 1.1 |
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.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
GetIntegerTemperature |
Reads the ADC input and returns the calculated Temperature as Integer degrees C | |
[[File:]] - | Return |
![]() |
SetChannel |
Set the ADC Channel | |
[[File:]] - | ChannelID |
![]() |
Return |
![]() |
SetMinMax |
Set the minimum and maximum temperature values that can be shown and set on the thermometer readout. | |
[[File:]] - | Min |
Minimum Value | |
[[File:]] - | Max |
Maximum Value | |
![]() |
Return |
![]() |
GetRealTemperature |
Reads the ADC input and Returns the calculated Temperature as Float value in degrees C | |
[[File:]] - | Return |
![]() |
CalculateTemperature |
Converts the input ADC value and returns the Temperature in tenths of degree C | |
![]() |
ADCValue |
ADC Reading to be converted | |
[[File:]] - | Return |
![]() |
GetADCValue |
Returns the Raw ADC value from the Analogue Channel | |
![]() |
Return |
![]() |
Initialise |
Initialise to default of 11 bit resolution | |
![]() |
Return |
![]() |
Initialise |
Configures each matching sensor on the bus with the specified conversion bits. | |
![]() |
Return |
![]() |
WriteRegister |
A simple example showing a generic way to write a register using I2C. | |
![]() |
Address |
![]() |
Data |
![]() |
Return |
![]() |
Initialise |
[[File:]] - | Return |