Adafruit MLX90614 Arduino Library
Public Member Functions | List of all members
Adafruit_MLX90614 Class Reference

Class to read from and control a MLX90614 Temp Sensor. More...

#include <Adafruit_MLX90614.h>

Public Member Functions

bool begin (uint8_t addr=MLX90614_I2CADDR, TwoWire *wire=&Wire)
 Begin the I2C connection. More...
 
double readObjectTempC (void)
 Get the current temperature of an object in degrees Celcius. More...
 
double readAmbientTempC (void)
 Get the current ambient temperature in degrees Celcius. More...
 
double readObjectTempF (void)
 Get the current temperature of an object in degrees Farenheit. More...
 
double readAmbientTempF (void)
 Get the current ambient temperature in degrees Farenheit. More...
 
uint16_t readEmissivityReg (void)
 Read the raw value from the emissivity register. More...
 
void writeEmissivityReg (uint16_t ereg)
 Write the raw unscaled emissivity value to the emissivity register. More...
 
double readEmissivity (void)
 Read the emissivity value from the sensor's register and scale. More...
 
void writeEmissivity (double emissivity)
 Set the emissivity value. More...
 

Detailed Description

Class to read from and control a MLX90614 Temp Sensor.

Member Function Documentation

◆ begin()

bool Adafruit_MLX90614::begin ( uint8_t  addr = MLX90614_I2CADDR,
TwoWire *  wire = &Wire 
)

Begin the I2C connection.

Parameters
addrI2C address for the device.
wirePointer to Wire instance
Returns
True if the device was successfully initialized, otherwise false.

◆ readObjectTempC()

double Adafruit_MLX90614::readObjectTempC ( void  )

Get the current temperature of an object in degrees Celcius.

Returns
double The temperature in degrees Celcius or NAN if reading failed

◆ readAmbientTempC()

double Adafruit_MLX90614::readAmbientTempC ( void  )

Get the current ambient temperature in degrees Celcius.

Returns
double The temperature in degrees Celcius or NAN if reading failed

◆ readObjectTempF()

double Adafruit_MLX90614::readObjectTempF ( void  )

Get the current temperature of an object in degrees Farenheit.

Returns
double The temperature in degrees Farenheit or NAN if reading failed

◆ readAmbientTempF()

double Adafruit_MLX90614::readAmbientTempF ( void  )

Get the current ambient temperature in degrees Farenheit.

Returns
double The temperature in degrees Farenheit or NAN if reading failed

◆ readEmissivityReg()

uint16_t Adafruit_MLX90614::readEmissivityReg ( void  )

Read the raw value from the emissivity register.

Returns
uint16_t The unscaled emissivity value or '0' if reading failed

◆ writeEmissivityReg()

void Adafruit_MLX90614::writeEmissivityReg ( uint16_t  ereg)

Write the raw unscaled emissivity value to the emissivity register.

Parameters
eregThe unscaled emissivity value

◆ readEmissivity()

double Adafruit_MLX90614::readEmissivity ( void  )

Read the emissivity value from the sensor's register and scale.

Returns
double The emissivity value, ranging from 0.1 - 1.0 or NAN if reading failed

◆ writeEmissivity()

void Adafruit_MLX90614::writeEmissivity ( double  emissivity)

Set the emissivity value.

Parameters
emissivityThe emissivity value to use, between 0.1 and 1.0

The documentation for this class was generated from the following files: