pyupm_hdc1000 module

class pyupm_hdc1000.HDC1000(bus, devAddr=67)[source]

Bases: object

API for the HDC1000 Temperature & Humidity Sensor.

ID: hdc1000

Name: HDC1000 Temperature & Humidity Sensor

Category: temp

Manufacturer: ti

Link:http://www.ti.com/lit/ds/symlink/hdc1000.pdf

Connection: i2c 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.

C++ includes: hdc1000.hpp

checkID()[source]

int checkID(void)

Check device_id of sensor

0 on succes -1 on error

getHumidity(bSampleData=False)[source]

float getHumidity(int bSampleData=false)

Get the current measured humidity [RH]

bSampleData: Flag to read sensor

The humidity sensor temp in degC

getTemperature(bSampleData=False)[source]

float getTemperature(int bSampleData=false)

Get the humidity cell temperature [degC]

bSampleData: Flag to read sensor

The humidity sensor temp in degC

resetSensor()[source]

void resetSensor(void)

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

sampleData()[source]

void sampleData(void)

Initiates a temperature/pressure mesasurement and waits to complete.