Multiple I2C devices at once

Hello!
I’m using Zerynth Studio 2.6.3 for my university project. I recently encountered a little problem.

It seems like my DevKit-C ESP32 board is refusing to communicate with two I2C devices at the same time. I’m using a 1602 LCD display (I2C2 - D18,D19) and one HTU21D sensor (I2C1 - D16,D17).

I can successfully start the communication with both of them, but they seem to be mutually exclusive since I get an InvalidHardwareStatusError as soon as the second I2C device attempts to call the start() method of the i2c class.

Is this normal behavior or does it depend on something specific (e.g.: perhaps the board itself, incompatibility between the two sensors, Zerynth Studio version…)?

Thank you all for your time! :+1:

hi @GIANCARLO_LAISO
Apologies for the late reply.
since the board supports 3 I2C instances, they should work simultanously.
Please let the dev. team test this feature and we will keep you updated on this.

1 Like

Hi, Karim.
I eventually found out that the I2C0 and I2C1 ports on ESP32 boards actually represent the same interface, thus only one can be active at a time. I2C1, instead, is independent and should work fine even when one of the other two is busy.

I believe this was the cause of my problem. Thank you for your help :+1: