ESP32 DevKitC V4 (38 pin) pinout
ESP32-DevKitC V4 (ESP32-WROOM-32E), 38 pins, ESP32 (ESP32-D0WD-V3), 3.3 V logic, 27.94×48.26 mm, 38 pins
verified15.10.2026
- 3V33.3 V
- ENbuttonCHIP_PU
- VPGPIO36inADC1_CH0RTC_GPIO0SENSOR_VP
- VNGPIO39inADC1_CH3RTC_GPIO3SENSOR_VN
- 34GPIO34inADC1_CH6RTC_GPIO4
- 35GPIO35inADC1_CH7RTC_GPIO5
- 32GPIO32ADC1_CH4TOUCH9PWMRTC_GPIO9XTAL_32K_P
- 33GPIO33ADC1_CH5TOUCH8PWMRTC_GPIO8XTAL_32K_N
- 25GPIO25ADC2_CH8DAC1PWMRTC_GPIO6
- 26GPIO26ADC2_CH9DAC2PWMRTC_GPIO7
- 27GPIO27ADC2_CH7TOUCH7PWMRTC_GPIO17
- 14GPIO14HSPI SCKADC2_CH6TOUCH6PWMRTC_GPIO16JTAG MTMS
- 12GPIO12BOOTHSPI MISOADC2_CH5TOUCH5PWMRTC_GPIO15JTAG MTDI
- GND
- 13GPIO13HSPI MOSIADC2_CH4TOUCH4PWMRTC_GPIO14JTAG MTCK
- D2GPIO9flashSPI flash D2
- D3GPIO10flashSPI flash D3
- CMDGPIO11flashSPI flash CMD
- 5V5 V
- GND
- 23GPIO23VSPI MOSIPWM
- 22GPIO22I2C SCLPWM
- TXGPIO1BOOTUART0 TXPWM
- RXGPIO3UART0 RXPWM
- 21GPIO21I2C SDAPWM
- GND
- 19GPIO19VSPI MISOPWM
- 18GPIO18VSPI SCKPWM
- 5GPIO5BOOTVSPI CSPWM
- 17GPIO17UART2 TXPWM
- 16GPIO16UART2 RXPWM
- 4GPIO4ADC2_CH0TOUCH0PWMRTC_GPIO10
- 0GPIO0BOOTbuttonADC2_CH1TOUCH1PWMRTC_GPIO11
- 2GPIO2BOOTADC2_CH2TOUCH2PWMRTC_GPIO12
- 15GPIO15BOOTHSPI CSADC2_CH3TOUCH3PWMRTC_GPIO13JTAG MTDO
- D1GPIO8flashSPI flash D1
- D0GPIO7flashSPI flash D0
- CLKGPIO6flashSPI flash CLK
Top view, USB at the bottom, module antenna at the top.
CompareDownload PNG- Chip
- ESP32 (ESP32-D0WD-V3), ESP32-WROOM-32E
- Logic
- 3.3 V
- Power
- Micro-USB 4.75-5.25 V5V 4.75-5.25 V3V3 3-3.6 V
- Defaults in arduino-esp32
- I2C: SDA 21, SCL 22SPI: MOSI 23, MISO 19, SCK 18, SS 5UART: TX 1, RX 3
Which ESP32 DevKitC V4 (38 pin) pins are safe to use
Free to use
GPIO3, GPIO4, GPIO13, GPIO14, GPIO16-19, GPIO21-23, GPIO25-27, GPIO32, GPIO33
Use with care
- GPIO0, GPIO2, GPIO5, GPIO12, GPIO15: strapping: the level at power-up selects the boot mode.
- GPIO1: signal at boot.
- GPIO34-36, GPIO39: input only, no output and no pull-ups.
Leave alone
- GPIO6-11: flash and PSRAM memory.
Important
- 3.3 V logic, don't put 5 V on the GPIO.
- D0, D1, D2, D3, CMD, CLK (GPIO6–11) go to the module's flash: connect nothing to them.
- 34, 35, VP (36), VN (39) are inputs only, with no pull-ups.
- Strapping: GPIO0, 2, 5, 12, 15. Watch GPIO12 in particular: if it's high at power-up, the module won't start.
- ADC2 (GPIO0, 2, 4, 12–15, 25–27) doesn't work with Wi-Fi on. With Wi-Fi, use ADC1: 32–39.
- Rows are 25.4 mm (1 inch) apart: on a standard breadboard you get one free row of holes on each side, or none.
- The silkscreen labels are plain numbers (34, 25…); the Espressif user guide calls these pins IO34, IO25.
- There's no LED on a GPIO (just the red power indicator). arduino-esp32 doesn't define LED_BUILTIN for this board.
- Small parts (regulator, USB-UART bridge, LEDs) are drawn roughly from the drawing and photos; pins, module, USB and buttons follow the dimension drawing.
- Espressif: power it only one of three ways (USB, 5V, 3V3), otherwise you can damage the board.
Revisions and clones
- The same board ships with ESP32-WROOM-32D/32U/32UE modules (U means an external antenna connector), ESP32-SOLO-1 and ESP32-WROVER-E (then GPIO16 and 17 are used by PSRAM and the module is longer).
- "ESP32 38 pin" clones often use a CH340C or CH9102X and a different regulator. The pin order is usually the same, but check the row spacing (some are 0.9 inch).
All pins
| Label | Number | Functions | Limits | Check |
|---|---|---|---|---|
| 3V3 | 3.3 V | power inputpower output | verified3.3 V output of the AMS1117 regulator (up to ~1 A) or the module's power input. | |
| EN | CHIP_PU: enable and reset (low = reset) | onboard pull-uponboard button | verifiedThe EN button on the board shorts it to ground: that's the reset. | |
| VP | GPIO36 | interruptADC1_CH0RTC_GPIO0SENSOR_VP | input onlynot 5 V tolerant | verifiedInput only: no output and no internal pull-ups. |
| VN | GPIO39 | interruptADC1_CH3RTC_GPIO3SENSOR_VN | input onlynot 5 V tolerant | verifiedInput only: no output and no internal pull-ups. |
| 34 | GPIO34 | interruptADC1_CH6RTC_GPIO4 | input onlynot 5 V tolerant | verifiedInput only: no output and no internal pull-ups. |
| 35 | GPIO35 | interruptADC1_CH7RTC_GPIO5 | input onlynot 5 V tolerant | verifiedInput only: no output and no internal pull-ups. |
| 32 | GPIO32 | interruptPWM (LEDC)ADC1_CH4TOUCH9RTC_GPIO9XTAL_32K_P (32 kHz crystal) | not 5 V tolerant | verified |
| 33 | GPIO33 | interruptPWM (LEDC)ADC1_CH5TOUCH8RTC_GPIO8XTAL_32K_N (32 kHz crystal) | not 5 V tolerant | verified |
| 25 | GPIO25 | interruptPWM (LEDC)ADC2_CH8RTC_GPIO6DAC1 | ADC2 doesn't work with Wi-Fi onnot 5 V tolerant | verifiedADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39). |
| 26 | GPIO26 | interruptPWM (LEDC)ADC2_CH9RTC_GPIO7DAC2 | ADC2 doesn't work with Wi-Fi onnot 5 V tolerant | verifiedADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39). |
| 27 | GPIO27 | interruptPWM (LEDC)ADC2_CH7TOUCH7RTC_GPIO17 | ADC2 doesn't work with Wi-Fi onnot 5 V tolerant | verifiedADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39). |
| 14 | GPIO14 | interruptPWM (LEDC)ADC2_CH6TOUCH6RTC_GPIO16HSPI SCKJTAG MTMS | ADC2 doesn't work with Wi-Fi onnot 5 V tolerant | verifiedADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39). |
| 12 | GPIO12 | interruptPWM (LEDC)ADC2_CH5TOUCH5RTC_GPIO15HSPI MISOJTAG MTDI | affects boot (strapping)ADC2 doesn't work with Wi-Fi onnot 5 V tolerant | verifiedMTDI: selects the flash voltage at reset. High = 1.8 V, so a module with 3.3 V flash won't boot. Internal pull-down.ADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39). |
| GND | Ground | verified | ||
| 13 | GPIO13 | interruptPWM (LEDC)ADC2_CH4TOUCH4RTC_GPIO14HSPI MOSIJTAG MTCK | ADC2 doesn't work with Wi-Fi onnot 5 V tolerant | verifiedADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39). |
| D2 | GPIO9 | SPI flash D2 (HD) | used by flash, do not usenot 5 V tolerant | verifiedWired to the module's SPI flash. Connect nothing: the board will stop working. |
| D3 | GPIO10 | SPI flash D3 (WP) | used by flash, do not usenot 5 V tolerant | verifiedWired to the module's SPI flash. Connect nothing: the board will stop working. |
| CMD | GPIO11 | SPI flash CMD (CS) | used by flash, do not usenot 5 V tolerant | verifiedWired to the module's SPI flash. Connect nothing: the board will stop working. |
| 5V | 5 V | power inputpower output | verified5 V from USB (through a diode) or a 5 V input. | |
| GND | Ground | verified | ||
| 23 | GPIO23 | interruptPWM (LEDC)VSPI MOSI | not 5 V tolerant | verified |
| 22 | GPIO22 | interruptPWM (LEDC)I2C SCL | not 5 V tolerant | verified |
| TX | GPIO1 | interruptPWM (LEDC)UART0 TX | outputs a signal at bootnot 5 V tolerant | verifiedPrints the bootloader log at boot (115200 baud).Wired to the USB-UART bridge: busy during flashing and Serial. |
| RX | GPIO3 | interruptPWM (LEDC)UART0 RX | not 5 V tolerant | verifiedWired to the USB-UART bridge: busy during flashing and Serial. |
| 21 | GPIO21 | interruptPWM (LEDC)I2C SDA | not 5 V tolerant | verified |
| GND | Ground | verified | ||
| 19 | GPIO19 | interruptPWM (LEDC)VSPI MISO | not 5 V tolerant | verified |
| 18 | GPIO18 | interruptPWM (LEDC)VSPI SCK | not 5 V tolerant | verified |
| 5 | GPIO5 | interruptPWM (LEDC)VSPI CS (SS) | affects boot (strapping)not 5 V tolerant | verifiedStrapping: SDIO slave timing. Internal pull-up, don't pull it low during reset. |
| 17 | GPIO17 | interruptPWM (LEDC)UART2 TX | not 5 V tolerant | verifiedFree on the WROOM-32E. On WROVER modules it's used by PSRAM. |
| 16 | GPIO16 | interruptPWM (LEDC)UART2 RX | not 5 V tolerant | verifiedFree on the WROOM-32E. On WROVER modules it's used by PSRAM. |
| 4 | GPIO4 | interruptPWM (LEDC)ADC2_CH0TOUCH0RTC_GPIO10 | ADC2 doesn't work with Wi-Fi onnot 5 V tolerant | verifiedADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39). |
| 0 | GPIO0 | interruptPWM (LEDC)ADC2_CH1TOUCH1RTC_GPIO11 | affects boot (strapping)ADC2 doesn't work with Wi-Fi onnot 5 V tolerantonboard button | verifiedAt reset: low = firmware download mode (BOOT button). Internal pull-up.ADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39).The Boot button on the board. Auto-flashing via the bridge's DTR/RTS also toggles this pin. |
| 2 | GPIO2 | interruptPWM (LEDC)ADC2_CH2TOUCH2RTC_GPIO12 | affects boot (strapping)ADC2 doesn't work with Wi-Fi onnot 5 V tolerant | verifiedAt reset it must be low or floating for download mode. Internal pull-down.ADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39). |
| 15 | GPIO15 | interruptPWM (LEDC)ADC2_CH3TOUCH3RTC_GPIO13HSPI CSJTAG MTDO | affects boot (strapping)ADC2 doesn't work with Wi-Fi onnot 5 V tolerant | verifiedMTDO: low at reset silences the bootloader log on UART0. Internal pull-up.ADC2: while Wi-Fi is running, analogRead on this pin doesn't work. For ADC with Wi-Fi, use ADC1 (GPIO32–39). |
| D1 | GPIO8 | SPI flash D1 (SDI) | used by flash, do not usenot 5 V tolerant | verifiedWired to the module's SPI flash. Connect nothing: the board will stop working. |
| D0 | GPIO7 | SPI flash D0 (SDO) | used by flash, do not usenot 5 V tolerant | verifiedWired to the module's SPI flash. Connect nothing: the board will stop working. |
| CLK | GPIO6 | SPI flash CLK | used by flash, do not usenot 5 V tolerant | verifiedWired to the module's SPI flash. Connect nothing: the board will stop working. |
Sources
Every pin is verified against the manufacturer's documents.
- ESP32-DevKitC V4 User Guide (Espressif), Header Block J2/J3user guide, checked 15.10.2026functions of all 38 pins on J2 and J3, D0–D3/CMD/CLK used by flash, GPIO16/17 taken on WROVER, EN and Boot buttons, CP2102N
- ESP32-DevKitC V4 dimensions (PDF)board drawing, checked 15.10.2026board 27.94×48.26 mm, rows 25.40 mm apart (1 inch), 2.54 pitch, end pin 1.29 mm from the bottom edge, module overhangs the top edge by 6.04 mm, silkscreen labels
- ESP32-DevKitC V4 schematic (2020-02-25)schematic, checked 15.10.2026CP2102N, AMS1117-3.3, SS8050 auto-flash circuit, header nets
- ESP32 Series Datasheet (Espressif)datasheet, checked 15.10.2026IO MUX and pin functions, ADC1/ADC2, touch, DAC, RTC GPIO, strapping (GPIO0, 2, 5, 12, 15), flash pins GPIO6–11, input-only GPIO34–39
- ESP-IDF: GPIO & RTC GPIO (ESP32)user guide, checked 15.10.2026GPIO6–11 used by flash, GPIO34–39 input only with no pull-ups, strapping pins, GPIO1/3 UART0
- ESP-IDF: ADC Oneshot Mode Driver (ESP32)user guide, checked 15.10.2026ADC2 can't be used while Wi-Fi is running
- arduino-esp32: variants/esp32/pins_arduino.hArduino core, checked 15.10.2026defaults: TX 1, RX 3, SDA 21, SCL 22, SS 5, MOSI 23, MISO 19, SCK 18
Size: from the Espressif dimension drawing.
FAQ
- Which ESP32 DevKitC V4 (38 pin) pins are I2C, SPI and UART?
- By default in arduino-esp32: I2C: SDA GPIO21, SCL GPIO22; SPI: MOSI GPIO23, MISO GPIO19, SCK GPIO18, SS GPIO5; UART: TX GPIO1, RX GPIO3.
- Are the ESP32 DevKitC V4 (38 pin) pins 5 V tolerant?
- No. The logic is 3.3 V and the pins are not 5 V tolerant: use a divider or a level shifter for 5 V signals.
- Does ADC2 on the ESP32 DevKitC V4 (38 pin) work with Wi-Fi on?
- No. ADC2 pins (GPIO0, GPIO2, GPIO4, GPIO12-15, GPIO25-27) can't read analog while Wi-Fi is on. With Wi-Fi, use GPIO32-36, GPIO39 for the ADC.
You might also need
Similar boards
Next
- Emotion keychainmy ESP32 project, prototype
- ESP32 music playermy ESP32 project, prototype
- DITHR//CAMmy ESP32 project, prototype
Need firmware or a device built on ESP32? I'll build it to order



