UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

MLX90614 Class

Module: mlx90614

This module defines the MLX90614 interface for libmlx90614
mlx90614.jpg

Methods

MLX90614

(
  • bus
  • devAddr
)
Number

Instantiates an MLX90614 object

Parameters:

  • bus Number

    Number of the used bus

  • devAddr Number

    Address of the used I2C device

Returns:

Number:

readObjectTempF

(
  • objAddr
)
Number

Reads the object temperature in Fahrenheit

Parameters:

  • objAddr Number

    Object register for models with dual sensors Can be MLX90614_TOBJ1 (default) or MLX90614_TOBJ2

Returns:

Number:

readAmbientTempF

() Number

Reads the ambient temperature in Fahrenheit

Returns:

Number:

readObjectTempC

(
  • objAddr
)
Number

Reads the object temperature in Celsius

Parameters:

  • objAddr Number

    Object register for models with dual sensors Can be MLX90614_TOBJ1 (default) or MLX90614_TOBJ2

Returns:

Number:

readAmbientTempC

() Number

Reads the ambient temperature in Celsius

Returns:

Number:

name

() String

Returns the name of the component

Returns:

String: