Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C does not does work on pins 13 - 16. Why is GPIO16 connected to GPIO33 through a 10ohm resistor #2

Open
JulesThuillier opened this issue May 16, 2024 · 1 comment

Comments

@JulesThuillier
Copy link

JulesThuillier commented May 16, 2024

Using the ESP-POE2 board and Olimex BME280 board I tried the simple example provided by Olimex (https://github.com/OLIMEX/ESP32-POE/blob/master/SOFTWARE/ARDUINO/ESP32_PoE_MOD_BME280/ESP32_PoE_MOD_BME280.ino), the I2C communication with BME280 does not work. Using a protocol analyser I see data on SDA (GPIO13) but SCL (GPIO16) is always HIGH.

Moving forward with my investigation, I look at ESP-POE2 schematic and see the following connection :

Screenshot 2024-05-16 at 11 24 38

Can somebody explain why is this here ?

So I tried to replace SCL pin with GPIO5, and tada ! It works.
It is not really a solution in itself because your UEXT connectors uses GPIO16 for SCL.

Last test was to remove R19, and still did not work. I finally stumbled on this piece of information :

Screenshot 2024-05-16 at 11 35 58

And that seems to be the answer. It's a bit confusing that this exact pin was chosen for UEXT SCL pin...
Any plan to fix this ?

@DanKoloff
Copy link
Contributor

DanKoloff commented Jun 7, 2024

This is not an issue to fix. Just we designed the board to be suitable for two types of ESP32 modules - with or without PSRAM (our ESP32-POE and ESP32-POE-ISO modules are designed in the same manner).

The ESP32 module without PSRAM is ESP32-WROOM and the ESP32 module with PSRAM is called ESP32-WROVER.

By default in ESP32-POE2 design we place the ESP32-WROVER module with PSRAM.

The difference between ESP32-WROOM and ESP32-WROVER modules is that the ESP32-WROVER uses two of the GPIOs for the PSRAM (GPIO16 and GPIO17). So in boards with ESP32-WROVER module (like ESP32-POE2) - Ethernet clock is GPIO0 instead of GPIO17 and GPIO33 is routed to the UEXT (instead of GPIO16).

So if you have problems with Ethernet - make sure that in your code - clock is set to GPIO0.

If you want to use GPIO16 at the UEXT, consider that GPIO16 is replaced by GPIO33 and use GPIO33 in the code (instead of GPIO16).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants