pyupm_teams module¶
-
class
pyupm_teams.
TEAMS
(tPin, rResistor=0.0, aref=5.0)[source]¶ Bases:
object
API for the Veris TEAMS Temperature Transmitter.
ID: teams
Name: Veris TEAMS Temperature Transmitter
Category: temp
Manufacturer: veris
Connection: analog
Link:http://www.veris.com/Item/TEAMS.aspx The Veris TEAMS temperature sensor provides it’s output via a 4-20ma current loop. The supported temperature range is 10C to 35C.
This sensor was developed with a Cooking Hacks (Libelium) 4-channel 4-20ma Arduino interface shield. For this interface, the receiver resistance (rResistor) was specified as 165.0 ohms.
When using a 4-20ma current loop interface which scales the sensors’ values to a 0-5vdc range, you can supply 0.0 as the rResistor value in the constructor (default), and it will act just like a normal analog input.
C++ includes: teams.hpp
-
getRawMilliamps
()[source]¶ float getRawMilliamps()
When using a direct 4-20ma interface (rResistor supplied in the constructor is >0.0), this function will return the computed milliamps (after the offset has been applied). If rResistor was specified as 0.0 in the constructor, this function will always return 0.0.
The last measured current in milliamps after any offset has been applied.
-
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
-
isConnected
()[source]¶ bool isConnected()
When using a direct 4-20ma interface (rResistor supplied in the constructor is >0.0), this function will return false when the computed milliamps falls below 4ma, indicating that the sensor is not connected. If rResistor was specified as 0.0 in the constructor, this function will always return true.
true if the sensor is connected, false otherwise.
-
setOffsetMilliamps
(offset)[source]¶ void setOffsetMilliamps(float offset)
Specify an offset in milliamps to be applied to the computed current prior to scaling and conversion. This can be used to ‘adjust’ the computed value. If rResistor was specified as 0.0 in the constructor, this function will have no effect.
offset: a positive or negative value that will be applied to the computed current measured.
-