TEX00 Class
- ID: tex00
- Name: Veris TEX00 Temperature Sensors
- Category: temp
- Manufacturer: veris
- Connection: analog
- Link: http://www.veris.com/Item/TED00.aspx
The Veris TEX00 temperature sensor family is made up of a series of RTD thermistors in wall mount packaging.
This driver was developed using the TED00, which utilizes a 10K Ohm Type 2 thermistor. However, this driver can support the other 12 variants of the TE series as well by providing the correct sensor type to the class constructor. These other sensor types have not been tested. Only the TED00 was tested with this driver.
This sensor must be connected as part of a voltage divider, with the balancing resistor ideally matched to the sensor's 25C detection range. For the TED00 (10kt2), a 10K Ohm (1% tolerance) resistor was used in a circuit like the following:
GND o- |TED00(10k2)|- o- |balanceResistor(10K)|- o VCC (+5vdc) | | |- o A0 (analog input to MCU)
A 3.3vdc voltage can be used as well if desired.
Item Index
Methods
TEX00
-
tPin
-
balanceResistor
-
stype
-
aref
TEX00 object constructor
Parameters:
-
tPin
NumberAnalog pin to use for temperature.
-
balanceResistor
NumberResistance (in Ohms) of the balance resistor used in your voltage divider.
-
stype
SENSOR_TYPES_TThe sensor type. One of the SENSOR_TYPES_T values.
-
aref
NumberThe analog reference voltage, default 5.0
Returns:
update
()
Read current values from the sensor and update internal stored values. This method must be called prior to querying any values, such as temperature.
getTemperature
-
fahrenheit
Get the current temperature. update() must have been called prior to calling this method.
Parameters:
-
fahrenheit
Booleantrue to return the temperature in degrees fahrenheit, false to return the temperature in degrees celsius. The default is false (degrees Celsius).
Returns:
The last temperature reading in Celsius or Fahrenheit
getTemperatureRangeMin
()
Number
Return the smallest temperature that can be measured by the current sensor.
Returns:
The smallest detectable temperature this sensor can measure, in C.
getTemperatureRangeMax
()
Number
Return the largest temperature that can be measured by the current sensor.
Returns:
The largest detectable temperature this sensor can measure, in C.
isOutOfRange
()
Boolean
Detect whether the last measurement exceeded the sensors detection range. update() must have been called prior to calling this method.
Returns:
true if the last measurement was out of range, false otherwise.