Component: Analogue Temp Sensors (Environmental)

From Flowcode Help
Revision as of 16:37, 5 January 2022 by Wiki bot (talk | contribs)
Jump to navigationJump to search
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

FREE

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 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