Component: Thermistor Template (Sensors): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 76: | Line 76: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CalculateTemperature''' | ||
|- | |- | ||
| colspan="2" | Converts the input ADC value and returns the Temperature in tenths of degree C | | colspan="2" | Converts the input ADC value and returns the Temperature in tenths of degree C | ||
| Line 95: | Line 95: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetADCValue''' | ||
|- | |- | ||
| colspan="2" | Returns the Raw ADC value from the Analogue Channel | | colspan="2" | Returns the Raw ADC value from the Analogue Channel | ||
| Line 109: | Line 109: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetIntegerTemperature''' | ||
|- | |- | ||
| colspan="2" | Reads the ADC input and returns the calculated Temperature as Integer degrees C | | colspan="2" | Reads the ADC input and returns the calculated Temperature as Integer degrees C | ||
| Line 123: | Line 123: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetRealTemperature''' | ||
|- | |- | ||
| colspan="2" | Reads the ADC input and Returns the calculated Temperature as Float value in degrees C | | colspan="2" | Reads the ADC input and Returns the calculated Temperature as Float value in degrees C | ||
| Line 137: | Line 137: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetADCValue''' | ||
|- | |- | ||
| colspan="2" | Used to set the ADC value when an external ADC is being used. | | colspan="2" | Used to set the ADC value when an external ADC is being used. | ||
| Line 156: | Line 156: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetChannel''' | ||
|- | |- | ||
| colspan="2" | Set the ADC Channel | | colspan="2" | Set the ADC Channel | ||
| Line 175: | Line 175: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetTemperature''' | ||
|- | |- | ||
| colspan="2" | Simulation macro that sets the internal ADC value to the appropriate value for a given temperature. This allows all internal systems of the sensor to be simulated. | | colspan="2" | Simulation macro that sets the internal ADC value to the appropriate value for a given temperature. This allows all internal systems of the sensor to be simulated. | ||
| Line 195: | Line 195: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:23, 13 July 2026
| Author | Matrix |
| Version | 2.0 |
| Category | Sensors |
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.
Version information
Library Version, Component Version, Date, Author, Info 5, 2.0, 19-07-24, BR, Added compatibility for external ADC 5, 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
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 | |
| 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 | |
SetTemperature
Property reference
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