ESP32 and two HDC1080

Hi. In my project, I need to connect using I2C two HDC1080. Is it possible?

I checked "ClosedCube_HDC1080.h" library, but it has no such function as Dallas DS18B20 do
sensors.getTempCByIndex(i)

So my question will be is it possible to connect 2 or 4 HDC1080 to one I2C on ESP32

Have the HDC1080s got different I2C addresses ?

Hi @UKHeliBob @TomyLimon
8.5.1.1 Serial Bus Address
The I2C address of the HDC1080 is 1000000 (7-bit address).

Data sheet https://www.ti.com/lit/ds/symlink/hdc1080.pdf?ts=1623923663248

RV mineirin

From HDC1080: Multiple connection on I2C line - Sensors forum - Sensors - TI E2E support forums

it is not possible to connect more than one HDC1080 on the same bus, because it is not possible to modify the slave address of the device.

The ESP32 has 2 I2C busses. Using the VSPI is is not an issue. Using the HSPI can be an issue. During program load the device connected on the HSPI buss must NOT send data.

So, yes, the ESP32 can use 2 of the sensors that cannot have their slave address changed by putting one device on the other I2C buss using an ESP32.

If putting a device onto the HSPI buss causes an issue, you can remove the device from the buss, upload a program to the ESP32. After the program has been uploaded, power off the ESP32, connect the device to the HSPI buss, and energize.

Hi @Idahowalker

I can be wrong, but are you confusing I2C with SPI?
" Using the VSPI is is not an issue. Using the HSPI ...."

@TomyLimon
See this article: ESP32 I2C Communication: Set Pins, Multiple Bus Interfaces and Peripherals | Random Nerd Tutorials

Topic: ESP32 Using Two I2C Bus Interfaces.

RV mineirin

Yea, I got confused. Oops.

Many thanks, @ruilviana. The article is brilliant.

maybe it helps to use a bme280 instead of the second hdc1080?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.