Skip to content

ESP32 Pin Mapping

tangentaudio edited this page Jan 23, 2018 · 18 revisions

RATT ESP32 Pin Mapping

(Note this is for the early hand-wired prototype only - As of Jan 2018 platform has moved to RPi Zero W)

Pin ESP32 Functions RATT Usage Function
GPIO0 BUTTON/Tch1/ADC2_1/GPIO0/CLK1 Bootloader FTDI USB Serial to enable bootloader on reboot
GPIO1 CLK3/GPIO1/U0_TXD USB-Serial UART0 TXD to FTDI USB Serial
GPIO2 Tch2/HSPI_WP/ADC2_2/GPIO21/CS SD Card D0 (must be pulled low to go into download mode)
GPIO3 CLK2/GPIO3/U0_RXD USB-Serial UART0 RXD from FTDI USB Serial
GPIO4 Tch0/HSPI_HD/ADC2_0/GPIO4 SD Card D1 (not used in 1-line mode)
GPIO5 GPIO5/V_SPI_CS0/LED TFT Display SPI Chip Select
GPIO6-11 Not present N/A N/A
GPIO12 TDI/Tch5/HSPI_Q/ADC2_6/GPIO14 SD Card D2 (not used in 1-line mode) - also JTAG
GPIO13 TCK/Tch4/HSPI_D/ADC2_4/GPIO13 SD Card D3 (not used in 1-line mode) - also JTAG
GPIO14 TMS/Tch6/HSPI_CLK/ADC2_6/GPIO14 SD Card CLK - also JTAG
GPIO15 TDO/Tch3/HSPI_CS0/ADC2_3/GPIO15 SD Card CMD - also JTAG
GPIO16 GPIO16/U2_RXD RFID Reader Serial RXD (ESP32 data in from RFID module)
GPIO17 GPIO17/U2_TXD I2S Audio Codec DOUT
GPIO18 SCK/GPIO18/V_SPI_CLK TFT Display SPI SCK
GPIO19 MISO/GPIO19/V_SPI_Q/U0_RTS TFT Display SPI MISO
GPIO20 Not present N/A N/A
GPIO21 SDA/GPIO21/V_SPI_HD I2C Bus I2C SDA
GPIO22 SCL/GPIO22/V_SPI_WP/U0_RTS I2C Bus I2C SCL
GPIO23 MOSI/GPIO23/V_SPI_D TFT Display SPI MOSI
GPIO24 Not present N/A N/A
GPIO25 DAC1/ADC2_8/GPIO25 I2S Audio Codec WS/LRCLK
GPIO26 DAC2/ADC2_9/GPIO26 I2S Audio Codec BCK
GPIO27 Tch7/ADC2_7/GPIO27 TFT Display Data/Command
GPIO28-31 Not present N/A N/A
GPIO32 Tch9/ADC1_4/GPIO32/XTAL32 TFT Display Controller Reset
GPIO33 Tch8/ADC1_5/GPIO33/XTAL32 TFT Display Backlight
GPIO34 VDET1/ADC1_6/GPIO34 GPIO input only/no internal pullup
GPIO35 VDET2/ADC1_7/GPIO35 GPIO input only/no internal pullup
GPIO36 ADC1_0/GPIO36/SenseVP Button 1 GPIO input only/no internal pullup
GPIO37 ADC1_1/GPIO37/CapVP Button 2 GPIO input only/no internal pullup
GPIO38 ADC1_2/GPIO38/CapVN Button 3 GPIO input only/no internal pullup
GPIO39 ADC1_3/GPIO39/SenseVN Button 4 GPIO input only/no internal pullup

ESP32-Thing:

ESP32-WROOM module: (removed graphic due to bad pinouts)

You can’t perform that action at this time.