Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Files | Defines | Functions | Variables

Thermal Infrared Sensor
[Dexter Industries]

Files

file  dexterind-thermalir.h
 

Dexter Industries Thermal Infrared Sensor driver.


Defines

#define TIR_I2C_ADDR   0x0E
#define TIR_AMBIENT   0x00
#define TIR_OBJECT   0x01
#define TIR_SET_EMISSIVITY   0x02
#define TIR_GET_EMISSIVITY   0x03
#define TIR_CHK_EMISSIVITY   0x04
#define TIR_RESET   0x05
#define TIR_EM_SKIN_LIGHT   5660
#define TIR_EM_SKIN_DARK   8380
#define TIR_EM_GLASS   9200
#define TIR_EM_CANDLE_SOOT   9500
#define tempFactor   0.02

Functions

float TIRreadAmbientTemp (tSensors link)
float TIRreadObjectTemp (tSensors link)
bool TIRsetEmissivity (tSensors link, int emissivity)
bool TIRresetSensor (tSensors link)
long TIRreadEmissivity (tSensors link)
long TIRcheckEmissivity (tSensors link)

Variables

tByteArray TIR_I2CRequest
tByteArray TIR_I2CReply

Detailed Description

Dexter Industries Thermal Infrared Sensor


Define Documentation

#define tempFactor   0.02

Definition at line 56 of file dexterind-thermalir.h.

#define TIR_AMBIENT   0x00

Thermal Infrared number

Definition at line 43 of file dexterind-thermalir.h.

#define TIR_CHK_EMISSIVITY   0x04

Definition at line 47 of file dexterind-thermalir.h.

#define TIR_EM_CANDLE_SOOT   9500

Definition at line 54 of file dexterind-thermalir.h.

#define TIR_EM_GLASS   9200

Definition at line 53 of file dexterind-thermalir.h.

#define TIR_EM_SKIN_DARK   8380

Definition at line 52 of file dexterind-thermalir.h.

#define TIR_EM_SKIN_LIGHT   5660
#define TIR_GET_EMISSIVITY   0x03

Definition at line 46 of file dexterind-thermalir.h.

#define TIR_I2C_ADDR   0x0E

TIR I2C device address

Definition at line 42 of file dexterind-thermalir.h.

#define TIR_OBJECT   0x01

Red reading

Definition at line 44 of file dexterind-thermalir.h.

#define TIR_RESET   0x05

Definition at line 48 of file dexterind-thermalir.h.

#define TIR_SET_EMISSIVITY   0x02

Green reading

Definition at line 45 of file dexterind-thermalir.h.


Function Documentation

long TIRcheckEmissivity ( tSensors  link )

Check the emissivity

Parameters:
linkthe TIR port number
Returns:
The current emissivity

Definition at line 139 of file dexterind-thermalir.h.

float TIRreadAmbientTemp ( tSensors  link )

Measure the ambient temperature

Parameters:
linkthe TIR port number
Returns:
the ambient temperature
Examples:
dexterind-thermalir-test1.c.

Definition at line 72 of file dexterind-thermalir.h.

long TIRreadEmissivity ( tSensors  link )

Read the current emissivity

Parameters:
linkthe TIR port number
Returns:
The current emissivity

Definition at line 120 of file dexterind-thermalir.h.

float TIRreadObjectTemp ( tSensors  link )

Measure the object temperature

Parameters:
linkthe TIR port number
Returns:
The object temperature
Examples:
dexterind-thermalir-test1.c, and dexterind-thermalir-test2.c.

Definition at line 96 of file dexterind-thermalir.h.

bool TIRresetSensor ( tSensors  link )

Reset the sensor

Parameters:
linkthe TIR port number
Returns:
true if no error occured, false if it did
Examples:
dexterind-thermalir-test2.c.

Definition at line 177 of file dexterind-thermalir.h.

bool TIRsetEmissivity ( tSensors  link,
int  emissivity 
)

Set the current emissivity

Parameters:
linkthe TIR port number
emissivitythe emissivity of the object that is to be measured
Returns:
true if no error occured, false if it did
Examples:
dexterind-thermalir-test1.c, and dexterind-thermalir-test2.c.

Definition at line 159 of file dexterind-thermalir.h.


Variable Documentation

Array to hold I2C reply data

Definition at line 65 of file dexterind-thermalir.h.

Array to hold I2C command data

Definition at line 64 of file dexterind-thermalir.h.