Non-functioning spi/i2c / general confusion about ports / ESP32-D0WDQ6-Vx #9503
-
Hey guys, can you me a rundown on the basic differences between esp32 ports or which port I should be using for the ESP32-D0WDQ6-Vx chip? D2WD? I have some v3 TTGO chips that the i2c screen does not respond when running any recent firmware. If I run the generic idf-v3 1.14 the screen runs fine. Currently having an issue with a ESP32-WROOM-32D (D0WDQ6-V1 I believe) which the spi isn't connecting (hopefully, haven't confirmed its not a circuit or chip issue yet). |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 19 replies
-
I recall some major changes to I2C ... are you doing something like: i2c = SoftI2C(scl=Pin(22), sda=Pin(21), freq=400000) ie Soft versus whatever was used before. Likewise, are you using a Soft or Hard SPI bus? |
Beta Was this translation helpful? Give feedback.
-
@PsuFan the ESP32-D0WDQ6 should use the "generic" firmware. The only exception for the D0WD family is the ESP32-D0WDR2-V3 which can optionally use the "generic spiram" firmware.
On other ports, the software i2c has an additional benefit that it can work on any GPIO pin. But on ESP32, the hardware peripherals are very flexible and can generally run on any pin. (This is not true on other microcontrollers). (Exactly the same story for SPI). |
Beta Was this translation helpful? Give feedback.
-
I have confirmed in Arduino that the i2c mcp23017 is fully functional. However .scan in micropython returns []
|
Beta Was this translation helpful? Give feedback.
-
Ugh this was as simple as needing a zero parameter. Not quite sure what these are for but they are board specific.
|
Beta Was this translation helpful? Give feedback.
-
According to the link, this is a standard ESP32, 4MB flash, NO SPIRAM. So the ESP GENERIC firmware should be the right one. Interestingly, the link says, the ESP32 is single/dual core. Ti tell the chip type, you have to look at the ESP32 chip on the board, It's printed on the package. About I2C, I#ll ask my usual questions:
|
Beta Was this translation helpful? Give feedback.
-
Bonjour |
Beta Was this translation helpful? Give feedback.
-
all in TTGO.h : translate in micropython initpower function and all is good : no noise on screen , i2c.scan() reliable |
Beta Was this translation helpful? Give feedback.
Ugh this was as simple as needing a zero parameter. Not quite sure what these are for but they are board specific.