Difference between revisions of "Component: Analogue Temp Sensors (Environmental)"
From Flowcode Help
Jump to navigationJump to searchLine 13: | Line 13: | ||
==Analogue Temp Sensors component== | ==Analogue Temp Sensors component== | ||
− | A range of the most popular temperature analogue sensors which are: AD22100, AD22103, LM135, LM235, LM335, LM35 | + | A range of the most popular temperature analogue sensors which are: AD22100, AD22103, LM135, LM235, LM335, LM35, LM60, MCP9700, MCP9701, TC1047, TMP35, TMP36, TMP37 & TSIC301. Uses a single ADC pin which will allow you to display the temperature in C or F. If your sensor is not listed, there is a Custom option. You will be able to enter the scale factor, offset voltage, min and maximum temperatures If the temperature is outside the min and max values, then 999.9 will be displayed. |
==Component Pack== | ==Component Pack== | ||
Line 20: | Line 20: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 30: | Line 32: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Revision as of 16:23, 7 January 2022
Author | Medelec35 |
Version | 1.0 |
Category | Environmental |
Contents
Analogue Temp Sensors component
A range of the most popular temperature analogue sensors which are: AD22100, AD22103, LM135, LM235, LM335, LM35, LM60, MCP9700, MCP9701, TC1047, TMP35, TMP36, TMP37 & TSIC301. Uses a single ADC pin which will allow you to display the temperature in C or F. If your sensor is not listed, there is a Custom option. You will be able to enter the scale factor, offset voltage, min and maximum temperatures If the temperature is outside the min and max values, then 999.9 will be displayed.
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
Example Program showing how to show the temperature in Celsius and Fahrenheit and expected ADC pin voltage on an LCD.
Analogue Sensors Example
Downloadable macro reference
![]() |
VoltageADC |
Calculates what the approximate voltage should be based on Vref, Scale factor, Offset. For TSIC301, based on Max temp and Min temp only. | |
![]() |
Return |
![]() |
GetTempIntFX10 |
![]() |
Return |
![]() |
IntValueADC |
![]() |
Return |
![]() |
GetTempFloatF |
Value of the temperature in deg F | |
![]() |
Return |
![]() |
GetTempFloatC |
Value of the temperature in deg C | |
![]() |
Return |