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="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 (Release)
+
| 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.
  
==[[File:Component Icon 69a2ca78_26f3_47df_a402_b5a7c1ff73f2.png|Image]] Analogue Temp Sensors component==
+
==Component Pack==
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.
 
  
==Examples==
+
SENSORS
''<span style="color:red;">No additional examples</span>''
 
  
 +
==Detailed description==
  
==Downloadable macro reference==
+
''No detailed description exists yet for this component''
  
===<span style="font-weight: normal;"><u><tt>VoltageADC</tt></u></span>===
+
==Examples==
Calculates what the approximate voltage should be based on Vref, Scale factor, Offset.
 
  
For TSIC301, based on Max temp and Min temp only.
 
  
'''Parameters'''
+
''<span style="color:red;">No additional examples</span>''
  
:''This macro has no parameters''
 
  
 +
==Downloadable macro reference==
  
'''Return value'''
+
{| 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. &nbsp;
 +
|-
 +
|-
 +
| 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''
 +
|}
  
:[[Variable Types|FLOAT]]
 
  
 +
{| 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" | &nbsp;
 +
|-
 +
|-
 +
| 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''
 +
|}
  
===<span style="font-weight: normal;"><u><tt>GetTempFloatF</tt></u></span>===
 
Value of the temperature in deg F
 
  
'''Parameters'''
+
{| 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" | &nbsp;
 +
|-
 +
|-
 +
| 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''
 +
|}
  
:''This macro has no parameters''
 
  
 +
{| 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" | &nbsp;
 +
|-
 +
|-
 +
| 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''
 +
|}
  
'''Return value'''
 
  
:[[Variable Types|FLOAT]]
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
+
|-
 
+
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
===<span style="font-weight: normal;"><u><tt>GetTempFloatC</tt></u></span>===
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetTempFloatF'''
Value of the temperature in deg C
+
|-
 
+
| colspan="2" | Value of the temperature in deg F&nbsp;
'''Parameters'''
+
|-
 
+
|-
:''This macro has no parameters''
+
| 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''
 
+
|}
'''Return value'''
 
 
 
:[[Variable Types|FLOAT]]
 
  
  
 +
{| 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&nbsp;
 +
|-
 +
|-
 +
| 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''
 +
|}
  
==Simulation macro reference==
 
  
''This component does not contain any simulation macros''
 
  
  
 
==Property reference==
 
==Property reference==
<span style="font-weight: normal;"><u>Select Sensor</u></span>
 
  
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''SensorType''.
+
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
+
|-
''<span style="color:red;">No additional information</span>''
+
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
 
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
 
+
|-
 
+
|-
<span style="font-weight: normal;"><u>Channel</u></span>
+
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
 
+
| width="90%" | Select Sensor
This property is of type ''Single analog pin'' and can be referenced with the variable name ''adc_base1::channel''.
+
|-
 
+
| colspan="2" | &nbsp;
Analogue Input Channel - Which pin is the analogue input connected to?
+
|-
 
+
| width="10%" align="center" | [[File:Fc9-type-6-icon.png]]
<span style="font-weight: normal;"><u>Vref (mV)</u></span>
+
| width="90%" | Channel
 
+
|-
This property is of type ''Unsigned integer'' and can be referenced with the variable name ''VRef''.
+
| colspan="2" | Analogue Input Channel - Which pin is the analogue input connected to?&nbsp;
 
+
|-
''<span style="color:red;">No additional information</span>''
+
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]]
 
+
| width="90%" | Vref (mV)
 
+
|-
 
+
| colspan="2" | &nbsp;
<span style="font-weight: normal;"><u>VRef option</u></span>
+
|-
 
+
| width="10%" align="center" | [[File:Fc9-type-16-icon.png]]
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''adc_base1::vrefop''.
+
| 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.&nbsp;
 
+
|-
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.&nbsp;
<span style="font-weight: normal;"><u>Conversion speed</u></span>
+
|-
 
+
| width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
This property is of type ''Fixed list of ints'' and can be referenced with the variable name ''adc_base1::convspd''.
+
| 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.&nbsp;
 
+
|-
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. &nbsp;
<span style="font-weight: normal;"><u>Acquisition cycles</u></span>
+
|-
 
+
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]]
This property is of type ''Signed integer'' and can be referenced with the variable name ''adc_base1::actime''.
+
| 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. &nbsp;
 
+
|-
<span style="font-weight: normal;"><u>Scale factor (mV x100)</u></span>
+
| width="10%" align="center" | [[File:Fc9-type-21-icon.png]]
 
+
| width="90%" | Tot Avage Samples
This property is of type ''Unsigned integer'' and can be referenced with the variable name ''Resolution''.
+
|-
 
+
| colspan="2" | &nbsp;
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.&nbsp;
 
+
|-
<span style="font-weight: normal;"><u>Offset (mV)</u></span>
+
| width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
 
+
| width="90%" | Min Temp
This property is of type ''Unsigned integer'' and can be referenced with the variable name ''Offset''.
+
|-
 
+
| colspan="2" | Max Temp the sensor can reach is set for you automatically. It can only be adjusted with the Custom option.&nbsp;
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'''  
 
