TMP006 Class
- ID: tmp006
- Name: TMP006 IR-Thermopile Sensor
- Category: temp
- Manufacturer: ti
- Link: http://www.ti.com/product/TMP006/datasheet/abstract#SBOS5183423
- Connection: i2c
Description in web-link above: The TMP006 and TMP006B are fully integrated MEMs thermopile sensors that measure the temperature of an object without having to be in direct contact. The thermopile absorbs passive infrared energy from an object at wavelengths between 4 um to 16 um within the end-user defined field of view. The corresponding change in voltage across the thermopile is digitized and reported with the on-chip die thermal sensor measurement through an I2C- and SMBus-compatible interface. With this data, the target object temperature can be calculated by an external processor. The Infrared thermopile sensor is specified to operate from -40 to +125 [degC]. It is possible to measure an object temperature beyond the device operating range as long as the device itself does not exceed the operating temperature range (-40 to +125 [degC]).
Item Index
Methods
TMP006
-
bus
-
conv_rate
-
devAddr
Instantiates an TMP006 object
Parameters:
-
bus
NumberNumber of the used bus
-
conv_rate
NumberConversation rate (allowed between 0 and 4)
-
devAddr
NumberAddress of the used I2C device
Returns:
checkID
()
Number
Check device_id of sensor
Returns:
0 on succes -1 on error
resetSensor
()
Performs a soft reset of the TMP006 device to ensure it is in a known state.
setActive
()
Set active mode, this enables periodic measurements.
setStandby
()
Set standby mode, this disables periodic measurements.
sampleData
()
Number
Read out data of regs and call further function Also saves converted value to variable
Returns:
convert_data
-
rawv
-
rawt
-
tamb
-
tobj
Convert raw sensor values to temperature.
Parameters:
-
rawv
NumberObject voltage value
-
rawt
NumberRaw die temperature value
-
tamb
Float *Converted ambient temperature
-
tobj
Float *Converted object temperature
getTemperature
-
bSampleData
Get the calculated object temperature [degC]
Parameters:
-
bSampleData
NumberFlag to read sensor
Returns:
The object temp in degC on success and -273.2 on 'conversation in progress'
getConfig
()
Number
Get value of configuration reg