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.

HDC1000 Class

Module: hdc1000

Description in web-link above: The HDC1000 is a digital humidity sensor with integrated temperature sensor that provides excellent measurement accuracy at very low power. The device measures humidity based on a novel capacitive sensor. The humidity and temperature sensors are factory calibrated. The innovative WLCSP (Wafer Level Chip Scale Package) simplifies board design with the use of an ultra-compact package. The sensing element of the HDC1000 is placed on the bottom part of the device, which makes the HDC1000 more robust against dirt, dust, and other environmental contaminants. The HDC1000 is functional within the full -40 to +125 [degC] temperature range.

Methods

HDC1000

(
  • bus
  • devAddr
)
Number

Instantiates an HDC1000 object

Parameters:

  • bus Number

    Number of the used bus

  • devAddr Number

    Address of the used I2C device

Returns:

Number:

checkID

() Number

Check device_id of sensor

Returns:

Number:

0 on succes -1 on error

resetSensor

()

Performs a soft reset of the HDC1000 device to ensure it is in a known state.

sampleData

()

Initiates a temperature/pressure mesasurement and waits to complete.

getHumidity

(
  • bSampleData
)
Number

Get the current measured humidity [RH]

Parameters:

  • bSampleData Number

    Flag to read sensor

Returns:

Number:

The humidity sensor temp in degC

getTemperature

(
  • bSampleData
)
Number

Get the humidity cell temperature [degC]

Parameters:

  • bSampleData Number

    Flag to read sensor

Returns:

Number:

The humidity sensor temp in degC