+
|-
<span style="font-weight: normal;"><u>Tot Avage Samples</u></span>
+
|-
 
+
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
This property is of type ''Unsigned integer'' and can be referenced with the variable name ''TotAvSamples''.
+
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''  
 
+
|-
''<span style="color:red;">No additional information</span>''
+
|-
 
+
| width="10%" align="center" | [[File:Fc9-type-10-icon.png]]
 
+
| width="90%" | Label
 
+
|-
<span style="font-weight: normal;"><u>Max Temp</u></span>
+
| colspan="2" | A text label to help you identify the component on the panel.&nbsp;
 
+
|-
This property is of type ''Signed integer'' and can be referenced with the variable name ''Max0''.
+
| 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" | &nbsp;
It can only be adjusted with the Custom option.
+
|}
 
 
<span style="font-weight: normal;"><u>Min Temp</u></span>
 
 
 
This property is of type ''Signed integer'' and can be referenced with the variable name ''Min0''.
 
 
 
Max Temp the sensor can reach is set for you automatically.
 
 
 
It can only be adjusted with the Custom option.
 
 
 
<span style="font-weight: normal;"><u>Label</u></span>
 
 
 
This property is of type ''Line of text'' and can be referenced with the variable name ''label''.
 
 
 
A text label to help you identify the component on the panel.
 
 
 
<span style="font-weight: normal;"><u>temperature</u></span>
 
 
 
This property is of type ''Floating point'' and can be referenced with the variable name ''temperature''.
 
 
 
''<span style="color:red;">No additional information</span>''
 

Revision as of 16:15, 5 January 2022

Author Medelec35
Version 1.0
Category 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

No additional examples


Downloadable macro reference

Fc9-comp-macro.png VoltageADC
Calculates what the approximate voltage should be based on Vref, Scale factor, Offset. For TSIC301, based on Max temp and Min temp only.  
Fc9-f32-icon.png - FLOAT Return


Fc9-comp-macro.png GetTempIntCX10
 
Fc9-s16-icon.png - INT Return


Fc9-comp-macro.png GetTempIntFX10
 
Fc9-s16-icon.png - INT Return


Fc9-comp-macro.png IntValueADC
 
Fc9-s16-icon.png - INT Return


Fc9-comp-macro.png GetTempFloatF
Value of the temperature in deg F 
Fc9-f32-icon.png - FLOAT Return


Fc9-comp-macro.png GetTempFloatC
Value of the temperature in deg C 
Fc9-f32-icon.png - FLOAT Return



Property reference

Fc9-prop-icon.png Properties
Fc9-type-16-icon.png Select Sensor
 
Fc9-type-6-icon.png Channel
Analogue Input Channel - Which pin is the analogue input connected to? 
Fc9-type-21-icon.png Vref (mV)
 
Fc9-type-16-icon.png VRef option
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. 
Fc9-type-16-icon.png Conversion speed
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. 
Fc9-type-14-icon.png Acquisition cycles
Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. 
Fc9-type-21-icon.png Scale factor (mV x100)
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.  
Fc9-type-21-icon.png Offset (mV)
Offset is set for you automatically. It can only be adjusted with the Custom option.  
Fc9-type-21-icon.png Tot Avage Samples
 
Fc9-type-14-icon.png Max Temp
Max Temp the sensor can reach is set for you automatically. It can only be adjusted with the Custom option. 
Fc9-type-14-icon.png Min Temp
Max Temp the sensor can reach is set for you automatically. It can only be adjusted with the Custom option. 
Fc9-conn-icon.png Connections
Fc9-conn-icon.png Simulations
Fc9-type-10-icon.png Label
A text label to help you identify the component on the panel. 
Fc9-type-15-icon.png temperature