This library provides APIs that allow a mircocontroller to interact with MLX90614 contactless temperature sensor.
image courtsey - MLX90614 datasheet
image courtsey - MLX90614 datasheet
Reading Sequence
image courtsey - MLX90614 datasheet
Writing Sequence
image courtsey - MLX90614 datasheet
Legend
image courtsey - MLX90614 datasheet
char InitializeMLX(uint8_t addr)
This API is used to initialize the MLX90614 sensor.
Parameters
uint8_t addr
: I2C address of the MLX90614. By default it is 0X5A however, it can be configured.
Returns
Type : char
1
Success
0
Failed
char MLXreadEmissivity(double * val)
This API is used to read the emissivity value.
Parameters
double * val
: Pointer to variable where emissivity value will be stored after successful read. It ranges from 0.1 to 1.0
Returns
Type : char
1
Success
0
Failed
char MLXwriteEmissivity(double val)
This API is used to write the emissivity value.
Parameters
double val
: The emissivity value to write to sensor
Returns
Type : char
1
Success
0
Failed
char MLXreadObjectTempF(double * temp)
This API is used to read object temperature in degrees fahrenheit.
Parameters
double * temp
: Pointer to variable where temperature value will be stored.
Returns
Type : char
1
Success
0
Failed
char MLXreadAmbientTempF(double * temp)
This API is used to read ambient temperature in degrees fahrenheit.
Parameters
double * temp
: Pointer to variable where temperature value will be stored.
Returns
Type : char
1
Success
0
Failed
char MLXreadObjectTempC(double * temp)
This API is used to read object temperature in degrees celsius.
Parameters
double * temp
: Pointer to variable where temperature value will be stored.
Returns
Type : char
1
Success
0
Failed
char MLXreadAmbientTempC(double * temp)
This API is used to read ambient temperature in degrees celsius.
Parameters
double * temp
: Pointer to variable where temperature value will be stored.
Returns
Type : char
1
Success
0
Failed