Need Help to port I2C based sensor on ESP32 device

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Need Help to port I2C based sensor on ESP32 device

Postby Ritesh » Mon Nov 21, 2016 9:18 am

Hi,

I am working on ESP32-idf RTOS SDK and we have one requirement to connect I2C based temperature sensor. So, we have first decided to connect it on ADC interface but that is not our requirement as per client request.

So, we have thought to connect it over I2C interface and i think there are total 2 dedicated I2C interface into ESP32 chip.

Does anyone has any I2C based driver with example which is already ported for ESP32? If yes then please provide me link or code for that so that i can port into ESP32-idf RTOS and can re-use for my product.
Regards,
Ritesh Prajapati

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Need Help to port I2C based sensor on ESP32 device

Postby Ritesh » Mon Nov 21, 2016 5:18 pm

Hi,

Does anyone has any idea or clue for this?

Also, I want to know exact pin configurations for hardware I2C0 or I2C1 and with howmany interface it is shared.

So that I can plan to use GPIO based software I2C instead of dedicated I2C if shared with useful pin.

Let me know if anyone has idea for that as well.
Regards,
Ritesh Prajapati

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Need Help to port I2C based sensor on ESP32 device

Postby kolban » Mon Nov 21, 2016 8:38 pm

This may have been addressed in your other current post ... see:

http://esp32.com/viewtopic.php?f=2&t=215
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32


Who is online

Users browsing this forum: No registered users and 328 guests