This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/CC1350STK: CC1350STK Example Application - Humidity Sensor Problem

Expert 1105 points
Part Number: CC1350STK
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

  • Hi, the SensorHdc1000_read() returns true if I2C operation was successful.
    Have you checked status of this value?
  • Hello,

    Thanks for your answer. I tried to debug via CCS but the debug process becomes unresponsive when I step over I2C related functions.

    SensorI2C_writeReg(HDC1000_REG_CONFIG, (uint8_t*)&val, 2);

    The original sensortag firmware works fine however. Can you please tell me where I can find the source code for the original sensortag cc1350 firmware that comes flashed into the device?
    I can then compare my code and see if there any differences
  • Hello,

    I have flashed the default software and the humidity sensor works fine. Is the source code for the factory image available for download?

    I don't understand what I did wrong in the RfWsnDmNode_CC1350STK_TI example. I can compare the two projects and find the difference.

    Thanks
  • Hello again,

    I found this thread
    e2e.ti.com/.../557178

    I guess the thread owner also asked for the source code of factory firmware and was adviced to run CC2650 STK

    Still, I would be happy to get the source code for the cc1350 sensortag if that's possible of course
  • shoot!

    mixed up the delay position. Things work fine with below

    SensorHdc1000_start();
    DELAY_MS(HUM_DELAY_PERIOD); //TODO move this to SensorHdc1000.c
    SensorHdc1000_read( &rawTemp, &rawHum );

    Still, it would be nice to have the cc1350 sensortag default firmware source code