Espressif's own ESP32 development board with an ESP32-WROOM-32 module. Most 38-pin "ESP32 DevKit" boards copy this layout, but clones do move pins around, so compare the labels printed on your board.
Top view, antenna up, Micro-USB at the bottom.
| Position | Pin | In code | Functions | Notes |
|---|---|---|---|---|
| J2 pin 1 | – | – | 3.3 V rail from the board's AMS1117-3.3 regulator. It can also power the board from a 3.3 V supply, but then nothing else may power it (no USB, nothing on 5V). The guide gives no current limit for loads on this pin. | |
| J2 pin 2 | – | –CHIP_PU | Chip enable (CHIP_PU). High runs the ESP32, low holds it in reset. The board pulls it up with 10 kΩ and the EN button pulls it to ground. | |
| J2 pin 3 | GPIO36 | ADC1_CH0SENSOR_VP, RTC_GPIO0 | Input onlyInput only. GPIO34–39 have no output driver and no internal pull-up or pull-down, so a button needs an external resistor. | |
| J2 pin 4 | GPIO39 | ADC1_CH3SENSOR_VN, RTC_GPIO3 | Input onlyInput only. GPIO34–39 have no output driver and no internal pull-up or pull-down, so a button needs an external resistor. | |
| J2 pin 5 | GPIO34 | ADC1_CH6VDET_1, RTC_GPIO4 | Input onlyInput only. GPIO34–39 have no output driver and no internal pull-up or pull-down, so a button needs an external resistor. | |
| J2 pin 6 | GPIO35 | ADC1_CH7VDET_2, RTC_GPIO5 | Input onlyInput only. GPIO34–39 have no output driver and no internal pull-up or pull-down, so a button needs an external resistor. | |
| J2 pin 7 | GPIO32 | ADC1_CH4, TOUCH9, PWMXTAL_32K_P, RTC_GPIO9 | Also the input of an optional 32.768 kHz crystal. The DevKitC has none fitted, so the pin is free. | |
| J2 pin 8 | GPIO33 | ADC1_CH5, TOUCH8, PWMXTAL_32K_N, RTC_GPIO8 | ||
| J2 pin 9 | GPIO25 | ADC2_CH8, DAC_1, PWMRTC_GPIO6 | ADC2 is shared with Wi-Fi: ADC2 readings fail while Wi-Fi is running. Use an ADC1 pin (GPIO32–39) in Wi-Fi projects. | |
| J2 pin 10 | GPIO26 | ADC2_CH9, DAC_2, PWMRTC_GPIO7 | ADC2 is shared with Wi-Fi: ADC2 readings fail while Wi-Fi is running. Use an ADC1 pin (GPIO32–39) in Wi-Fi projects. | |
| J2 pin 11 | GPIO27 | ADC2_CH7, TOUCH7, PWMRTC_GPIO17 | ADC2 is shared with Wi-Fi: ADC2 readings fail while Wi-Fi is running. Use an ADC1 pin (GPIO32–39) in Wi-Fi projects. | |
| J2 pin 12 | GPIO14 | ADC2_CH6, TOUCH6, HSPI SCK, PWMMTMS (JTAG), RTC_GPIO16 | ADC2 is shared with Wi-Fi: ADC2 readings fail while Wi-Fi is running. Use an ADC1 pin (GPIO32–39) in Wi-Fi projects. | |
| J2 pin 13 | GPIO12 | ADC2_CH5, TOUCH5, HSPI MISO, PWMMTDI (JTAG), RTC_GPIO15 | StrappingStrapping pin (MTDI). At reset it picks the flash supply voltage: low gives 3.3 V, high gives 1.8 V. It has an internal pull-down; keep it low at power-on or the board may not boot. | |
| J2 pin 14 | – | – | ||
| J2 pin 15 | GPIO13 | ADC2_CH4, TOUCH4, HSPI MOSI, PWMMTCK (JTAG), RTC_GPIO14 | ADC2 is shared with Wi-Fi: ADC2 readings fail while Wi-Fi is running. Use an ADC1 pin (GPIO32–39) in Wi-Fi projects. | |
| J2 pin 16 | GPIO9 | –SD_DATA2, SPIHD, U1RXD | FlashWired to the module's SPI flash. Don't use it: anything connected here can stop the ESP32 reading its own program. | |
| J2 pin 17 | GPIO10 | –SD_DATA3, SPIWP, U1TXD | FlashWired to the module's SPI flash. Don't use it: anything connected here can stop the ESP32 reading its own program. | |
| J2 pin 18 | GPIO11 | –SD_CMD, SPICS0, U1RTS | FlashWired to the module's SPI flash. Don't use it: anything connected here can stop the ESP32 reading its own program. | |
| J2 pin 19 | – | – | 5 V rail that feeds the board's 3.3 V regulator. USB feeds it through a Schottky diode, so on USB power it reads a little under 5 V. Power the board from USB, this pin or the 3V3 pin, only one at a time. | |
| J3 pin 1 | – | – | ||
| J3 pin 2 | GPIO23 | VSPI MOSI, PWM | ||
| J3 pin 3 | GPIO22 | SCL, PWMVSPIWP, U0RTS | SCL is the Arduino core's default I2C clock pin. The ESP32 can route I2C to almost any GPIO. | |
| J3 pin 4 | GPIO1 | UART0 TXU0TXD, CLK_OUT3 | USB serialConnected through a 0 Ω resistor to the USB-to-UART chip that uploads code and carries Serial Monitor. Anything else on this pin can interfere with uploading. | |
| J3 pin 5 | GPIO3 | UART0 RXU0RXD, CLK_OUT2 | USB serialConnected through a 0 Ω resistor to the USB-to-UART chip that uploads code and carries Serial Monitor. Anything else on this pin can interfere with uploading. | |
| J3 pin 6 | GPIO21 | SDA, PWMVSPIHD | SDA is the Arduino core's default I2C data pin. The ESP32 can route I2C to almost any GPIO. | |
| J3 pin 7 | – | – | ||
| J3 pin 8 | GPIO19 | VSPI MISO, PWMU0CTS | ||
| J3 pin 9 | GPIO18 | VSPI SCK, PWM | ||
| J3 pin 10 | GPIO5 | VSPI CS, PWM | StrappingStrapping pin. With GPIO15 it sets the SDIO slave timing at reset (internal pull-up). That only matters when the ESP32 runs as an SDIO slave, so it's fine for most projects. | |
| J3 pin 11 | GPIO17 | UART2 TX, PWM | Free on boards with an ESP32-WROOM or ESP32-SOLO module. On DevKitC boards with an ESP32-WROVER module this pin is used inside the module. | |
| J3 pin 12 | GPIO16 | UART2 RX, PWM | Free on boards with an ESP32-WROOM or ESP32-SOLO module. On DevKitC boards with an ESP32-WROVER module this pin is used inside the module. | |
| J3 pin 13 | GPIO4 | ADC2_CH0, TOUCH0, PWMHSPIHD, RTC_GPIO10 | ADC2 is shared with Wi-Fi: ADC2 readings fail while Wi-Fi is running. Use an ADC1 pin (GPIO32–39) in Wi-Fi projects. | |
| J3 pin 14 | GPIO0 | ADC2_CH1, TOUCH1, PWMCLK_OUT1, RTC_GPIO11 | StrappingStrapping pin. Low at reset starts the serial bootloader (download mode) instead of your program. It has an internal pull-up; don't let a circuit pull it low at power-on. | |
| J3 pin 15 | GPIO2 | ADC2_CH2, TOUCH2, PWMHSPIWP, RTC_GPIO12 | StrappingStrapping pin. It must be low or floating when GPIO0 is low at reset, or the board won't enter download mode. It has an internal pull-down. | |
| J3 pin 16 | GPIO15 | ADC2_CH3, TOUCH3, HSPI CS, PWMMTDO (JTAG), RTC_GPIO13 | StrappingStrapping pin (MTDO). Low at reset silences the boot messages on UART0, and with GPIO5 it sets the SDIO slave timing. It has an internal pull-up. | |
| J3 pin 17 | GPIO8 | –SD_DATA1, SPID, U2CTS | FlashWired to the module's SPI flash. Don't use it: anything connected here can stop the ESP32 reading its own program. | |
| J3 pin 18 | GPIO7 | –SD_DATA0, SPIQ, U2RTS | FlashWired to the module's SPI flash. Don't use it: anything connected here can stop the ESP32 reading its own program. | |
| J3 pin 19 | GPIO6 | –SD_CLK, SPICLK, U1CTS | FlashWired to the module's SPI flash. Don't use it: anything connected here can stop the ESP32 reading its own program. |
Every board is drawn from the top, the way you see it on the bench, with the pins in their real order. Red pins are power, black are ground, grey are control pins such as reset, and green are general-purpose I/O. A yellow ring marks a pin with a catch: a strapping pin that changes how the chip boots, a pin wired to flash or USB, or an input-only pin.
Pick a function above the drawing (I2C, SPI, ADC…) to light up the pins that can do it and see each pin's name for that function. Pins marked default are the ones the board's own documentation uses; on the ESP32 and the Pico most peripherals can move to other pins in software.
The label printed on the board, the physical pin number and the number you type in code are often three different things. On a Raspberry Pi, physical pin 11 is GPIO17. On an ESP32 the board says IO32 and the code says 32. The table under each drawing lists all three.
| Board | Logic level | 5 V on a GPIO? | Current per pin | All pins together |
|---|---|---|---|---|
| ESP32-DevKitC | 3.3 V | No (3.6 V max) | ~20 mA default, ~40 mA max drive | 1,200 mA (abs. max) |
| Arduino Uno R3, Nano | 5 V | Yes | 20 mA (40 mA abs. max) | 200 mA (abs. max) |
| Raspberry Pi Pico | 3.3 V | No | 2–12 mA, 4 mA default | 50 mA |
| Raspberry Pi (40-pin header) | 3.3 V | No | 16 mA | 50 mA |
The ESP32, the Pico and the Raspberry Pi run their pins at 3.3 V and none of them is 5 V tolerant. A 5 V sensor output on one of their GPIOs needs a level shifter or a resistor divider. The Arduino Uno and Nano run at 5 V; most 3.3 V modules need their inputs shifted down when you connect them to an Arduino.
The current limits are for the I/O pins, not for driving motors or relays. A small indicator LED is fine on any of these boards with a series resistor that keeps it under the pin's limit; anything bigger goes through a transistor or a driver. The LED resistor calculator works out the resistor.
GrandpaCAD's chat picks real parts, draws the schematic, routes the PCB and checks it against JLCPCB's rules. You get Gerbers, BOM, pick-and-place, a KiCad project and a 3D board, plus a printed case if you want one.
"ESP32 board with a BME280 sensor on I2C and a USB-C port"