Projects
Espressif ESP32

Espressif ESP32

Output VoltageOperating VoltageMaximum CurrentWiFiBLEUSB Connector
3.3V
3.3V
Type C
Type C

Detailed Pinout

ESP32 Detailed Pinout
⚠️

ESP32 boards are available in 30- and 38-pin configurations. While the detailed pinout above is for 38 pins, the simplifed pinout below is for 30 pins.

Simplified Pinout

ESP32 Recommended Pins

Notes:

  • Pins in green are digital GPIO pins.
  • Pins in blue marked ADC are analog input pins.
  • Pins in orange are for Software Serial UART.
  • I2C and SPI pins are named accordingly.
  • The primary pin function is indicated closest to the board, secondary functions going outwards. If the pin is not required for the primary function it can be used for the secondary function.
  • All GPIO pins are capable of PWM signals and Interrupts.
  • Pin numbers shown are to be used in code. They may be different from the numbers printed on the board.
  • The ~ prefix for a GPIO indicates PWM support.
  • The * suffix for a GPIO indicates Interrupt support.
  • Do not use the pins marked with an X:
    • X1 and X2: Hardware UART TX and RX pins.
    • X3: Reset pin.
    • X4 and X5: Analog input pins need +ve and -ve input signals, safer to not use unless sure.

Pin Functions

Board #Code #Preferred FunctionAlternate Functions
D1313Software UART TXDigital GPIO / PWM
D1212Digital GPIOPWM
D1414Software UART RXDigital GPIO / PWM
D2727Digital GPIOPWM
D2626Digital GPIOPWM
D2525Digital GPIOPWM
D3333Digital GPIOPWM
D3232Digital GPIOPWM
D3535Analog InDigital GPIO
D3434Analog InDigital GPIO
D2312SPI COPIDigital GPIO
D2222I2C SCLDigital GPIO
TX01Board UART TXDO NOT USE
RX03Board UART RXDO NOT USE
D2121I2C SDADigital GPIO
D1919SPI CIPODigital GPIO
D1818SPI SCKDigital GPIO
D55SPI CSDigital GPIO
TX217Hardware UART TXDigital GPIO
RX216Hardware UART RXDigital GPIO
D44Digital GPIOPWM
D22Digital GPIOPWM
D1515Digital GPIOPWM