Difference between revisions of "Component: Analogue Temp Sensors (Environmental)"
From Flowcode Help
Jump to navigationJump to search (XML import) |
|||
Line 1: | Line 1: | ||
− | + | {| style="width:50%" | |
− | {| | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Author | + | | width="20%" style="color:gray;" | Author |
| Medelec35 | | Medelec35 | ||
|- | |- | ||
− | | width="20%" style="color: gray;" | Version | + | | width="20%" style="color:gray;" | Version |
− | | 1.0 | + | | 1.0 |
|- | |- | ||
− | | width="20%" style="color: gray;" | Category | + | | width="20%" style="color:gray;" | Category |
| Environmental | | Environmental | ||
|} | |} | ||
+ | ==Analogue Temp Sensors component== | ||
+ | A range of the most popular temperature analogue sensors which are: AD22100, AD22103, LM135, LM235, LM335, LM35, LM36, LM37, 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== |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | SENSORS | |
− | |||
+ | ==Detailed description== | ||
− | + | ''No detailed description exists yet for this component'' | |
− | === | + | ==Examples== |
− | |||
− | |||
− | '' | + | ''<span style="color:red;">No additional examples</span>'' |
− | |||
+ | ==Downloadable macro reference== | ||
− | '''Return | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''VoltageADC''' | ||
+ | |- | ||
+ | | colspan="2" | Calculates what the approximate voltage should be based on Vref, Scale factor, Offset. For TSIC301, based on Max temp and Min temp only. | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetTempIntCX10''' | ||
+ | |- | ||
+ | | colspan="2" | | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | |||
− | ''' | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetTempIntFX10''' | ||
+ | |- | ||
+ | | colspan="2" | | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''IntValueADC''' | ||
+ | |- | ||
+ | | colspan="2" | | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-s16-icon.png]] - INT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | : | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | |
− | == | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetTempFloatF''' |
− | Value of the temperature in deg | + | |- |
− | + | | colspan="2" | Value of the temperature in deg F | |
− | + | |- | |
− | + | |- | |
− | : | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT |
− | + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | |
− | + | |} | |
− | |||
− | |||
− | |||
+ | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
+ | |- | ||
+ | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
+ | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetTempFloatC''' | ||
+ | |- | ||
+ | | colspan="2" | Value of the temperature in deg C | ||
+ | |- | ||
+ | |- | ||
+ | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-f32-icon.png]] - FLOAT | ||
+ | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
+ | |} | ||
− | |||
− | |||
==Property reference== | ==Property reference== | ||
− | |||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties''' | |
− | + | |- | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | Select Sensor | |
− | + | |- | |
− | + | | colspan="2" | | |
− | Analogue Input Channel - Which pin is the analogue input connected to? | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-6-icon.png]] | |
− | + | | width="90%" | Channel | |
− | + | |- | |
− | + | | colspan="2" | Analogue Input Channel - Which pin is the analogue input connected to? | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |
− | + | | width="90%" | Vref (mV) | |
− | + | |- | |
− | + | | colspan="2" | | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] | |
− | + | | width="90%" | VRef option | |
− | + | |- | |
− | Defines what is used as the ADC maximum reference. ADC Range = GND to VRef Voltage | + | | colspan="2" | Defines what is used as the ADC maximum reference. ADC Range = GND to VRef Voltage VDD - Defines the microcontrollers power supply pin as the max reference, VREF+ Pin - Dedicated pin on the microcontroller to allow for a variable reference voltage. |
− | + | |- | |
− | VDD - Defines the microcontrollers power supply pin as the max reference, | + | | width="10%" align="center" | [[File:Fc9-type-16-icon.png]] |
− | + | | width="90%" | Conversion speed | |
− | VREF+ Pin - Dedicated pin on the microcontroller to allow for a variable reference voltage. | + | |- |
− | + | | colspan="2" | Clock setting to select how fast the ADC peripheral will perform an ADC conversion. The FRC setting is based on a RC time base and so will vary with temperature and pressure. Other settings are generally based on divisions of the master clock. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]] | |
− | + | | width="90%" | Acquisition cycles | |
− | + | |- | |
− | Clock setting to select how fast the ADC peripheral will perform an ADC conversion. | + | | colspan="2" | Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. |
− | + | |- | |
− | The FRC setting is based on a RC time base and so will vary with temperature and pressure. | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] |
− | + | | width="90%" | Scale factor (mV x100) | |
− | Other settings are generally based on divisions of the master clock. | + | |- |
− | + | | colspan="2" | for a scale factor of 22mv/C or 22mV/F it's 2200 Scale factor is set for you automatically. It can only be adjusted with the Custom option. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |
− | + | | width="90%" | Offset (mV) | |
− | + | |- | |
− | Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. | + | | colspan="2" | Offset is set for you automatically. It can only be adjusted with the Custom option. |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-21-icon.png]] | |
− | + | | width="90%" | Tot Avage Samples | |
− | + | |- | |
− | + | | colspan="2" | | |
− | for a scale factor of 22mv/C or 22mV/F it's 2200 | + | |- |
− | + | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]] | |
− | Scale factor is set for you automatically. | + | | width="90%" | Max Temp |
− | + | |- | |
− | It can only be adjusted with the Custom option. | + | | colspan="2" | Max Temp the sensor can reach is set for you automatically. It can only be adjusted with the Custom option. |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-14-icon.png]] | |
− | + | | width="90%" | Min Temp | |
− | + | |- | |
− | + | | colspan="2" | Max Temp the sensor can reach is set for you automatically. It can only be adjusted with the Custom option. | |
− | Offset is set for you automatically. | + | |- |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] | |
− | It can only be adjusted with the Custom option. | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections''' |
− | + | |- | |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] | |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations''' | |
− | + | |- | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-10-icon.png]] | |
− | + | | width="90%" | Label | |
− | + | |- | |
− | + | | colspan="2" | A text label to help you identify the component on the panel. | |
− | + | |- | |
− | + | | width="10%" align="center" | [[File:Fc9-type-15-icon.png]] | |
− | + | | width="90%" | temperature | |
− | Max Temp the sensor can reach is set for you automatically. | + | |- |
− | + | | colspan="2" | | |
− | It can only be adjusted with the Custom option. | + | |} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | Max Temp the sensor can reach is set for you automatically. | ||
− | |||
− | It can only be adjusted with the Custom option. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | A text label to help you identify the component on the panel. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 16:15, 5 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, LM36, LM37, 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
SENSORS
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
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 |
![]() |
GetTempIntCX10 |
![]() |
Return |
![]() |
GetTempIntFX10 |
![]() |
Return |
![]() |
IntValueADC |
![]() |
Return |
![]() |
GetTempFloatF |
Value of the temperature in deg F | |
![]() |
Return |
![]() |
GetTempFloatC |
Value of the temperature in deg C | |
![]() |
Return |