2xI2C devices connected simultaneous

flavius25
Posts: 2
Joined: Fri May 31, 2019 7:54 pm

2xI2C devices connected simultaneous

Postby flavius25 » Fri May 31, 2019 8:37 pm

Hello, this is my first post and I am trying to understand ESP32 better.

I have 2xI2C devices, namely MAX30100 and TMP117 , and I want to know how can I make them work with ESP32. The requirement is to read the values from the sensors. I know that I have 2 pins for I2C bus (21 and 22) but I don't know how should I write to configure them in an arduino sketch file for having the results in the terminal.

I've runned the I2C scanner sketch file, and both sensors can be found (connected both to 21 and 22).

May I have some details?
Thanks in advance !

flavius25
Posts: 2
Joined: Fri May 31, 2019 7:54 pm

Re: 2xI2C devices connected simultaneous

Postby flavius25 » Sat Jun 01, 2019 7:53 pm

I've solved the initial problem. I didn't know about the necessary time for MAX30100 to update values and I had to remove one delay so i can get the values in order.

Who is online

Users browsing this forum: No registered users and 69 guests