ESP32 pinout: every pin on the 30-pin DevKit V1

Every pin on the 30-pin ESP32 DevKit V1 with the WROOM-32 module: which GPIO are safe, which are input only, the strapping pins and the Arduino defaults.

Published

ESP32 pinout: every pin on the 30-pin DevKit V1
On this page

The 30-pin ESP32 DevKit V1 has two rows of 15 pins, and 25 of them are GPIO (general-purpose input/output) pins. Most are safe to wire to anything. A few have a catch at power-up or while Wi-Fi is on.

ESP32 DevKit V1 pinout seen from the top with the Micro-USB port at the bottom. Left row from the antenna end: EN, GPIO36 (VP), GPIO39 (VN), GPIO34, 35, 32, 33, 25, 26, 27, 14, 12, 13, GND, VIN. Right row from the antenna end: GPIO23, 22, GPIO1 (TX0), GPIO3 (RX0), GPIO21, 19, 18, 5, GPIO17 (TX2), GPIO16 (RX2), GPIO4, 2, 15, GND, 3V3. GPIO34 to 39 are marked input only. GPIO1, 3, 2, 5, 12 and 15 are orange for one catch.

If you just need a pin for an LED, a button or a sensor, start with GPIO13, 14, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32 or 33.

Do not connect 5 V to a GPIO pin. Every input takes at most 3.3 V plus 0.3 V.

Every pin, side by side

Both tables run from the antenna end of the ESP32-WROOM-32 module down to the USB port. The silkscreen is the label printed on the board. The DevKit V1 part page has the same pins with their voltages.

Left row

SilkscreenGPIONotes
EN-Reset
VPGPIO36Input only, ADC1
VNGPIO39Input only, ADC1
D34GPIO34Input only, ADC1
D35GPIO35Input only, ADC1
D32GPIO32ADC1, touch
D33GPIO33ADC1, touch
D25GPIO25DAC1, ADC2
D26GPIO26DAC2, ADC2
D27GPIO27ADC2, touch
D14GPIO14ADC2, touch
D12GPIO12Strapping, ADC2, touch
D13GPIO13ADC2, touch
GND-Ground
VIN-5 V in

Right row

SilkscreenGPIONotes
D23GPIO23SPI MOSI
D22GPIO22I2C SCL
TX0GPIO1USB serial
RX0GPIO3USB serial
D21GPIO21I2C SDA
D19GPIO19SPI MISO
D18GPIO18SPI SCK
D5GPIO5SPI CS, strapping
TX2GPIO17Free
RX2GPIO16Free
D4GPIO4ADC2, touch
D2GPIO2Blue LED, strapping
D15GPIO15Strapping, ADC2, touch
GND-Ground
3V3-3.3 V out

Pins to avoid, and why

PinsCatchWhat happens
GPIO34, 35, 36, 39Input onlyNo output, no pull-ups
GPIO1, 3USB serialUploads and Serial break
GPIO12StrappingHigh at power-up: wrong flash voltage
GPIO2Strapping, LEDLow with BOOT held: flash mode
GPIO15StrappingLow at boot: no boot log
ADC2 pinsWi-FiNo analog reads with Wi-Fi on

Input-only pins. GPIO34, 35, 36 and 39 can read but not drive anything, and they have no internal pull-up or pull-down resistor. A button on one of them needs its own resistor to 3.3 V or GND.

Strapping pins. A strapping pin is one the chip reads at reset to decide how to boot. After boot it works like any other pin, so the only catch is what you connect to it at power-up.

  • GPIO12 is pulled low inside the chip. If a part holds it high at power-up, the chip powers its flash memory at 1.8 V instead of 3.3 V. The WROOM-32 datasheet says to keep this pin low at power-up.
  • GPIO2 is pulled low and drives the blue LED. GPIO0 and GPIO2 both low at reset puts the chip in download mode, the mode it uses to receive new code. GPIO0 is the BOOT button and is not on the headers.
  • GPIO15 is pulled high. Held low at boot, it silences the boot messages on TX0.
  • GPIO5 is pulled high and is also the Arduino SPI chip-select pin.

USB serial pins. GPIO1 (TX0) and GPIO3 (RX0) go to the CP2102 USB-to-serial chip. That is how your code gets uploaded and how Serial.print reaches your computer. Wire something else to them and both can fail.

