Skip to content
Due to large volume of orders, all the orders placed/confirmed after 9am on 16th Nov will only be shipped on 17th Nov. We apologize for the inconvenience!

ESP32 Pinout Guide: 30-Pin vs 38-Pin DevKit, Safe GPIOs, and Pins to Avoid

ESP32 Pinout Guide: 30-Pin vs 38-Pin DevKit, Safe GPIOs, and Pins to Avoid
-
Written By - Robocraze -
📅 Updated on 16 Nov 2026
✨ Summarize with AI
✅ Prompt copied

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 Guide: 30-Pin vs 38-Pin DevKit, Safe GPIOs, and Pins to Avoid - Cover image

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:

  1. GPIO 6–11 are tied to the flash chip.
  2. GPIO 34, 35, 36 and 39 are input only.
  3. 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.

30-pin ESP32 DevKit Pinout Diagram
38-pin ESP32 DevKit Pinout Diagram

Pin labels can vary slightly between board makers, so check the silkscreen printed on your board before wiring.

Components and Supplies

ESP32 NodeMCU Dev Board (CP2102, 30-Pin) – WiFi & BLE support. -Nodemcu ESP Board -RobocrazeESP32 NodeMCU Dev Board (CP2102, 30-Pin) – WiFi & BLE support. -Nodemcu ESP Board -Robocraze

ESP32 30 Pin Development Board (CP2102) WiFi + BT

