ESP32-DevKitC V4
Espressif's basic ESP32 development board: an ESP32-WROOM-32E/UE or ESP32-WROVER-E/IE module, a CP2102N USB-to-UART bridge on one Micro-USB port, and two 19-pin headers. There is no user LED.
Pinout
Which pins to use
Free to use (11)
- GPIO4 — ADC2: no analogRead while Wi-Fi is on
- GPIO18
- GPIO19
- GPIO21
- GPIO22
- GPIO23
- GPIO25 — ADC2: no analogRead while Wi-Fi is on
- GPIO26 — ADC2: no analogRead while Wi-Fi is on
- GPIO27 — ADC2: no analogRead while Wi-Fi is on
- GPIO32
- GPIO33
Usable, with care (15)
- GPIO0 — on-board: Boot button (to GND); also driven by the CP2102N auto-program circuit (DTR/RTS → EN/IO0); strapping pin: Boot mode; ADC2: no analogRead while Wi-Fi is on
- GPIO1 — on-board: UART0 TX/RX to the CP2102N USB-to-UART bridge; UART0 console
- GPIO2 — strapping pin: Boot mode; ADC2: no analogRead while Wi-Fi is on
- GPIO3 — on-board: UART0 TX/RX to the CP2102N USB-to-UART bridge; UART0 console
- GPIO5 — strapping pin: SDIO slave timing (output edge)
- GPIO12 — strapping pin: VDD_SDIO voltage (flash/PSRAM supply); JTAG pin; ADC2: no analogRead while Wi-Fi is on
- GPIO13 — JTAG pin; ADC2: no analogRead while Wi-Fi is on
- GPIO14 — JTAG pin; ADC2: no analogRead while Wi-Fi is on
- GPIO15 — strapping pin: ROM messages on U0TXD; SDIO slave timing (sampling edge); JTAG pin; ADC2: no analogRead while Wi-Fi is on
- GPIO16 — used by PSRAM on some chip/module variants; on-board: Reserved inside ESP32-WROVER-E/IE modules (free on WROOM versions)
- GPIO17 — used by PSRAM on some chip/module variants; on-board: Reserved inside ESP32-WROVER-E/IE modules (free on WROOM versions)
- GPIO34 — input only
- GPIO35 — input only
- GPIO36 — input only
- GPIO39 — input only
Avoid (6)
- GPIO6 — connected to the SPI flash; on-board: SPI flash / PSRAM inside the module (broken out as CLK, D0, D1, D2, D3, CMD)
- GPIO7 — connected to the SPI flash; on-board: SPI flash / PSRAM inside the module (broken out as CLK, D0, D1, D2, D3, CMD)
- GPIO8 — connected to the SPI flash; on-board: SPI flash / PSRAM inside the module (broken out as CLK, D0, D1, D2, D3, CMD)
- GPIO9 — connected to the SPI flash; on-board: SPI flash / PSRAM inside the module (broken out as CLK, D0, D1, D2, D3, CMD)
- GPIO10 — connected to the SPI flash; on-board: SPI flash / PSRAM inside the module (broken out as CLK, D0, D1, D2, D3, CMD)
- GPIO11 — connected to the SPI flash; on-board: SPI flash / PSRAM inside the module (broken out as CLK, D0, D1, D2, D3, CMD)
Derived from the chip and board data on this site (pin roles, strapping pins, on-board parts). “Free” still means: check the pin table for ADC/touch channels. Try your own combination in the pin planner.
Arduino IDE
Default pins from the variant's pins_arduino.h in arduino-esp32 3.3.12; this is what Wire.begin(), SPI.begin() and Serial0 use without arguments.
On-board connections
| GPIO0 | Boot button (to GND); also driven by the CP2102N auto-program circuit (DTR/RTS → EN/IO0)12 |
| GPIO1, GPIO3 | UART0 TX/RX to the CP2102N USB-to-UART bridge12 |
| GPIO6, GPIO7, GPIO8, GPIO9, GPIO10, GPIO11 | SPI flash / PSRAM inside the module (broken out as CLK, D0, D1, D2, D3, CMD)1 |
| GPIO16, GPIO17 | Reserved inside ESP32-WROVER-E/IE modules (free on WROOM versions)1 |
Things to know
D0–D3, CMD and CLK (GPIO6–11) sit at the USB end of both rows but connect to the module's SPI flash (and PSRAM). Using them as GPIO breaks flash access.1
IO16 and IO17 are usable only on the WROOM/SOLO versions; on WROVER versions the module uses them internally.1
IO12 (MTDI) on J2 selects the internal VDD_SDIO LDO voltage at reset; IO0, IO2, IO5 and IO15 on J3 are strapping pins too. Keep external circuits on them from forcing a level at power-up.61
On earlier V4 boards capacitor C15 (on IO0) can make the board boot into download mode or distort a clock output on GPIO0; the guide says to remove it. The published V4 schematic marks C15 as not fitted (NC).12
The esp32 variant used by “ESP32 Dev Module” defines TX/RX, I2C, SPI and analog pins but no LED_BUILTIN (checked in the 3.3.12 file), which matches the board: it has no user LED.4
Pin table
| Header | # | Label | GPIO | Functions |
|---|---|---|---|---|
| J212 | 1 | 3V3 | 3V3 | |
| J2 | 2 | EN | EN | |
| J2 | 3 | VP | GPIO36 | ADC1_CH0 IN ONLY |
| J2 | 4 | VN | GPIO39 | ADC1_CH3 IN ONLY |
| J2 | 5 | IO34 | GPIO34 | ADC1_CH6 IN ONLY |
| J2 | 6 | IO35 | GPIO35 | ADC1_CH7 IN ONLY |
| J2 | 7 | IO32 | GPIO32 | ADC1_CH4 TOUCH9 XTAL_32K |
| J2 | 8 | IO33 | GPIO33 | ADC1_CH5 TOUCH8 XTAL_32K |
| J2 | 9 | IO25 | GPIO25 | ADC2_CH8 DAC |
| J2 | 10 | IO26 | GPIO26 | ADC2_CH9 DAC |
| J2 | 11 | IO27 | GPIO27 | ADC2_CH7 TOUCH7 |
| J2 | 12 | IO14 | GPIO14 | ADC2_CH6 TOUCH6 JTAG |
| J2 | 13 | IO12 | GPIO12 | ADC2_CH5 TOUCH5 STRAP JTAG |
| J2 | 14 | GND | GND | |
| J2 | 15 | IO13 | GPIO13 | ADC2_CH4 TOUCH4 JTAG |
| J2 | 16 | D2 | GPIO9 | module flash FLASH |
| J2 | 17 | D3 | GPIO10 | module flash FLASH |
| J2 | 18 | CMD | GPIO11 | module flash FLASH |
| J2 | 19 | 5V | 5V | |
| J312 | 1 | GND | GND | |
| J3 | 2 | IO23 | GPIO23 | MOSI |
| J3 | 3 | IO22 | GPIO22 | SCL |
| J3 | 4 | TX | GPIO1 | to USB-UART |
| J3 | 5 | RX | GPIO3 | to USB-UART |
| J3 | 6 | IO21 | GPIO21 | SDA |
| J3 | 7 | GND | GND | |
| J3 | 8 | IO19 | GPIO19 | MISO |
| J3 | 9 | IO18 | GPIO18 | SCK |
| J3 | 10 | IO5 | GPIO5 | SS STRAP |
| J3 | 11 | IO17 | GPIO17 | WROVER PSRAM PSRAM |
| J3 | 12 | IO16 | GPIO16 | WROVER PSRAM PSRAM |
| J3 | 13 | IO4 | GPIO4 | ADC2_CH0 TOUCH0 |
| J3 | 14 | IO0 | GPIO0 | ADC2_CH1 TOUCH1 BOOT button STRAP |
| J3 | 15 | IO2 | GPIO2 | ADC2_CH2 TOUCH2 STRAP |
| J3 | 16 | IO15 | GPIO15 | ADC2_CH3 TOUCH3 STRAP JTAG |
| J3 | 17 | D1 | GPIO8 | module flash FLASH |
| J3 | 18 | D0 | GPIO7 | module flash FLASH |
| J3 | 19 | CLK | GPIO6 | module flash FLASH |
Specifications
| Board | |
|---|---|
| Module / chip | ESP32-WROOM-32E (photo in the guide); the ordering table also lists ESP32-WROOM-32UE, ESP32-WROVER-E and ESP32-WROVER-IE versions1 |
| Flash | 4 MB (WROOM-32E/UE versions) or 8 MB (WROVER-E/IE versions)1 |
| PSRAM | none on the WROOM-32E/UE versions; 8 MB on the WROVER-E/IE versions1 |
| USB | One Micro-USB port: power and the USB-to-UART bridge (ESP32 has no native USB)1 |
| USB-to-UART bridge | Silicon Labs CP2102N (CP2102N-A02-GQFN28 in the schematic), up to 3 Mbps21 |
| LEDs | Only a 5 V power-on LED; no LED on a GPIO1 |
| Buttons | Boot (GPIO0) and EN (reset)1 |
| Size | PCB 48.26 × 27.94 mm per the dimensions drawing (the module antenna overhangs the PCB edge)3 |
| Power | Micro-USB (default), 5V+GND pins, or 3V3+GND pins; only one at a time1 |
Product page: https://www.espressif.com/en/products/devkits/esp32-devkitc
Sources
Each number on this page links here. Open “What it confirms” to see the exact quote behind every value. Checked 2026-11-28.
- ESP32-DevKitC V4 User Guide (esp-dev-kits, latest) primary
What it confirms (22)
- ESP32-DevKitC V4: header J2 pins “1 | 3V3 | P | 3.3 V power supply … 2 | EN | I | CHIP_PU, Reset … 3 | VP | I | GPIO36, ADC1_CH0, S_VP … 4 | VN | I | GPIO39, ADC1_CH3, S_VN … 5 | IO34 | I | GPIO34, ADC1_CH6, VDET_1 … 6 | IO35 | I | GPIO35, ADC1_CH7, VDET_2 … 7 | IO32 | I/O | GPIO32, ADC1_CH4, TOUCH_CH9, XTAL_32K_P … 8 | IO33 | I/O | GPIO33, ADC1_CH5, TOUCH_CH8, XTAL_32K_N … 9 | IO25 | I/O | GPIO25, ADC2_CH8, DAC_1 … 10 | IO26 | I/O | GPIO26, ADC2_CH9, DAC_2 … 11 | IO27 | I/O | GPIO27, ADC2_CH7, TOUCH_CH7 … 12 | IO14 | I/O | GPIO14, ADC2_CH6, TOUCH_CH6, MTMS … 13 | IO12 | I/O | GPIO12, ADC2_CH5, TOUCH_CH5, MTDI … 14 | GND | G | Ground … 15 | IO13 | I/O | GPIO13, ADC2_CH4, TOUCH_CH4, MTCK … 16 | D2 | I/O | GPIO9, D2 … 17 | D3 | I/O | GPIO10, D3 … 18 | CMD | I/O | GPIO11, CMD … 19 | 5V | P | 5 V power supply”
- ESP32-DevKitC V4: header J3 pins “1 | GND | G | Ground … 2 | IO23 | I/O | GPIO23 … 3 | IO22 | I/O | GPIO22 … 4 | TX | I/O | GPIO1, U0TXD … 5 | RX | I/O | GPIO3, U0RXD … 6 | IO21 | I/O | GPIO21 … 7 | GND | G | Ground … 8 | IO19 | I/O | GPIO19 … 9 | IO18 | I/O | GPIO18 … 10 | IO5 | I/O | GPIO5 … 11 | IO17 | I/O | GPIO17 … 12 | IO16 | I/O | GPIO16 … 13 | IO4 | I/O | GPIO4, ADC2_CH0, TOUCH_CH0 … 14 | IO0 | I/O | GPIO0, ADC2_CH1, TOUCH_CH1, Boot … 15 | IO2 | I/O | GPIO2, ADC2_CH2, TOUCH_CH2 … 16 | IO15 | I/O | GPIO15, ADC2_CH3, TOUCH_CH3, MTDO … 17 | D1 | I/O | GPIO8, D1 … 18 | D0 | I/O | GPIO7, D0 … 19 | CLK | I/O | GPIO6, CLK”
- ESP32-DevKitC V4: orientation “They are grouped on both sides near the USB connector. … 16 | D2 | I/O | GPIO9, D2 … 17 | D1 | I/O | GPIO8, D1”
- ESP32-DevKitC V4: Module / chip “ESP32-DevKitC-32E | ESP32-WROOM-32E … ESP32-DevKitC-32UE | ESP32-WROOM-32UE … ESP32-DevKitC-VE | ESP32-WROVER-E … ESP32-DevKitC-VIE | ESP32-WROVER-IE”
- ESP32-DevKitC V4: Flash “ESP32-DevKitC-32E | ESP32-WROOM-32E | 4 MB … ESP32-WROVER-E | 8 MB | 8 MB | PCB on-board antenna”
- ESP32-DevKitC V4: PSRAM “ESP32-DevKitC-32UE | ESP32-WROOM-32UE | 4 MB … ESP32-WROVER-IE | 8 MB | 8 MB | External antenna connector”
- ESP32-DevKitC V4: USB “A Micro-USB port used for power supply to the board, as well as for communication between a computer and the ESP32-WROOM-32E module.”
- ESP32-DevKitC V4: USB-UART “Single USB-to-UART bridge chip, providing transfer rates up to 3 Mbps.”
- ESP32-DevKitC V4: Boot button (to GND); also driven by the CP2102N auto-program circuit (DTR/RTS → EN/IO0) “14 | IO0 | I/O | GPIO0, ADC2_CH1, TOUCH_CH1, Boot”
- ESP32-DevKitC V4: UART0 TX/RX to the CP2102N USB-to-UART bridge “4 | TX | I/O | GPIO1, U0TXD … 5 | RX | I/O | GPIO3, U0RXD”
- ESP32-DevKitC V4: SPI flash / PSRAM inside the module (broken out as CLK, D0, D1, D2, D3, CMD) “The pins D0, D1, D2, D3, CMD and CLK are used internally for communication between ESP32 and SPI flash memory.”
- ESP32-DevKitC V4: Reserved inside ESP32-WROVER-E/IE modules (free on WROOM versions) “The boards with ESP32-WROVER modules have the pins reserved for internal use.”
- ESP32-DevKitC V4: Six header pins belong to the flash “Avoid using these pins, as it may disrupt access to the SPI flash memory/SPI RAM.”
- ESP32-DevKitC V4: GPIO16/17 depend on the module “The pins GPIO16 and GPIO17 are available for use only on the boards with the modules ESP32-WROOM and ESP32-SOLO-1.”
- ESP32-DevKitC V4: IO12 is a strapping pin “13 | IO12 | I/O | GPIO12, ADC2_CH5, TOUCH_CH5, MTDI … 16 | IO15 | I/O | GPIO15, ADC2_CH3, TOUCH_CH3, MTDO”
- ESP32-DevKitC V4: C15 on early V4 boards “The component C15 may cause the following issues on earlier ESP32-DevKitC V4 boards: … The board may boot into Download mode … If you output clock on GPIO0, C15 may impact the signal … please remove the component”
- ESP32-DevKitC V4: header J2 “1 | 3V3 | P | 3.3 V power supply … 2 | EN | I | CHIP_PU, Reset … 3 | VP | I | GPIO36, ADC1_CH0, S_VP … 4 | VN | I | GPIO39, ADC1_CH3, S_VN … 5 | IO34 | I | GPIO34, ADC1_CH6, VDET_1 … 6 | IO35 | I | GPIO35, ADC1_CH7, VDET_2 … 7 | IO32 | I/O | GPIO32, ADC1_CH4, TOUCH_CH9, XTAL_32K_P … 8 | IO33 | I/O | GPIO33, ADC1_CH5, TOUCH_CH8, XTAL_32K_N … 9 | IO25 | I/O | GPIO25, ADC2_CH8, DAC_1 … 10 | IO26 | I/O | GPIO26, ADC2_CH9, DAC_2 … 11 | IO27 | I/O | GPIO27, ADC2_CH7, TOUCH_CH7 … 12 | IO14 | I/O | GPIO14, ADC2_CH6, TOUCH_CH6, MTMS … 13 | IO12 | I/O | GPIO12, ADC2_CH5, TOUCH_CH5, MTDI … 14 | GND | G | Ground … 15 | IO13 | I/O | GPIO13, ADC2_CH4, TOUCH_CH4, MTCK … 16 | D2 | I/O | GPIO9, D2 … 17 | D3 | I/O | GPIO10, D3 … 18 | CMD | I/O | GPIO11, CMD … 19 | 5V | P | 5 V power supply”
- ESP32-DevKitC V4: header J3 “1 | GND | G | Ground … 2 | IO23 | I/O | GPIO23 … 3 | IO22 | I/O | GPIO22 … 4 | TX | I/O | GPIO1, U0TXD … 5 | RX | I/O | GPIO3, U0RXD … 6 | IO21 | I/O | GPIO21 … 7 | GND | G | Ground … 8 | IO19 | I/O | GPIO19 … 9 | IO18 | I/O | GPIO18 … 10 | IO5 | I/O | GPIO5 … 11 | IO17 | I/O | GPIO17 … 12 | IO16 | I/O | GPIO16 … 13 | IO4 | I/O | GPIO4, ADC2_CH0, TOUCH_CH0 … 14 | IO0 | I/O | GPIO0, ADC2_CH1, TOUCH_CH1, Boot … 15 | IO2 | I/O | GPIO2, ADC2_CH2, TOUCH_CH2 … 16 | IO15 | I/O | GPIO15, ADC2_CH3, TOUCH_CH3, MTDO … 17 | D1 | I/O | GPIO8, D1 … 18 | D0 | I/O | GPIO7, D0 … 19 | CLK | I/O | GPIO6, CLK”
- ESP32-DevKitC V4: USB-to-UART bridge “Single USB-to-UART bridge chip, providing transfer rates up to 3 Mbps.”
- ESP32-DevKitC V4: LEDs “Turns on when the USB or an external 5V power supply is connected to the board.”
- ESP32-DevKitC V4: Buttons “Boot Button | Download button. Holding down Boot and then pressing EN initiates Firmware Download mode … EN Button | Reset button.”
- ESP32-DevKitC V4: Power “Micro USB port, default power supply … 5V and GND header pins … 3V3 and GND header pins … The power supply must be provided using one and only one of the options above”
- ESP32-DevKitC V4 Schematics (esp32_devkitc_v4_sch.pdf, Rev V4) primary
What it confirms (9)
- ESP32-DevKitC V4: header J2 pins “EN SENSOR_VP SENSOR_VN IO34 IO35 IO32 IO33 IO25 IO26 IO27 IO14 IO12 GND IO13 SD2 SD3 CMD EXT_5V”
- ESP32-DevKitC V4: header J3 pins “GND IO23 IO22 TXD0 RXD0 IO21 … IO19 IO18 IO5 IO17 IO16 IO4 IO0 IO2 IO15 SD1 SD0 CLK”
- ESP32-DevKitC V4: USB-UART “CP2102N-A02-GQFN28”
- ESP32-DevKitC V4: Boot button (to GND); also driven by the CP2102N auto-program circuit (DTR/RTS → EN/IO0) “Auto program DTR RTS-->EN IO0”
- ESP32-DevKitC V4: UART0 TX/RX to the CP2102N USB-to-UART bridge “CP2102N-A02-GQFN28”
- ESP32-DevKitC V4: C15 on early V4 boards “0.1uF/50V(10%)(NC)”
- ESP32-DevKitC V4: header J2 “EN SENSOR_VP SENSOR_VN IO34 IO35 IO32 IO33 IO25 IO26 IO27 IO14 IO12 GND IO13 SD2 SD3 CMD EXT_5V”
- ESP32-DevKitC V4: header J3 “GND IO23 IO22 TXD0 RXD0 IO21 … IO19 IO18 IO5 IO17 IO16 IO4 IO0 IO2 IO15 SD1 SD0 CLK”
- ESP32-DevKitC V4: USB-to-UART bridge “CP2102N-A02-GQFN28”
- ESP32-DevKitC V4 Dimensions (PDF) primary
What it confirms (2)
- ESP32-DevKitC V4: orientation “Unit: mm … 48.26”
- ESP32-DevKitC V4: Size “Unit: mm … 48.26 … 27.94”
- arduino-esp32 3.3.12: variants/esp32/pins_arduino.h primary
What it confirms (9)
- ESP32-DevKitC V4: TX “static const uint8_t TX = 1;”
- ESP32-DevKitC V4: RX “static const uint8_t RX = 3;”
- ESP32-DevKitC V4: SDA “static const uint8_t SDA = 21;”
- ESP32-DevKitC V4: SCL “static const uint8_t SCL = 22;”
- ESP32-DevKitC V4: SS “static const uint8_t SS = 5;”
- ESP32-DevKitC V4: MOSI “static const uint8_t MOSI = 23;”
- ESP32-DevKitC V4: MISO “static const uint8_t MISO = 19;”
- ESP32-DevKitC V4: SCK “static const uint8_t SCK = 18;”
- ESP32-DevKitC V4: No LED_BUILTIN in Arduino “static const uint8_t TX = 1; … static const uint8_t SDA = 21;”
- arduino-esp32 3.3.12: boards.txt primary
What it confirms (1)
- ESP32-DevKitC V4: Arduino board “esp32.name=ESP32 Dev Module … esp32.build.variant=esp32”
- ESP32 Series Datasheet v5.3 primary
What it confirms (1)
- ESP32-DevKitC V4: IO12 is a strapping pin “Strapping pin: GPIO0 and GPIO2 … Internal LDO (VDD_SDIO) Voltage … Strapping pin: MTDI … Strapping pin: MTDO and GPIO5”