Difference between revisions of "Component: Thermistor Template (Sensors)"
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_Thermistor_base.fcfx FC_Comp_Source_Thermistor_base.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_Thermistor_base.fcfx FC_Comp_Source_Thermistor_base.fcfx] |
==Detailed description== | ==Detailed description== | ||
Line 58: | Line 58: | ||
This example simply reads the value from the thermistor sensor component and outputs the value to an LCD as a temperature in degrees C. | This example simply reads the value from the thermistor sensor component and outputs the value to an LCD as a temperature in degrees C. | ||
{{Fcfile|EBM003 - Test Program.fcfx|EBM003 Example}} | {{Fcfile|EBM003 - Test Program.fcfx|EBM003 Example}} | ||
+ | |||
+ | |||
Revision as of 13:13, 7 February 2023
Author | Matrix |
Version | 1.0 |
Category | Sensors |
Contents
Thermistor Template component
Base component for creating thermistors. Has no GUI - this would be added by concrete examples using this basem which may or may not expose the propertes.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Thermistor_base.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Thermistor_base.fcfx
Detailed description
No detailed description exists yet for this component
Examples
This example simply reads the value from the thermistor sensor component and outputs the value to an LCD as a temperature in degrees C. EBM003 Example
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