ESP32 30 Pin Development Board (CP2102) WiFi + BT The ESP32 30 Pin Development Board is a versatile microcontroller board designed for IoT, home automation, robotics, wireless monitoring, and embedded system development. Powered by a dual-core ESP32 processor and equipped with built-in WiFi and...
Rs 445/-
Rs 445/-
Rs 597/-
Save Rs 152/-
🔥 Trending
ESP32 NodeMCU (38-Pin) WiFi + BLE – Ideal for IoT. -Nodemcu ESP Board -RobocrazeESP32 NodeMCU (38-Pin) WiFi + BLE – Ideal for IoT. -Nodemcu ESP Board -Robocraze

    ESP32 38-Pin WiFi + Bluetooth NodeMCU Development Board

    ESP32 38-Pin WiFi + Bluetooth NodeMCU Development Board The ESP32 38-Pin WiFi + Bluetooth NodeMCU Development Board is a versatile microcontroller development board designed for IoT, home automation, robotics, embedded systems, and wireless electronics projects. Built around the ESP-WROOM-32 module, it combines a powerful...
    Rs 422/-
    Rs 422/-
    Rs 599/-
    Save Rs 177/-
    7Semi ESP32-DEVKIT-D – ESP32 WiFi BLE Development Board -Robocraze7Semi ESP32-DEVKIT-D – ESP32 WiFi BLE Development Board -Robocraze

      7Semi ESP32-DEVKIT-D – ESP32 WiFi BLE Development Board

      7Semi ESP32-DEVKIT-D – ESP32 WiFi BLE Development Board The 7Semi ESP32-DEVKIT-D is a compact and powerful development board built around the ESP32-WROOM-32D module, offering seamless Wi-Fi and Bluetooth connectivity for your IoT and embedded projects. With its dual-core processor, 4MB flash memory, PCB antenna,...
      Rs 685/-
      Rs 685/-
      Rs 859/-
      Save Rs 174/-
      7Semi ESP32-DEVKIT-E – ESP32 WiFi BLE Development Board with CP2102 USB-UART -Robocraze7Semi ESP32-DEVKIT-E – ESP32 WiFi BLE Development Board with CP2102 USB-UART -Robocraze

        7Semi ESP32-DEVKIT-E – ESP32 WiFi BLE Development Board with CP2102 USB-UART

        7Semi ESP32-DEVKIT-E – ESP32 WiFi BLE Development Board with CP2102 USB-UART The 7Semi ESP32-DEVKIT-E is a compact and powerful development board built around the ESP32-WROOM-32E module, offering dual-core processing, onboard WiFi, and Bluetooth connectivity. Designed for makers, students, and IoT developers, it provides reliable...
        Rs 685/-
        Rs 685/-
        Rs 859/-
        Save Rs 174/-
        17Semi ESP32-DEVKIT-E-N16 WiFi BLE Development Board - Robocraze17Semi ESP32-DEVKIT-E-N16 WiFi BLE Development Board - Robocraze

          7Semi ESP32-DEVKIT-E-N16 WiFi BLE Development Board

          7Semi ESP32-DevKitC ESP32-WROOM Wi-Fi & BT/Bluetooth LE Development Board The 7Semi ESP32-DEVKIT-E-N16 WiFi BLE Development Board is a wireless development platform based on the ESP32-WROOM-32E-N16 module. Powered by Espressif's dual-core Xtensa LX6 processor, the board is designed for embedded applications that require wireless connectivity, flexible...
          Rs 1,249/-
          Rs 1,249/-
          Rs 1,686/-
          Save Rs 437/-
          7Semi ESP32-DEVKIT-IE ESP32 Development Board WiFi BLE -Robocraze7Semi ESP32-DEVKIT-IE ESP32 Development Board WiFi BLE -Robocraze

            7Semi ESP32-DEVKIT-IE ESP32 Development Board WiFi BLE

            7Semi ESP32-DEVKIT-IE ESP32 Development Board WiFi BLE The 7Semi ESP32-DEVKIT-IE is a feature-rich ESP32 WiFi BLE development board built around the powerful ESP32-WROVER-IE module. With its dual-core processor, 8MB Flash memory, and IPEX antenna connector for enhanced RF performance, this board is designed for...
            Rs 970/-
            Rs 970/-
            Rs 1,214/-
            Save Rs 244/-
            7Semi ESP32-DEVKIT-UE – ESP32 WiFi BLE Development Board with IPEX Antenna & USB-UART -Robocraze7Semi ESP32-DEVKIT-UE – ESP32 WiFi BLE Development Board with IPEX Antenna & USB-UART -Robocraze

              7Semi ESP32-DEVKIT-UE – ESP32 WiFi BLE Development Board with IPEX Antenna & USB-UART

              7Semi ESP32-DEVKIT-UE – ESP32 WiFi BLE Development Board with IPEX Antenna & USB-UART The 7Semi ESP32-DEVKIT-UE is a powerful and compact development board built around the ESP32-WROOM-32UE module, offering Wi-Fi and Bluetooth connectivity with an external IPEX antenna for enhanced wireless range and stability....
              Rs 685/-
              Rs 685/-
              Rs 899/-
              Save Rs 214/-

              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.

              Excerpt

              ESP32 pinout guide for the 30-pin and 38-pin DevKit, with labelled diagrams. See safe GPIOs, pins to avoid, and ADC, I2C and SPI pins.

              Frequently Asked Questions

              1. How many GPIO pins does the ESP32 have?

              The ESP32 chip has 34 GPIO pins, but DevKits expose fewer. The 30-pin board gives you about 25 usable GPIOs. The 38-pin board brings out 32, of which 26 are usable once you skip the six flash pins.

              2. Which ESP32 pins are input only?

              GPIO34, 35, 36 and 39 are input only. They can read signals but cannot output them, and they have no internal pull-up or pull-down resistors.

              3. Why does my ESP32 not boot when a pin is connected?

              You have probably wired something to a strapping pin (GPIO0, 2, 5, 12 or 15). The ESP32 reads these pins at reset to choose its boot mode. Disconnect the wire, reset the board, and move the connection to a safe pin.

              4. Can I use ADC2 pins with Wi-Fi?

              No, not for analog readings. Wi-Fi uses ADC2, so those reads can fail while it is on. Use ADC1 pins (GPIO32, 33, 34, 35, 36 and 39) instead. The same pins still work as normal digital pins.

              5. What are the default I2C pins on ESP32?

              The default I2C pins are GPIO21 for SDA and GPIO22 for SCL. You can remap I2C to other free pins in your code.

              6. Is the ESP32 5V tolerant?

              No. ESP32 pins use 3.3 V logic, and a 5V signal can damage the chip. Use a level shifter for 5V modules. The board's 5V or VIN pin is only a power input and does not change the logic voltage.

              7. Which ESP32 GPIO pins are safest to use?

              GPIO4, 13, 14, 16, 17, 18, 19, 21, 22, 23, 25, 26, 27, 32 and 33 have no boot, flash or input-only restriction. Both the 30-pin and 38-pin boards expose all of them.

              8. Should I buy the 30-pin or 38-pin ESP32 board?

              Both use the same chip and give almost the same number of usable pins. Pick the 30-pin board for breadboards and compact builds. Pick the 38-pin board if you are following a tutorial written for it or need access to GPIO0.

              Prev Post
              Next Post

              Leave a comment

              Please note, comments need to be approved before they are published.

              Thanks for subscribing!

              This email has been registered!

              Shop the look

              Choose Options

              Edit Option
              Back In Stock Notification
              Compare
              Product SKU Description Collection Availability Product Type Other Details

              Choose Options

              this is just a warning
              Login
              Shopping Cart
              0 items
              FREE SHIPPING!
              ₹100 OFF
              ₹200 OFF
              ₹999
              ₹2500
              ₹4900
              WhatsApp Chat Chat