Jump to content

Component: Thermistor (Environmental)

From Flowcode Help
Revision as of 20:47, 16 November 2021 by Wiki bot (talk | contribs) (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.1 |- | width="20%" style="color:gray...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Author Matrix TSL
Version 1.1
Category Environmental


Thermistor component

A generic thermistor component that can be used to simulate and create code for any thermistor with a known temperature/resistance curve. Thermistor is connected in a simple potential divider circuit - thermistor between ADC input and 0V, and a fixed resistor between ADC and the positive supply. Default calibration is for the EBM003 module.

Detailed description

No detailed description exists yet for this component

Examples

No additional examples


Downloadable macro reference

GetIntegerTemperature
Reads the ADC input and returns the calculated Temperature as Integer degrees C 
[[File:]] - Return


SetChannel
Set the ADC Channel 
[[File:]] - ChannelID
 
- VOID Return


SetMinMax
Set the minimum and maximum temperature values that can be shown and set on the thermometer readout. 
[[File:]] - Min
Minimum Value 
[[File:]] - Max
Maximum Value 
- VOID Return


GetRealTemperature
Reads the ADC input and Returns the calculated Temperature as Float value in degrees C 
[[File:]] - Return


SetTemperature
Sends the given temperature to the display, and calculates the internal values used by the simulated read macros. 
[[File:]] - Temperature
Zero to one value - representing min-max of the sensor. 
- VOID Return


CalculateTemperature
Converts the input ADC value and returns the Temperature in tenths of degree C 
- UINT ADCValue
ADC Reading to be converted 
[[File:]] - Return


GetADCValue
Returns the Raw ADC value from the Analogue Channel 
- UINT Return


Initialise
Initialise to default of 11 bit resolution 
- BYTE Return


Initialise
Configures each matching sensor on the bus with the specified conversion bits. 
- VOID Return


WriteRegister
A simple example showing a generic way to write a register using I2C. 
- BYTE Address
 
- BYTE Data
 
- VOID Return


Initialise
 
[[File:]] - Return



Property reference

Properties
ADC Channel
The ADC channel to which the thermistor circuit is connected. It is assumed that the thermistor is connected between the ADC pin and 0V, with a fixed resistor connected between the ADC pin and +V. 
ADC Bit Resolution
 
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. 
Acquisition cycles
Number of micro seconds to wait for the ADC input to charge before starting the analogue sample. 
Wiring
Specifies the arrangement of the Thermistor and Fixed Resistor. Pull Down - Thermistor connected between ADC pin and GND, fixed resistor between ADC pin and VCC. Pull Up - Thermistor connected between ADC pin and VCC, fixed resistor between ADC pin and GND. 
Resistor Value
Value in Ohms of the pullup series resistor. i.e. The resistor is connected between the ADC pin and the positive supply rail. 
-25C Thermistor Value
Value in Ohms of the Thermistor at -25 deg C 
0C Thermistor Value
Value in Ohms of the Thermistor at 0 deg C 
25C Thermistor Value
Value in Ohms of the Thermistor at 25 deg C 
50C Thermistor Value
Value in Ohms of the Thermistor at 50 deg C 
75C Thermistor Value
Value in Ohms of the Thermistor at 75 deg C 
100C Thermistor Value
Value in Ohms of the Thermistor at 100 deg C 
125C Thermistor Value
Value in Ohms of the Thermistor at 125 deg C 
Connections
Simulations
Label
A text label to help you identify the component on the panel. 
Min. Temp.
Minimum termperature that can be set or displayed on the thermometer slider. 
Max. Temp.
Maximum termperature that can be set or displayed on the thermometer slider. 
Scale divisions
Number of numbered divisions shown on the thermometer scale.