Jump to content

Recommended Posts

I had a HDC1080 EVM. I read that the back end of the evm can be broken off from the perforation and used as a standalone sensor on a micro-controller. I tried to interface it with the MSP430G2553. I have done the following with no avail:

1) the jumper on P1.6 has been removed(no interference of led with SCL line)

2) I have tried using pullup resistors on both the SCL and SDA lines. I have tried out with the standard 4.7k resistors and also with 10k resistors.

3) I always get a temperature value of -40 degree C and humidity of 0%, which means that the MSP is not able to get the readings through.

4) I am using the Wire library on Energia1.6.10E18 and I followed TI's tutorial video on how to implement HDC1080 on Arduino. Here's the link (



Here's my code:


#include <Wire.h>

void setup() {
  // put your setup code here, to run once:

void loop() {
  // put your main code here, to run repeatedly:
double temperature;
double humidity;

humidity = readSensor(&temperature);

double readSensor(double* temperature){
 uint8_t Byte[4];
 int value;
 uint16_t temp;
 uint16_t humidity;




   temp = (((unsigned int)Byte[0] <<8 | Byte[1]));
   *temperature = (double)(temp)/(65536)*165-40;
   humidity = (((unsigned int)Byte[3] <<8 | Byte[4])); 
   return (double)(humidity)/(65536)*100;



Where is it going wrong?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...