Flash pins. GPIO6 to GPIO11 connect to the module's flash memory. The 30-pin board does not break them out, so there is nothing to avoid here.

ADC2 with Wi-Fi. The ESP32 has two analog-to-digital converters (ADCs, which turn a voltage into a number). ADC2 cannot be read while Wi-Fi is on. For a sensor in a Wi-Fi project, use an ADC1 pin: GPIO32, 33, 34, 35, 36 or 39.

Default pins in Arduino

FunctionPinsNotes
I2CSDA 21, SCL 22Wire uses these
SPIMOSI 23, MISO 19, SCK 18, CS 5SPI uses these
UART0TX 1, RX 3USB upload and Serial
UART2TX2 17, RX2 16Pass them to Serial2.begin
LEDGPIO2LED_BUILTIN

The board prints RX2 and TX2 next to GPIO16 and GPIO17, but version 3 of the Arduino-ESP32 core starts Serial2 on RX 4 and TX 25. Name the pins to use the labelled ones:

Serial2.begin(9600, SERIAL_8N1, 16, 17);

Analog, touch and DAC pins

TypeGPIONotes
ADC132, 33, 34, 35, 36, 39Works with Wi-Fi on
ADC22, 4, 12, 13, 14, 15, 25, 26, 27Off while Wi-Fi is on
DAC25, 26Real voltage out
Touch2, 4, 12, 13, 14, 15, 27, 32, 33Senses a fingertip

A DAC (digital-to-analog converter) sets a real voltage on the pin, not the fast on-off signal of PWM. Touch pins sense a fingertip on a bare wire or pad.

Power pins

PinRoleNotes
VINPower in5 V, feeds the 3.3 V regulator
3V3Power outRegulator output
GNDGroundOne in each row

Over USB, the board powers itself and VIN is not needed. The ESP32 power guide covers the ways to power an ESP32 board.

DevKit V1 vs the 38-pin DevKitC

Espressif's own ESP32-DevKitC has 38 pins and the same chip. Every GPIO on the DevKit V1 is on it too. The extra 8 are GPIO0, GPIO6 to GPIO11 (the flash pins, which Espressif says to avoid) and one more GND. Its 5 V pin is labelled 5V instead of VIN.

The ESP32-S3-DevKitC-1 is a different chip with different pin numbers. For that board, use the ESP32-S3-DevKitC-1 pinout.

Real builds on this board

These three guides from Schematik run on the DevKit V1. All of them put an SSD1306 OLED on the default I2C pins, GPIO21 and GPIO22.

ESP32 ultrasonic parking sensor. An HC-SR04P with TRIG on GPIO27 and ECHO on GPIO26, a passive buzzer on GPIO25, and green, yellow and red LEDs on GPIO14, 12 and 13. Green means far away. Red and faster beeps mean stop. The LED on GPIO12 is fine because an LED with a resistor to GND never pulls the pin high at boot.

The parking sensor in the Schematik simulator. Drag the distance down and the OLED counts it while the LEDs go from green to red.

You can run it without any parts in the simulator.

ESP32 desk presence busy light. A PIR motion sensor on GPIO27, a button on GPIO26 and a WS2812B LED ring driven from GPIO4 through a 74AHCT125 level shifter, which lifts the 3.3 V data signal to the 5 V the ring expects. The ring shows green for free, orange for recently active and red for busy.

RFID treasure chest. An MFRC522 reader on the default SPI pins (MOSI 23, MISO 19, SCK 18, CS 5) with RST on GPIO27, an SG90 servo latch on GPIO26 and a piezo on GPIO25. Tap the right tag and the servo swings the latch open.

New to breadboards? ESP32 on a breadboard shows where the board goes and how the rails work. More builds are in ESP32 projects.

Start a build

Open Schematik, name the DevKit V1 and describe what you want to make. It picks the pins and writes the code. Paste this to try it:

ESP32 DevKit V1 with a BME280 on I2C and a button on GPIO27 that shows the temperature on an SSD1306 OLED

Keep building from here

Jump into a step-by-step build, or open Schematik and turn your own idea into code, wiring, and assembly instructions.