Component: Thermistor (EBM003) (EBM Modules)
From Flowcode Help
(Redirected from Component: ID 2f3dd5e3 b652 4045 9ab9 10d49440e5cd)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.1 |
Category | EBM Modules |
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. The component is also used with the EBM003 module, in which case the extra circuitry is already included. Default calibration is for the EBM003 module.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBM003v1.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBM003v1.fcfx
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 | |
- UINT | ADCValue |
ADC Reading to be converted | |
- INT | Return |
GetADCValue
GetADCValue | |
Returns the Raw ADC value from the Analogue Channel | |
- UINT | Return |
GetIntegerTemperature
GetIntegerTemperature | |
Reads the ADC input and returns the calculated Temperature as Integer degrees C | |
- INT | Return |
GetRealTemperature
GetRealTemperature | |
Reads the ADC input and Returns the calculated Temperature as Float value in degrees C | |
- FLOAT | Return |
SetChannel
SetChannel | |
Set the ADC Channel | |
- INT | ChannelID |
- VOID | Return |
SetTemperature