ESP32-S3 DevKitC-1 Pinout: Every Pin on the 44-Pin Board, Explained

Last updated: 2026-11-22

The ESP32-S3 DevKitC-1 pinout has 44 pins in two rows of 22, with 36 usable GPIOs: GPIO 0 to 21 and GPIO 35 to 48. Start with GPIO 4 to 18 and 21, which have no boot role and nothing on the board pulling them. Avoid GPIO 19 and 20, which carry native USB, and GPIO 35, 36, and 37, which run the octal PSRAM on the N8R2 and N16R8 boards. Watch the strapping pins GPIO 0, 3, 45, and 46, which decide whether the board boots. Wire analog sensors to the ADC1 pins GPIO 1 to 10, because ADC2 shares hardware with Wi-Fi and a read can fail while the radio runs.

Every pin below was checked twice against the DevKitC-1 v1.1 and v1.0 header tables; strapping rules come from the ESP32-S3 Series Datasheet v2.2.

Table of contents

Which board is this guide for?

This guide is for the ESP32-S3 DevKitC-1, the 44-pin board built around an ESP32-S3-WROOM-1 module: dual-core Xtensa LX7 at 240 MHz, WiFi 802.11 b/g/n, Bluetooth 5.0 LE, 512 KB SRAM, 384 KB ROM, 16 KB RTC memory, two USB ports, a USB-to-UART bridge, an addressable RGB LED, and BOOT and RESET buttons.

The store sells two versions: N8R2 (8 MB flash, 2 MB PSRAM) and N16R8 (16 MB flash, 8 MB PSRAM). N is flash, R is PSRAM. Both share the module, the layout, and this pinout. Espressif marks N8R2 end of life and N16R8 current, but the pinout is the same.

Count the pins before you trust any pinout: this board has 44 pins in two rows of 22. The 30-pin ESP32 DevKit V1 is a different board with a different chip and pinout, covered in ESP32 DevKit V1 Pinout: Every Pin on the 30-Pin Board, Explained. If your board says DevKitC-1, ESP32-S3, and 44 pins, this guide is for it. Both the initial version and v1.1 are on the market; the only difference is the RGB LED pin, GPIO48 on the initial version and GPIO38 on v1.1. To find your revision, light the LED on GPIO 38 first; if nothing lights, try GPIO 48. The LED is addressable, so it needs a NeoPixel library, not a plain digitalWrite.

What is the full ESP32-S3 DevKitC-1 pinout?

The board prints J1 on one header and J3 on the other. The tables follow the numbering in the Espressif DevKitC-1 v1.1 user guide, top to bottom. In Arduino code you always use the GPIO number: TX is GPIO 43, RX is GPIO 44, and pin 38 on J3 is GPIO 38.

J1 header, top to bottom

No. Name Main functions Watch out for
1 3V3 3.3 V power Regulator output
2 3V3 3.3 V power Same rail as pin 1
3 RST EN, reset Active LOW
4 GPIO4 ADC1_CH3, Touch 4 Safe pin
5 GPIO5 ADC1_CH4, Touch 5 Safe pin
6 GPIO6 ADC1_CH5, Touch 6 Safe pin
7 GPIO7 ADC1_CH6, Touch 7 Safe pin
8 GPIO15 ADC2_CH4, U0RTS Safe pin, ADC2 with WiFi
9 GPIO16 ADC2_CH5, U0CTS Safe pin, ADC2 with WiFi
10 GPIO17 ADC2_CH6, U1TXD UART1 TX
11 GPIO18 ADC2_CH7, U1RXD UART1 RX
12 GPIO8 ADC1_CH7, Touch 8 I2C SDA default
13 GPIO3 ADC1_CH2, Touch 3 Strapping, keep floating at reset
14 GPIO46 Strapping Keep LOW at reset
15 GPIO9 ADC1_CH8, Touch 9, FSPIHD I2C SCL default
16 GPIO10 ADC1_CH9, Touch 10, FSPICS0 SPI chip select
17 GPIO11 ADC2_CH0, Touch 11, FSPID SPI MOSI
18 GPIO12 ADC2_CH1, Touch 12, FSPICLK SPI clock
19 GPIO13 ADC2_CH2, Touch 13, FSPIQ SPI MISO
20 GPIO14 ADC2_CH3, Touch 14, FSPIWP SPI write protect
21 5V 5 V power Input or output
22 G Ground Common ground

J3 header, top to bottom

No. Name Main functions Watch out for
1 G Ground Common ground
2 TX U0TXD, GPIO43 USB serial console
3 RX U0RXD, GPIO44 USB serial console
4 GPIO1 ADC1_CH0, Touch 1 Safe pin, ADC1
5 GPIO2 ADC1_CH1, Touch 2 Safe pin, ADC1
6 GPIO42 MTMS, JTAG JTAG debug
7 GPIO41 MTDI, JTAG JTAG debug
8 GPIO40 MTDO, JTAG JTAG debug
9 GPIO39 MTCK, JTAG JTAG debug
10 GPIO38 FSPIWP, RGB LED on v1.1 RGB LED on v1.1 boards
11 GPIO37 Octal flash and PSRAM Not available on N8R2 and N16R8
12 GPIO36 Octal flash and PSRAM Not available on N8R2 and N16R8
13 GPIO35 Octal flash and PSRAM Not available on N8R2 and N16R8
14 GPIO0 BOOT button Strapping, HIGH to run
15 GPIO45 Strapping Must be LOW at reset
16 GPIO48 SPICLK_N, RGB LED on v1.0 RGB LED on initial boards
17 GPIO47 SPICLK_P Safe pin
18 GPIO21 RTC GPIO Safe pin
19 GPIO20 ADC2_CH9, U1CTS, USB D+ Native USB, keep free for USB
20 GPIO19 ADC2_CH8, U1RTS, USB D- Native USB, keep free for USB
21 G Ground Common ground
22 G Ground Common ground

Not on the headers: GPIO 22 to 34 run the module flash and PSRAM inside the shield, GPIO 26 to 32 the quad SPI flash bus. The chip has 45 GPIOs; the board breaks out 36.

Which pins are safe to use first?

The safest pins are the 17 GPIOs with no boot role, no USB role, and nothing on the board pulling them: GPIO 4 to 18, 21, and 47. Use these first for buttons, LEDs, sensors, and relays. GPIO 1 and 2 are also safe and are the best ADC1 pins for a first sensor. Leave GPIO 43 and 44 alone: they carry the USB serial console. GPIO 39 to 42 are the JTAG debug pins; they work as GPIO pins, but a debugger takes them over. GPIO 38 and 48 each drive the RGB LED on one board revision, so check the revision before using them as plain GPIO pins.

GPIO 35, 36, and 37 run the octal flash and PSRAM inside the WROOM-1 module, so they are not available on the N8R2 and N16R8 boards. The board breaks out 36 GPIOs, 3 taken by memory, leaving 33.

Every output-capable pin can do PWM through the LEDC peripheral; there is no fixed list of PWM pins. Pick any pin from the safe list, attach it to an LEDC channel with ledcAttach, and set the duty. The S3 has 8 LEDC channels, so up to 8 pins can run independent PWM at once. Strapping pins suit sensors and status LEDs, not relays or motor drivers that must stay off at boot.

Which pins decide whether the board boots?

Four pins decide how the ESP32-S3 boots, and the chip reads them once at reset. After reset they work as normal pins, but the level at reset is latched until the next power cycle. Per the Espressif ESP32-S3 Series Datasheet v2.2, Section 3, they are GPIO 0, 3, 45, and 46.

Pin Must be at reset What it controls
GPIO 0 (BOOT button) HIGH to run, LOW with GPIO 46 LOW for download mode Boot mode, with GPIO 46
GPIO 3 Floating JTAG signal source, only if the JTAG select eFuse is set
GPIO 45 LOW Flash and PSRAM voltage: LOW is 3.3 V, HIGH is 1.8 V
GPIO 46 LOW for download mode, any level to run Boot mode, with GPIO 0; ROM boot message printing

GPIO 0 and GPIO 46 select the boot mode together: GPIO 0 HIGH boots from flash, GPIO 0 LOW with GPIO 46 LOW is download mode, how the IDE uploads. The board holds GPIO 0 HIGH and GPIO 46 LOW, so it boots normally.

GPIO 45 is the one that catches people: it selects the flash and PSRAM supply voltage at reset. The WROOM-1 parts run at 3.3 V, so GPIO 45 must be LOW at reset; pull it HIGH and the chip selects 1.8 V and the board will not boot. GPIO 3 has no internal pull and only matters once the JTAG select eFuse is set, which it is not on a stock board.

Which pins are taken by USB and JTAG?

The DevKitC-1 has two USB ports, and they do different jobs. The USB-to-UART port runs through a bridge chip and is the default for flashing and the Serial Monitor. The ESP32-S3 USB port is wired straight to the chip on GPIO 19 (USB D-) and GPIO 20 (USB D+), and it carries native USB OTG and USB JTAG. The store board ships with USB-C ports; Espressif's own ships with Micro-USB ports. Either way, check the connector on your own board and use a cable that carries data, not a charge-only cable.

Keep GPIO 19 and 20 free when you use either USB port for programming or USB HID work; the chip can act as a USB keyboard, mouse, or MIDI device through them. GPIO 43 and 44 are UART0, the serial console wired to the USB-to-UART bridge; do not use them for sensors, buttons, or LEDs. For a second serial port, use UART1 on GPIO 17 and 18. GPIO 39 to 42 are the JTAG debug pins; they work as GPIO pins when no debugger is attached. The S2 vs S3 comparison, with USB and Bluetooth detail, is in ESP32-S2 vs ESP32-S3: USB, Bluetooth, and Camera Compared.

How do the ADC pins work?

The ESP32-S3 has two 12-bit ADCs, ADC1 and ADC2, with 20 channels between them. A 12-bit reading runs from 0 to 4095. The headers carry all 20 ADC pins: 10 on ADC1 and 10 on ADC2.

The rule that matters most: ADC2 shares hardware with Wi-Fi, so a read can fail or time out while the radio runs. ADC1 keeps working with Wi-Fi on, so wire the sensor to an ADC1 pin when the project uses Wi-Fi.

ADC unit Header pins Channels With Wi-Fi
ADC1 GPIO 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 CH0, CH1, CH2, CH3, CH4, CH5, CH6, CH7, CH8, CH9 Yes, works
ADC2 GPIO 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 CH0, CH1, CH2, CH3, CH4, CH5, CH6, CH7, CH8, CH9 Reads can time out

In Arduino code, use analogReadMilliVolts for a calibrated millivolt reading, not a raw 0 to 4095 count. On the classic ESP32, ADC2 stops outright with Wi-Fi on; on the S3 it sometimes works and sometimes times out. Wire analog sensors to GPIO 1 to 10.

Where are the touch pins?

The ESP32-S3 has 14 capacitive touch channels, all on the headers: T1 on GPIO 1 through T14 on GPIO 14. Read a touch pin with touchRead; it reads lower when a finger is near it, so calibrate the threshold in your sketch. A touch pad can wake the chip from deep sleep, a good wake button for a battery project.

The ESP32-S3 has no DAC. The classic ESP32 has two 8-bit DACs on GPIO 25 and 26; the S3 dropped them. For a true analog voltage out of an S3 pin, use PWM with an RC filter or an external I2S DAC.

Which pins do I2C, SPI, and UART use?

The ESP32-S3 routes peripherals through a GPIO matrix, so I2C, SPI, and UART can move to almost any free pin. The table gives the core defaults.

Bus Default pins on this board Notes
I2C (Wire) SDA GPIO 8, SCL GPIO 9 Needs pull-ups
SPI (FSPI) MOSI GPIO 11, MISO GPIO 13, clock GPIO 12, chip select GPIO 10 Arduino default
UART0 (Serial) TX GPIO 43, RX GPIO 44 USB serial, fixed
UART1 TX GPIO 17, RX GPIO 18 Dedicated pins, pass them explicitly
UART2 No fixed pins Remap to free pins

I2C needs pull-ups on SDA and SCL; most sensor boards include them. Classic ESP32 I2C defaults are GPIO 21 and 22; on the S3 they are GPIO 8 and 9. A tutorial written for the classic board will wire I2C to the wrong pins here. For FSPI, chip select is GPIO 10, MOSI GPIO 11, clock GPIO 12, MISO GPIO 13. SPI3 uses GPIO 35, 36, and 37, the PSRAM pins, so it is not available on the N8R2 or N16R8. UART0 is fixed on GPIO 43 and 44. In Arduino code, always pass the UART1 pins explicitly, as in Serial1.begin(9600, SERIAL_8N1, 18, 17), so a core update cannot move them.

How do you power the DevKitC-1?

The DevKitC-1 takes power from exactly one source at a time: a USB port at 5 V, the 5V pin at 5 V, or the 3V3 pins at a regulated 3.3 V. Using more than one at once can damage the board or the power supply. The LDO regulator turns the USB or 5V input into the 3.3 V rail, which can power small sensors and logic at a few hundred mA.

Every pin is 3.3 V logic only; no pin is 5 V tolerant. A 5 V sensor output wired straight to a GPIO pin will damage the input, so use a level shifter or a voltage divider. Never power a servo or motor from a GPIO pin or the 3V3 rail: they need their own supply with a shared ground.

For battery power, the chip draws about 8 uA in deep sleep with RTC memory and peripherals on, per the WROOM-1 datasheet. A whole board draws more in sleep: the regulator, power LED, and USB bridge keep burning current. Only GPIO 0 to 21 are RTC GPIOs, so only those pins can wake the chip from deep sleep. Battery power and run-time math are in How to Power ESP32 and Arduino Projects on LiPo Power.

How do you test the pins?

This sketch tests three pins at once: an external LED on GPIO 4, a potentiometer on GPIO 1, and a button on GPIO 2. Wire the LED anode to GPIO 4 through a 220 ohm resistor, cathode to ground; the potentiometer wiper to GPIO 1, ends to 3V3 and GND; and a button between GPIO 2 and GND. The button needs no resistor: the sketch uses the internal pull-up on GPIO 2. Open the Serial Monitor at 115200 baud: the ADC reading runs 0 to 4095 as you turn the pot, and the button lights the LED.

// ESP32-S3 DevKitC-1 pin test: external LED, ADC1 potentiometer, button.
// Arduino-ESP32 core, built-in libraries only. No extra libraries needed.
// Board: ESP32-S3-DevKitC-1 N8R2 or N16R8, 44-pin, ESP32-S3-WROOM-1.
// Wiring: LED anode to GPIO4 through a 220 ohm resistor, cathode to GND.
//         potentiometer wiper to GPIO1, ends to 3V3 and GND.
//         push button between GPIO2 and GND (internal pull-up, no resistor).
#include <Arduino.h>

const int LED_PIN = 4;      // GPIO4, ADC1_CH3, touch 4. Safe pin.
const int POT_PIN = 1;      // GPIO1, ADC1_CH0. ADC1 keeps working with WiFi on.
const int BUTTON_PIN = 2;   // GPIO2, ADC1_CH1. Safe pin, internal pull-up.

void setup() {
  Serial.begin(115200);
  delay(1000);
  pinMode(LED_PIN, OUTPUT);
  pinMode(BUTTON_PIN, INPUT_PULLUP);
  analogReadResolution(12);  // 12-bit ADC: readings 0 to 4095.
  Serial.println("ESP32-S3 DevKitC-1 pin test running.");
  Serial.println("Turn the pot on GPIO1, press the button on GPIO2.");
}

void loop() {
  int pot = analogRead(POT_PIN);
  bool pressed = digitalRead(BUTTON_PIN) == LOW;
  digitalWrite(LED_PIN, pressed ? HIGH : LOW);
  Serial.print("GPIO1 ADC: ");
  Serial.print(pot);
  Serial.print("  GPIO2 button: ");
  Serial.println(pressed ? "pressed" : "released");
  delay(500);
}

The sketch uses only the built-in Arduino-ESP32 core and compiles with PlatformIO. If the upload fails, hold BOOT, press and release RESET, then release BOOT. If the Serial Monitor shows nothing, check the USB cable: a charge-only cable carries power but no data.

What mistakes do people make?

First, wiring an analog sensor to an ADC2 pin and turning on WiFi. The read can time out the moment the radio starts. Wire analog sensors to ADC1 pins GPIO 1 to 10 with WiFi on.

Second, pulling GPIO 45 HIGH at boot. GPIO 45 selects the flash and PSRAM voltage, and HIGH selects 1.8 V, but the WROOM-1 parts run at 3.3 V, so the board will not boot. Keep GPIO 45 LOW at reset.

Third, using GPIO 35, 36, or 37 for a sensor or a button. Those pins run the octal PSRAM on the N8R2 and N16R8 boards, so anything wired there fights the memory bus.

Fourth, using GPIO 43 and 44 for a sensor or a button. TX and RX carry USB serial, and anything wired there breaks uploads.

Fifth, following a classic ESP32 tutorial pin for pin. The S3 I2C defaults are GPIO 8 and 9, not 21 and 22, and the S3 SPI defaults are GPIO 10 to 13, not 5, 18, 19, 23.

Sixth, trusting the chip GPIO count instead of the board pinout. The chip has 45 GPIOs, but this board breaks out 36, and 3 are taken by PSRAM.

Frequently asked questions

How many pins does the DevKitC-1 have?

The ESP32-S3 DevKitC-1 has 44 pins in two rows of 22, with 36 usable GPIOs: GPIO 0 to 21 and GPIO 35 to 48. GPIO 22 to 34 are not on the headers, and GPIO 35, 36, and 37 run the octal PSRAM, leaving 33.

Which pins are safe to use?

GPIO 4 to 18, 21, and 47 are the safest: no strapping role, no USB role, and nothing on the board pulling them. GPIO 1 and 2 are also safe, and the best ADC1 pins for a first sensor.

What are the strapping pins?

The strapping pins are GPIO 0, 3, 45, and 46, per the ESP32-S3 Series Datasheet v2.2. At reset, GPIO 0 must be HIGH to run, GPIO 3 floating, GPIO 45 LOW for 3.3 V flash and PSRAM, and GPIO 46 LOW for download mode.

Can I use ADC pins with WiFi on?

Yes, but only the ADC1 pins: GPIO 1 to 10. ADC2 covers GPIO 11 to 20 and shares hardware with Wi-Fi, so a read can fail or time out while the radio runs.

Which pin is the RGB LED on?

The RGB LED is on GPIO 38 on v1.1 boards and GPIO 48 on the initial version, the only difference between the two revisions. It is addressable, so it needs a NeoPixel library, not a plain digitalWrite.

Is the DevKitC-1 5 V tolerant?

No. Every pin is 3.3 V logic only, and no pin is 5 V tolerant, so a 5 V sensor output wired straight to a GPIO pin will damage it. Use a level shifter or a voltage divider.

Parts used in this guide

The board and bench parts below are in stock in the store. The DevKitC-1 programs over a USB-C data cable, so use a cable that carries data, not a charge-only cable. No standalone USB-C data cable is listed in the store.

In this series

This is post 3 of 10 in the ESP32 series. The pillar is Which ESP32 Should I Buy? Pick the Right Board for Your Project.

  • Post 1: Which ESP32 Should I Buy? (pillar).
  • Post 2: ESP32 DevKit V1 (30-pin) pinout.
  • Post 3: ESP32-S3 DevKitC-1 pinout (this post).
  • Post 4: ESP32-CAM pinout, boot mode, and flashing.
  • Post 5: ESP32-CAM troubleshooting.
  • Post 6: ESP32-CAM streaming.
  • Post 7: ESP32-CAM on battery.
  • Post 8: ESP-NOW explained.
  • Post 9: Arduino IDE vs PlatformIO vs ESP-IDF vs MicroPython.
  • Post 10: ESP32 not detected over USB.

Sources

  • DevKitC-1 v1.1 User Guide: J1/J3 tables, power, RGB LED GPIO38, PSRAM note. https://documentation.espressif.com/esp-dev-kits/en/latest/esp32s3/esp32-s3-devkitc-1/user_guide_v1.1.html
  • DevKitC-1 v1.0 User Guide: J1/J3 header tables, RGB LED GPIO48. https://documentation.espressif.com/esp-dev-kits/en/latest/esp32s3/esp32-s3-devkitc-1/user_guide_v1.0.html
  • ESP32-S3 Series Datasheet v2.2, Section 3, Tables 3-1, 3-3, 3-4, 3-5: strapping GPIO0, 3, 45, 46. https://www.espressif.com/sites/default/files/documentation/esp32-s3_datasheet_en.pdf
  • ESP-IDF ADC Oneshot Driver docs, ESP32-S3: ADC2 shared with Wi-Fi. https://docs.espressif.com/projects/esp-idf/en/v5.4/esp32s3/api-reference/peripherals/adc_oneshot.html
  • ESP32-S3-WROOM-1 Datasheet: deep sleep 8 uA, 384 KB ROM, 512 KB SRAM, 16 KB RTC SRAM. https://www.espressif.com/sites/default/files/documentation/esp32-s3-wroom-1_wroom-1u_datasheet_en.pdf

ESP32 DevKit V1 Pinout: Every Pin on the 30-Pin Board, Explained

Last updated: 2026-11-22

The ESP32 DevKit V1 pinout has 30 pins in two rows of 15, with 25 usable GPIOs: 21 inputs and outputs plus 4 input-only pins. Start with GPIO 4, 13, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32, and 33, which have no boot role and nothing pulling them. Avoid GPIO 1 and 3, which carry USB serial. Watch the strapping pins GPIO 2, 5, 12, and 15, which decide whether the board boots. Wire analog sensors to the ADC1 pins GPIO 32, 33, 34, 35, 36, and 39, because the ADC2 pins stop working with WiFi on.

Every pin number below was checked twice, against the Espressif DevKitC V4 header tables and the DOIT board tables, and the strapping rules come from the Espressif ESP32 Series Datasheet v5.3.

Table of contents

Which board is this guide for?

This guide is for the ESP32 DevKit V1, the 30-pin DOIT board built around an ESP32-WROOM-32 module. It carries a dual-core Xtensa LX6 chip at 240 MHz, WiFi 802.11 b/g/n at 2.4 GHz, Bluetooth 4.2 and BLE, 520 KB of SRAM, and 4 MB of SPI flash. It has a Micro-USB port, a USB-to-serial chip, an AMS1117-3.3 regulator, and EN and BOOT buttons.

Count the pins before you trust any pinout. This board has 30 pins in two rows of 15. The 38-pin ESP32-DevKitC is a different board: it breaks out the flash pins GPIO 6 to 11 and the BOOT pin GPIO 0. If your board says DevKit V1, DOIT, NodeMCU-32, or ESP32 30-pin, this guide is for your board.

Clones are everywhere, and most follow the same DOIT design. What changes is the USB-to-serial chip (CP2102 on the original, CH340 or CH9102 on clones), the module revision (WROOM-32, 32D, or 32E), and the USB connector (Micro-USB or USB-C). The GPIO numbers never change, but on rare clones the last few power pins sit in a different order, so read the silkscreen on your own board.

What is the full ESP32 DevKit V1 pinout?

Hold the board with the antenna at the top and the USB port at the bottom. The left header runs from EN to VIN, and the right header runs from D23 to 3V3. In Arduino code you always use the GPIO number: D23 is GPIO 23. VP and VN are GPIO 36 and 39, TX0 and RX0 are GPIO 1 and 3, and TX2 and RX2 are GPIO 17 and 16.

Left header, top to bottom

Silkscreen GPIO Main functions Watch out for
EN – Reset Active LOW, 10k pull-up
VP 36 ADC1_CH0 Input only, no pull-ups
VN 39 ADC1_CH3 Input only, no pull-ups
D34 34 ADC1_CH6 Input only, no pull-ups
D35 35 ADC1_CH7 Input only, no pull-ups
D32 32 ADC1_CH4, Touch 9 Safe pin, ADC1 with WiFi
D33 33 ADC1_CH5, Touch 8 Safe pin, ADC1 with WiFi
D25 25 ADC2_CH8, DAC1 ADC2 stops with WiFi
D26 26 ADC2_CH9, DAC2 ADC2 stops with WiFi
D27 27 ADC2_CH7, Touch 7 ADC2 stops with WiFi
D14 14 ADC2_CH6, Touch 6, HSPI clock Signal at boot, avoid relays
D12 12 ADC2_CH5, Touch 5, HSPI MISO Strapping, must be LOW at reset
D13 13 ADC2_CH4, Touch 4, HSPI MOSI Safe pin
GND – Ground Common ground
VIN – 5 V to 12 V input About 4.7 V on USB

Right header, top to bottom

Silkscreen GPIO Main functions Watch out for
D23 23 VSPI MOSI Safe pin
D22 22 I2C SCL I2C clock
TX0 1 UART0 TX USB serial
RX0 3 UART0 RX USB serial
D21 21 I2C SDA I2C data
D19 19 VSPI MISO Safe pin
D18 18 VSPI clock Safe pin
D5 5 VSPI chip select Strapping, HIGH at reset
TX2 17 UART2 TX Safe pin
RX2 16 UART2 RX Safe pin
D4 4 ADC2_CH0, Touch 0 ADC2 stops with WiFi
D2 2 ADC2_CH2, Touch 2, onboard LED Strapping, LOW or floating at reset
D15 15 ADC2_CH3, Touch 3, HSPI chip select Strapping, HIGH at reset
GND – Ground Common ground
3V3 – 3.3 V output or input Regulator output

Not on the headers: GPIO 0 is the BOOT button, GPIO 6 to 11 run the module SPI flash, and GPIO 37 and 38 are not bonded out.

Which pins are safe to use first?

The safest pins are the 14 GPIOs with no boot role and nothing on the board pulling them: GPIO 4, 13, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32, and 33. Use these first for buttons, LEDs, sensors, and relays.

GPIO 5, 14, and 15 output a signal for a moment at boot, so they suit sensors and status LEDs but not relays, motor drivers, or buzzers. GPIO 34, 35, 36, and 39 are input only. GPIO 2, 5, 12, and 15 are strapping pins, covered below. GPIO 1 and 3 carry USB serial, so avoid them for anything else. A button on GPIO 33, an LED on GPIO 23, and a sensor on GPIO 32 cannot go wrong.

Which pins are input only?

GPIO 34, 35, 36, and 39 are input only. They have no output driver, so digitalWrite does nothing on them, and they have no internal pull-up or pull-down resistors, so a floating pin reads random values. The silkscreen calls GPIO 36 VP and GPIO 39 VN.

Use these four pins for analog input and for buttons with an external resistor. They are all ADC1 pins, so they keep working with WiFi on: VP is ADC1 channel 0, VN is channel 3, D34 is channel 6, and D35 is channel 7. A button here needs a 10k pull-up to 3V3 or a 10k pull-down to ground, because INPUT_PULLUP does nothing here. Do not wire an LED, a relay, or any output to these pins.

Which pins decide whether the board boots?

Five pins decide how the ESP32 boots, and the chip reads them once at reset. After reset they work as normal pins, but the level at reset is latched until the next power cycle. Per the Espressif ESP32 Series Datasheet v5.3, they are GPIO 0, 2, 5, 12, and 15.

Pin Must be at reset What it controls
GPIO 0 (BOOT button) HIGH to run, LOW for download mode Boot mode, with GPIO 2
GPIO 2 (D2) LOW or floating Boot mode, with GPIO 0; onboard blue LED
GPIO 5 (D5) HIGH SDIO slave timing
GPIO 12 (D12) LOW Flash voltage: LOW is 3.3 V, HIGH is 1.8 V
GPIO 15 (D15) HIGH Boot log on UART0: HIGH prints, LOW silences

GPIO 0 and GPIO 2 together select the boot mode. GPIO 0 HIGH boots from flash and runs your sketch. GPIO 0 LOW with GPIO 2 LOW means joint download boot mode, which is how the Arduino IDE uploads over USB. The DOIT schematic holds GPIO 0 HIGH, pulls GPIO 2 LOW, and pulls GPIO 5 HIGH with 10k resistors, so the board boots normally out of the box.

GPIO 12 is the one that catches people. It is the MTDI pin, and it selects the flash voltage at reset. The WROOM-32 flash runs at 3.3 V, so GPIO 12 must be LOW at reset. Pull it HIGH and the chip selects 1.8 V, and the board will not boot. Never wire a pull-up resistor or a sensor that drives HIGH to D12.

To enter download mode by hand, hold BOOT, press and release EN, then release BOOT. You rarely need to: the auto-reset circuit does it when the Arduino IDE starts an upload.

Which pins are taken by USB and flash?

GPIO 1 and GPIO 3 are UART0, the serial port wired to the USB-to-serial chip. TX0 (GPIO 1) sends the boot log and your Serial prints to the computer, and RX0 (GPIO 3) receives uploads. The USB chip shares these lines through 1k resistors, so anything else wired to TX0 or RX0 fights it. Do not use GPIO 1 or 3 for sensors, buttons, or LEDs. For a second serial port, use UART2 on TX2 and RX2 (GPIO 17 and 16), or remap UART1 to two free pins.

GPIO 6 to 11 are wired to the SPI flash chip inside the WROOM-32 module. They are not broken out on the 30-pin headers: connecting anything to a flash pin corrupts flash reads and the board will not boot.

How do the ADC pins work?

The ESP32 has two 12-bit analog to digital converters, ADC1 and ADC2, with 18 channels between them. A 12-bit reading runs from 0 to 4095. The headers carry 15 ADC pins: 6 on ADC1 and 9 on ADC2. The ADC is not linear near the rails, so readings compress near 0 V and near 3.3 V.

The rule that matters most: ADC2 stops working while WiFi is on. The WiFi driver takes over ADC2, so an analogRead on an ADC2 pin returns garbage or fails while the radio runs. ADC1 keeps working with WiFi on, so wire the sensor to an ADC1 pin when the project uses WiFi.

ADC unit Header pins Channels Works with WiFi
ADC1 VP (36), VN (39), D34, D35, D32, D33 CH0, CH3, CH6, CH7, CH4, CH5 Yes
ADC2 D4, D2, D15, D13, D12, D14, D27, D25, D26 CH0, CH2, CH3, CH4, CH5, CH6, CH7, CH8, CH9 No

GPIO 0 is ADC2 channel 1 and GPIO 37 and 38 are ADC1 channels 1 and 2, but none of the three is on the headers.

Where are the DAC and touch pins?

The ESP32 has two 8-bit digital to analog converters, DAC1 on GPIO 25 (D25) and DAC2 on GPIO 26 (D26). An 8-bit DAC writes values from 0 to 255 and outputs a true analog voltage, not a PWM square wave. Use dacWrite in Arduino code. Both DAC pins are also ADC2 pins, so do not read them as analog inputs with WiFi on.

The ESP32 has 10 capacitive touch channels, and nine sit on the headers: T0 on D4, T2 on D2, T3 on D15, T4 on D13, T5 on D12, T6 on D14, T7 on D27, T8 on D33, and T9 on D32. T1 is GPIO 0, the BOOT button, so it is not available as a touch pin here. Read a touch pin with touchRead in Arduino code. A touch pin reads lower when a finger is near it, and the threshold depends on the wire length and the board layout, so calibrate it in your sketch.

Which pins do I2C, SPI, and UART use?

The ESP32 routes peripherals through a GPIO matrix, so I2C, SPI, and UART can move to almost any free pin. The table below gives the defaults.

Bus Default pins on this board Notes
I2C (Wire) SDA D21, SCL D22 Needs pull-ups
VSPI MOSI D23, MISO D19, clock D18, chip select D5 Arduino default
HSPI MOSI D13, MISO D12, clock D14, chip select D15 Second SPI bus
UART0 (Serial) TX TX0 (GPIO 1), RX RX0 (GPIO 3) USB serial
UART2 TX TX2 (GPIO 17), RX RX2 (GPIO 16) Free second port
UART1 No fixed pins Remap to free pins

I2C needs pull-up resistors on SDA and SCL; most sensor boards include them, but if your bus hangs, check for them first. SPI chip select is D5 for VSPI, and D5 is a strapping pin that must be HIGH at reset, so do not pull it LOW with a sensor that drives the line at boot. For HSPI the chip select is D15 and the MISO line is D12, both strapping pins, so VSPI is the safer default.

UART1 has no usable default pins here: its hardware defaults are GPIO 9 and 10, which are flash pins. For a third serial port, call Serial1.begin with explicit RX and TX pins on two safe GPIOs. In the Arduino-ESP32 core 3.x, Serial1 defaults to RX GPIO 26 and TX GPIO 27, and Serial2 defaults to RX GPIO 4 and TX GPIO 25. Set them explicitly so a core update cannot move them.

Can every pin do PWM?

Every output-capable pin on the ESP32 DevKit V1 can do PWM through the LEDC peripheral, which has 16 channels. There is no fixed list of PWM pins. Pick any pin from the safe list, attach it to an LEDC channel with ledcAttach, and set the duty. The 4 input-only pins cannot do PWM, because they cannot drive an output.

GPIO 5, 14, and 15 output a signal for a moment at boot. A sensor or a status LED on these pins is fine, but a relay, a motor driver, or a buzzer wired here can switch on briefly at every reset. If your project drives something that must stay off at boot, use a safe pin.

How do you power the DevKit V1?

The DevKit V1 takes power from exactly one source at a time: Micro-USB at 5 V, VIN at 5 V to 12 V, or 3V3 at a regulated 3.3 V. Using more than one at once can damage the board or the power supply.

USB power reaches VIN through an SS14 Schottky diode, so VIN reads about 4.7 V when the board runs from USB, and a supply on VIN cannot back-feed your computer. The AMS1117-3.3 regulator is a 1 A class part with about 1.1 V of dropout, so VIN needs at least about 4.5 V. The 3V3 pin can power small sensors and logic, but budget it at a few hundred mA.

Every pin on this board is 3.3 V logic only. No pin is 5 V tolerant. A 5 V sensor output wired straight to a GPIO pin will damage the input, so use a level shifter or a voltage divider for 5 V sensors. Never power a servo or a motor from a GPIO pin or from the 3V3 rail: they need their own power supply with a shared ground. Battery power, charging, protection, and run-time math are covered in How to Power ESP32 and Arduino Projects on LiPo Power.

How do you test the pins?

This sketch tests three pins at once: the onboard blue LED on D2, a potentiometer on D32, and a button on D33. Wire the potentiometer wiper to D32 with its ends to 3V3 and GND, and wire a push button between D33 and GND; the button needs no resistor because the sketch uses the internal pull-up on D33. Open the Serial Monitor at 115200 baud: the ADC reading on D32 runs from 0 to 4095 as you turn the pot, and the button lights the LED.

// ESP32 DevKit V1 pin test: onboard LED, ADC1 potentiometer, button.
// Arduino-ESP32 core, built-in libraries only. No extra libraries needed.
// Board: DOIT ESP32 DevKit V1, 30-pin, ESP32-WROOM-32.
// Wiring: potentiometer wiper to D32, ends to 3V3 and GND.
//         push button between D33 and GND (internal pull-up, no resistor).
#include <Arduino.h>

const int LED_PIN = 2;      // D2, blue onboard LED. Strapping pin, LOW or floating at boot.
const int POT_PIN = 32;     // D32, ADC1_CH4. ADC1 keeps working with WiFi on.
const int BUTTON_PIN = 33;  // D33, ADC1_CH5. Safe pin, internal pull-up.

void setup() {
  Serial.begin(115200);
  delay(1000);
  pinMode(LED_PIN, OUTPUT);
  pinMode(BUTTON_PIN, INPUT_PULLUP);
  analogReadResolution(12);  // 12-bit ADC: readings 0 to 4095.
  Serial.println("ESP32 DevKit V1 pin test running.");
  Serial.println("Turn the pot on D32, press the button on D33.");
}

void loop() {
  int pot = analogRead(POT_PIN);
  bool pressed = digitalRead(BUTTON_PIN) == LOW;
  digitalWrite(LED_PIN, pressed ? HIGH : LOW);
  Serial.print("D32 ADC: ");
  Serial.print(pot);
  Serial.print("  D33 button: ");
  Serial.println(pressed ? "pressed" : "released");
  delay(500);
}

The sketch uses only the built-in Arduino-ESP32 core, and it compiles with PlatformIO on esp32dev. If the upload fails, hold BOOT, press and release EN, then release BOOT to force download mode. If the Serial Monitor shows nothing, check the USB cable: a charge-only cable carries power but no data.

What mistakes do people make?

First, wiring an analog sensor to an ADC2 pin and turning on WiFi. The reading goes wrong the moment the radio starts. Wire analog sensors to the ADC1 pins VP, VN, D34, D35, D32, and D33 with WiFi on.

Second, pulling GPIO 12 HIGH at boot. D12 selects the flash voltage, and HIGH selects 1.8 V, but the WROOM-32 flash runs at 3.3 V, so the board will not boot. Keep D12 LOW at reset.

Third, using GPIO 1 and 3 for a sensor or a button. TX0 and RX0 carry USB serial, and anything wired there fights the USB chip and breaks uploads.

Fourth, wiring an output to an input-only pin. GPIO 34, 35, 36, and 39 cannot drive an LED or a relay, and a button here needs an external resistor.

Fifth, trusting the chip GPIO count instead of the board pinout. The ESP32 chip has 34 GPIOs, but this board breaks out 25. Check the board pinout before you wire anything.

Frequently asked questions

How many pins does the DevKit V1 have?

The ESP32 DevKit V1 has 30 pins in two rows of 15, with 25 usable GPIOs: 21 inputs and outputs plus 4 input-only pins (GPIO 34, 35, 36, and 39). GPIO 0 is the BOOT button, GPIO 6 to 11 run the SPI flash, and GPIO 37 and 38 are not bonded out.

Which pins are safe to use?

GPIO 4, 13, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32, and 33 are the safest pins: no strapping role and nothing on the board pulling them. Use these first for buttons, LEDs, sensors, and relays. Avoid GPIO 1 and 3, which carry USB serial.

What are the strapping pins?

The strapping pins are GPIO 0, 2, 5, 12, and 15, per the Espressif ESP32 Series Datasheet v5.3. At reset, GPIO 0 must be HIGH to run and LOW to enter download mode, GPIO 2 must be LOW or floating, GPIO 5 must be HIGH, GPIO 12 must be LOW for 3.3 V flash, and GPIO 15 must be HIGH to print the boot log.

Can I use ADC pins with WiFi on?

Yes, but only the ADC1 pins: VP (GPIO 36), VN (GPIO 39), D34, D35, D32, and D33. ADC2 covers D4, D2, D15, D13, D12, D14, D27, D25, and D26, and it stops working while WiFi runs. With WiFi on, wire the sensor to an ADC1 pin.

Is the DevKit V1 5 V tolerant?

No. Every pin on the ESP32 DevKit V1 is 3.3 V logic only, and no pin is 5 V tolerant. A 5 V sensor output wired straight to a GPIO pin will damage the input, so use a level shifter or a voltage divider for 5 V sensors. Power the board from USB at 5 V, from VIN at 5 V to 12 V, or from a regulated 3.3 V supply on the 3V3 pin.

Parts used in this guide

The board and the bench parts below are in stock in the store. The DevKit V1 programs over a Micro-USB data cable, so use a cable that carries data, not a charge-only cable.

In this series

This is post 2 of 10 in the ESP32 series. The pillar is Which ESP32 Should I Buy? Pick the Right Board for Your Project. The other spokes are plain text until they publish.

  • Post 1: Which ESP32 Should I Buy? (pillar).
  • Post 2: ESP32 DevKit V1 (30-pin) pinout (this post).
  • Post 3: ESP32-S3 DevKitC-1 pinout.
  • Post 4: ESP32-CAM pinout, boot mode, and flashing.
  • Post 5: ESP32-CAM troubleshooting.
  • Post 6: ESP32-CAM streaming.
  • Post 7: ESP32-CAM on battery.
  • Post 8: ESP-NOW explained.
  • Post 9: Arduino IDE vs PlatformIO vs ESP-IDF vs MicroPython.
  • Post 10: ESP32 not detected over USB.

Sources

  • Espressif ESP32 Series Datasheet v5.3 (2026-07): pin functions, strapping pins Tables 3-1, 3-3, and 3-4, ADC, DAC, touch. https://documentation.espressif.com/esp32_datasheet_en.pdf
  • Espressif ESP32-DevKitC V4 Getting Started Guide: J2 and J3 header tables, power options, flash pin warning. https://documentation.espressif.com/esp-dev-kits/en/latest/esp32/esp32-devkitc/user_guide.html
  • Espressif ESP-IDF GPIO and RTC GPIO docs: ADC channel map, strapping pins, ADC2 and WiFi rule, input-only pins. https://docs.espressif.com/projects/esp-idf/en/v5.2-beta1/esp32/api-reference/peripherals/gpio.html
  • DeepBlueMbedded ESP32 Pinout (DevKit V1 30-Pin DOIT): DOIT header tables, schematic notes, board specs. https://deepbluembedded.com/esp32-pinout-devkit-v1-datasheet-schematic/