You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you very much for sharing such a valuable project with community.
I have fully reproduced your project with the same hardware set and also InfluxDB and Grafana and I have found some bugs because I was not able to get the correct sensor values using the code. Let me share how I tuned the Arduino code.
In ClosedCube_HDC1080.cpp::begin function Wire.begin(); line needs to be enabled. Otherwise none of the below code gives the correct data
Serial.print("Manufacturer ID=0x");
Serial.println(hdc1080.readManufacturerId(), HEX); // 0x5449 ID of Texas Instruments
Serial.print("Device ID=0x");
Serial.println(hdc1080.readDeviceId(), HEX); // 0x1050 ID of the device
printSerialNumber();
I have restored the function Wire.begin(); line again and disabled SoftwareReset option,
Based on TI HDC1080 reference code HDC1080 Arduino Example Code v1.0 in page http://www.ti.com/product/HDC1080
I added some typecasts and the most important diff I have seen regarding to receive the wrong temperature value 125.0 is that what was fixing this value is to change the delay(9) to delay(20) as written in sample TI code. I am sharing the final ClosedCube_HDC1080.cpp code I have used.
Hi bfaliszek
First of all thank you very much for sharing such a valuable project with community.
I have fully reproduced your project with the same hardware set and also InfluxDB and Grafana and I have found some bugs because I was not able to get the correct sensor values using the code. Let me share how I tuned the Arduino code.
In ClosedCube_HDC1080.cpp::begin function Wire.begin(); line needs to be enabled. Otherwise none of the below code gives the correct data
I have restored the function Wire.begin(); line again and disabled SoftwareReset option,
I added some typecasts and the most important diff I have seen regarding to receive the wrong temperature value 125.0 is that what was fixing this value is to change the delay(9) to delay(20) as written in sample TI code. I am sharing the final ClosedCube_HDC1080.cpp code I have used.
ClosedCube_HDC1080.zip
Here is the the wiring
Kind Regards
Arda
The text was updated successfully, but these errors were encountered: