ESP-WROOM-32 design help for boot + I2C
Posted: Thu Jan 31, 2019 4:25 am
Dear community,
I tryed to design ESP-WROOM-32 (just pure module, not dev. board) myself. I am using UART and boot mode to upload Arduino code into ESP32. The problem start when I tryed to add MCP3221 (12bit I2C AD Converter). I used pins 21 (GPIO7) and 22 (GPIO8). But than I can not upload the code because of data packet errors. I read that some pins are used to internal flash logic. So, can someone help me how to connect two wire I2C device to ESP32 but with working boot mode? My pinouts:
pin 2 = VCC (3,3V)
pin 3 = EN (3,3V with resistor)
pin 1, 15, 38 = GND
pin 34, 35 = TX, RX UART for uploading the code
pin 25 = GPIO0 for boot mode enable
pin 29, 30, 37 = GPIO5 (CS), GPIO18 (CLK), GPIO23 (MOSI) as SPI bus to control led driver MAX7219
pin 10, 11 = GPIO25, GPIO26 as two internal pullout pins for two DIP-Switch components
pin 21, 22 = GPIO7, GPIO8 as I2C bus to control MCP3221 <<< this need to be removed because it prevent ESP32 to uploading the code
Any idea which pins I can use for I2C for stable non-problematic run? I will use both WIFI and Bluetooth periphecals so the connection shoud not to collide!
Thank you.
UK
I tryed to design ESP-WROOM-32 (just pure module, not dev. board) myself. I am using UART and boot mode to upload Arduino code into ESP32. The problem start when I tryed to add MCP3221 (12bit I2C AD Converter). I used pins 21 (GPIO7) and 22 (GPIO8). But than I can not upload the code because of data packet errors. I read that some pins are used to internal flash logic. So, can someone help me how to connect two wire I2C device to ESP32 but with working boot mode? My pinouts:
pin 2 = VCC (3,3V)
pin 3 = EN (3,3V with resistor)
pin 1, 15, 38 = GND
pin 34, 35 = TX, RX UART for uploading the code
pin 25 = GPIO0 for boot mode enable
pin 29, 30, 37 = GPIO5 (CS), GPIO18 (CLK), GPIO23 (MOSI) as SPI bus to control led driver MAX7219
pin 10, 11 = GPIO25, GPIO26 as two internal pullout pins for two DIP-Switch components
pin 21, 22 = GPIO7, GPIO8 as I2C bus to control MCP3221 <<< this need to be removed because it prevent ESP32 to uploading the code
Any idea which pins I can use for I2C for stable non-problematic run? I will use both WIFI and Bluetooth periphecals so the connection shoud not to collide!
Thank you.
UK