Summary
The ESP32 30-pin DevKit exposes 25 GPIOs and the 38-pin DevKit exposes 32, but not all are safe. This guide compares both boards, lists the safest pins for beginners, and explains which to avoid: flash pins, strapping pins and input-only pins. It also covers ADC, I2C and SPI pins and common wiring mistakes.

ESP32 Pinout at a Glance
The 30-pin ESP32 DevKit exposes 25 GPIO pins and the 38-pin DevKit exposes 32, but six of those 32 are flash pins that must not be used. Three rules matter most:
- GPIO 6–11 are tied to the flash chip.
- GPIO 34, 35, 36 and 39 are input only.
- ADC2 stops working when Wi-Fi is on.
A GPIO (general-purpose input/output) pin is a pin our code can switch on and off or read, such as to light an LED or check a button. The ESP32 chip has 34 GPIOs, and each DevKit brings out a different number of them.


Pin labels can vary slightly between board makers, so check the silkscreen printed on your board before wiring.
Components and Supplies
30-Pin vs 38-Pin DevKit: What’s Different
The primary difference between the two is that the 38-pin board exposes seven more GPIOs than the 30-pin board. However, these seven are GPIO0 along with the six flash pins; this means that in practice, both boards give almost the same number of usable pins. The ESP32 chip is identical for both boards, so the choice comes down to size and wiring needs.
| Feature | 30-pin DevKit | 38-pin DevKit |
|---|---|---|
| GPIOs on the headers | 25 | 32 |
| Usable GPIOs (flash pins excluded) | 25 | 26 |
| Flash pins GPIO6–11 on the headers | No | Yes, all six |
| GPIO0 (BOOT) on the headers | No | Yes |
| Input-only pins | 34, 35, 36, 39 | 34, 35, 36, 39 |
| USB-to-serial chip | CP2102 | CP2102 or CH340, varies by batch |
| Breadboard fit | Leaves one free hole row on each side | Wider, so check your breadboard first |
| Best for | Compact builds and breadboard prototyping | Following tutorials written for the 38-pin layout |
Both boards share the same core specs: a dual-core processor running up to 240 MHz, Wi-Fi and Bluetooth, 4 MB of flash, 520 KB of SRAM and 3.3 V logic. For a closer look at how ESP32 boards compare, read our complete guide to the ESP32 or our roundup of the best compact ESP32 boards.
Get the ESP32 DevKit (30-pin / 38-pin)
ESP32 NodeMCU 30-pin Development Board (CP2102)
ESP32 38-pin Development Board
Safe GPIO Pins for Beginners
There are fifteen ESP32 GPIO pins which have no boot, flash or input-only restriction, and are therefore the best to start with. They are: GPIO4, 13, 14, 16–19, 21–23, 25–27, 32 and 33. All of them appear on both the 30-pin and 38-pin boards.
There are four input-only pins that are also safe, as long as you only read from them.
| Pin | Safe for | Notes |
|---|---|---|
| GPIO4, 13, 14 | Input and output | Also touch pins and ADC2 inputs. GPIO14 outputs a brief PWM signal at boot, so avoid it for anything that must stay off at power-up. |
| GPIO16, 17 | Input and output | Second serial port (RX2 and TX2) on boards with a WROOM module. |
| GPIO18, 19, 23 | Input and output | Default SPI pins, used with GPIO5. |
| GPIO21, 22 | Input and output | Default I2C pins (SDA and SCL). |
| GPIO25, 26 | Input and output | The two DAC (true analog output) pins; also ADC2 inputs. |
| GPIO27 | Input and output | Touch pin and ADC2 input. |
| GPIO32, 33 | Input and output | ADC1 inputs that keep working with Wi-Fi on; also touch pins. |
| GPIO34, 35, 36, 39 | Input only | ADC1 inputs that keep working with Wi-Fi on; no internal pull-up or pull-down. |
Not sure what to build first? Try one of our ESP32 starter projects.
Pins to Avoid: Flash Pins, Strapping Pins and Input-Only Pins
Avoid GPIO6–11 completely, as they are connected to the flash chip and can cause crashes or failures. Use the strapping, input-only, and serial pins only within their limits. Most ESP32 problems that look like a faulty board tend to come from one of these pins.
Flash pins (GPIO6–11)
These six pins connect the ESP32 chip to its onboard flash memory, where the program is stored. The 38-pin board brings them out to the headers (marked SD0–SD3, CMD and CLK), but connecting anything to them can crash the board. Treat them as if they were not there. The 30-pin board does not expose them, so it is not an issue.
Strapping pins (GPIO0, 2, 5, 12, 15)
Strapping pins are read once, either at power-up or reset, and are used in order to decide how the ESP32 starts. Whatever is wired to them at that moment can change the boot mode. After the board has started, they can be used like normal pins.
- GPIO0: if it is held low during reset, the board enters upload (download) mode. This is what the BOOT button does.
- GPIO2: should be low or left unconnected during upload. Many boards have an onboard LED on this pin.
- GPIO12: if it is high at reset, the board selects 1.8 V flash. Boards with 3.3 V flash will then fail to boot.
- GPIO5 and GPIO15: these affect boot timing and boot messages, so keep them at their default levels at power-up.
If a circuit must use a strapping pin, ensure that it does not pull the pin to the wrong level at power-up, or gets disconnected while uploading code.
Input-only pins (GPIO34, 35, 36, 39)
These pins can only read signals. A button on one of them would need an external resistor, as they cannot output a signal and have no internal pull-up or pull-down resistors. They are ideal for analog sensors. The chip also has input-only GPIO37 and GPIO38, but standard DevKits do not bring them out.
Serial pins (GPIO1 and GPIO3)
These two pins carry the USB serial connection (TX0 and RX0). Avoid them while using the Serial Monitor or uploading code.
ADC, DAC, Touch, PWM, I2C, SPI and UART Pins
The ESP32 can move many of its functions to different pins, but the defaults below are the easiest place to start. The analog, DAC and touch functions are fixed to specific GPIOs.
| Function | Pins | Notes |
|---|---|---|
| ADC1 (Analog Input) | GPIO32, GPIO33, GPIO34, GPIO35, GPIO36, GPIO39 | Supports 12-bit readings (0–4095) and continues working when Wi-Fi is enabled. |
| ADC2 (Analog Input) | GPIO0, GPIO2, GPIO4, GPIO12, GPIO13, GPIO14, GPIO15, GPIO25, GPIO26, GPIO27 | Shares hardware resources with Wi-Fi, so analog readings may fail while Wi-Fi is active. |
| DAC (Analog Output) | GPIO25, GPIO26 | Provides the only two true analog output pins on the ESP32. |
| Touch | GPIO4, GPIO0, GPIO2, GPIO15, GPIO13, GPIO12, GPIO14, GPIO27, GPIO33, GPIO32 | Supports ten capacitive touch inputs, useful for creating touch-sensitive buttons. |
| PWM | Any output-capable GPIO | Not available on GPIO34–GPIO39. Useful for LED dimming and motor speed control. |
| I2C | SDA: GPIO21, SCL: GPIO22 | Default I2C pins, which can be remapped through code. |
| SPI (VSPI) | MOSI: GPIO23, MISO: GPIO19, SCK: GPIO18, CS: GPIO5 | Used for connecting displays, SD cards, and other high-speed peripheral modules. |
| UART2 | TX: GPIO17, RX: GPIO16 | Provides an additional serial port for connecting GPS, GSM, and other serial communication modules. |
| UART0 | TX: GPIO1, RX: GPIO3 | Used for USB serial communication and programming. Keep these pins free when using the USB connection. |
For analog sensors, the ESP32 ADC pins on ADC1 are the safe choice in any project that uses Wi-Fi. If you need a second I2C bus or a different SPI layout, you can assign these functions to other free pins in your code. The third serial port, UART1, defaults to the flash pins, so always remap it before use.
Common Pinout Mistakes
Most ESP32 pin problems come down to six mistakes, and each has a quick fix.
The board will not boot or keeps restarting (a boot loop): Something is connected to a strapping pin (GPIO0, 2, 5, 12 or 15) or to a flash pin (GPIO6–11). Unplug everything from those pins, then move the wiring to a safe pin.
- Analog readings fail once Wi-Fi starts: The sensor is on an ADC2 pin. Wi-Fi uses ADC2, so move the sensor to an ADC1 pin (GPIO32, 33, 34, 35, 36 or 39).
- An LED or relay on GPIO34, 35, 36 or 39 never switches on: These pins are input only and cannot send a signal out. Move the output to a safe pin such as GPIO25.
- A button on GPIO34–39 gives random readings: These pins have no internal pull-up or pull-down resistor, so add an external resistor (10 kΩ is typical).
- A 5V signal damages the board: ESP32 pins use 3.3 V logic and are not 5V tolerant. Use a level shifter or a voltage divider for any 5V signal.
- Code will not upload: First check the USB cable carries data, not just power, and that the USB driver is installed. Our guide to installing ESP32 drivers and setting up Arduino IDE walks through it. If the upload still hangs on "Connecting", hold the BOOT button until it starts.
Conclusion
The 30-pin and 38-pin ESP32 DevKits use the same chip, so pick the one that fits your breadboard and wiring. Whichever you choose, stay off GPIO6–11, read analog sensors on ADC1 pins when Wi-Fi is on, and keep strapping pins free at power-up. Ready to build? Get the 30-pin or 38-pin ESP32 DevKit from Robocraze.






