Other Parts Discussed in Thread: HDC1000, CC1350, CC2650
Tool/software: TI-RTOS
Hello,
I am running the RfWsnDmNode_CC1350STK_TI example. The example comes with the luminosity sensor. I have also tried using the humidity sensor (hdc1000) but I don't get any meaningful data.
Below is the codesnippet for humidity sensor
if (SensorI2C_open())
{
/* Put unused external sensors and flash into Sleep */
SensorBmp280_init(); // Pressure Sensor
SensorBmp280_enable(false);
SensorTmp007_init(); // Infrared Thermopile Sensor
SensorTmp007_enable(false);
SensorHdc1000_init(); // Humidity
SensorMpu9250_init(); // Gyroscope and accelerometer
SensorMpu9250_enable(false);
SensorMpu9250_powerOff();
ExtFlash_open();
ExtFlash_close();
/* Init Light sensor */
SensorOpt3001_init();
SensorOpt3001_enable(true);
}
/* Read Humidity & Temperature */
SensorHdc1000_start();
SensorHdc1000_read( &rawTemp, &rawHum );
DELAY_MS(HUM_DELAY_PERIOD); //TODO move this to SensorHdc1000.c
SensorHdc1000_convert( rawTemp, rawHum, &temp, &hum);
I get -40 for temperature and 0 for humidity. The sensortag is brand new.
is there something that I am missing?
I would be most happy if you can guide me.
thanks
rifo