pyupm_tex00 module

class pyupm_tex00.TEX00(tPin, balanceResistor, stype, aref=5.0)[source]

Bases: object

API for the Veris TEX00 Temperature Sensor.

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.

C++ includes: tex00.hpp

STYPE_THERMISTOR_TEB = 1
STYPE_THERMISTOR_TEC = 2
STYPE_THERMISTOR_TED = 0
STYPE_THERMISTOR_TEE = 4
STYPE_THERMISTOR_TEF = 5
STYPE_THERMISTOR_TEH = 6
STYPE_THERMISTOR_TEI = 3
STYPE_THERMISTOR_TEJ = 7
STYPE_THERMISTOR_TEM = 10
STYPE_THERMISTOR_TER = 9
STYPE_THERMISTOR_TES = 8
STYPE_THERMISTOR_TET = 12
STYPE_THERMISTOR_TEU = 11
getTemperature(fahrenheit=False)[source]

float getTemperature(bool fahrenheit=false)

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

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

The last temperature reading in Celsius or Fahrenheit

getTemperatureRangeMax()[source]

float getTemperatureRangeMax()

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

The largest detectable temperature this sensor can measure, in C.

getTemperatureRangeMin()[source]

float getTemperatureRangeMin()

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

The smallest detectable temperature this sensor can measure, in C.

isOutOfRange()[source]

bool isOutOfRange()

Detect whether the last measurement exceeded the sensors detection range. update() must have been called prior to calling this method.

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

update()[source]

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