UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

TEX00 Class

Module: tex00

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.

Methods

TEX00

(
  • tPin
  • balanceResistor
  • stype
  • aref
)
Number

TEX00 object constructor

Parameters:

  • tPin Number

    Analog pin to use for temperature.

  • balanceResistor Number

    Resistance (in Ohms) of the balance resistor used in your voltage divider.

  • stype SENSOR_TYPES_T

    The sensor type. One of the SENSOR_TYPES_T values.

  • aref Number

    The analog reference voltage, default 5.0

Returns:

Number:

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

Get the current temperature. update() must have been called prior to calling this method.

Parameters:

  • fahrenheit Boolean

    true to return the temperature in degrees fahrenheit, false to return the temperature in degrees celsius. The default is false (degrees Celsius).

Returns:

Number:

The last temperature reading in Celsius or Fahrenheit

getTemperatureRangeMin

() Number

Return the smallest temperature that can be measured by the current sensor.

Returns:

Number:

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:

Number:

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:

Boolean:

true if the last measurement was out of range, false otherwise.

Properties

STYPE_THERMISTOR_TED

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TEB

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TEC

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TEI

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TEE

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TEF

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TEH

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TEJ

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TES

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TER

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TEM

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TEU

Enum SENSOR_TYPES_T

STYPE_THERMISTOR_TET

Enum SENSOR_TYPES_T