The ESP32 DevKit V1 is a popular development board based on the ESP32 microcontroller family from Espressif Systems. It is widely used in IoT, wireless communication, automation, robotics, sensor interfacing, and embedded projects. The board combines Wi-Fi, Bluetooth, a powerful processor, and versatile GPIO pins in a compact and inexpensive package.
At its core is typically an ESP-WROOM-32 module, which includes the ESP32 SoC, flash memory, crystal oscillator, RF circuitry, and antenna. The development board adds a USB-to-serial interface, voltage regulator, EN (Reset) button, BOOT button, and header pins for external connections.
The ESP32 supports digital GPIO, ADC, DAC, PWM, capacitive touch sensing, I2C, SPI, UART, I2S, interrupts, and RTC functions. Its flexible pin-matrix architecture allows many peripheral signals to be routed to different GPIO pins.
ESP32 DevKit V1: 30, 36, and 38-Pin Variants
The term “ESP32 DevKit V1” is used for several similar boards. The 30-pin, 36-pin, and 38-pin labels do not refer to different ESP32 chips. Instead, they indicate the number of physical header pins exposed on a particular board design.
Manufacturers may expose different combinations of GPIO, power, ground, and special-purpose pins. The most common versions are:
- 30-pin version – A compact and widely available layout, commonly associated with DOIT-style ESP32 DevKit V1 boards.
- 36-pin version – An intermediate layout that exposes more signals than the 30-pin version.
- 38-pin version – A larger layout with additional header connections and access to more ESP32 signals.
These differences mainly result from variations in manufacturer designs and board revisions. Smaller boards may omit less commonly used pins, while larger boards provide access to more signals.
Therefore, two ESP32 boards may use the same ESP32-WROOM module and have the same core hardware capabilities while having different physical pin layouts. Always check the GPIO labels printed on the PCB before using a pinout diagram.
This article primarily focuses on the popular 30-pin ESP32 DevKit V1, while also discussing the 36-pin and 38-pin versions to help you identify your board correctly before connecting external components.
Related Articles:
- Smart IoT-Based Automatic Irrigation System Using ESP32
- Water Quality Monitoring System: TDS Sensor + ESP32/Arduino
- BME680 and ESP8266 Based Indoor Air Quality Monitoring System
- IOT Based Air Quality Monitoring System with ESP32 & BME680
- Interfacing DHT11 + Soil Moisture Sensor with Arduino & ESP32
- Air Quality Monitoring System – ESP32 + Blynk IoT Project
- ESP32 Home Automation Project by Google Assistant & Blynk
ESP32 Specifications
The ESP32 DevKit V1 is based on the ESP32 family of Wi-Fi and Bluetooth SoCs. The exact onboard components can differ between manufacturers, but the common board typically uses an ESP-WROOM-32 module with a USB-to-UART interface and an onboard 3.3 V regulator.
| Parameter | Typical Specification |
|---|---|
| Processor | 32-bit Xtensa LX6 processor, typically dual-core |
| Clock Frequency | Up to 240 MHz |
| Wireless Connectivity | 2.4 GHz Wi-Fi (802.11 b/g/n) |
| Bluetooth | Bluetooth Classic and Bluetooth Low Energy |
| Operating Logic Voltage | 3.3 V |
| USB Power Input | 5 V through USB |
| External Power Input | Typically 5 V through VIN/5V pin |
| GPIO | Multiple programmable GPIOs, depending on the board version and exposed pins |
| ADC | 12-bit SAR ADC channels |
| DAC | 2 × 8-bit DAC channels |
| Touch Sensor | Capacitive touch-capable GPIOs |
| UART | 3 UART controllers |
| SPI | Multiple SPI controllers |
| I2C | 2 I2C controllers |
| PWM | LED PWM and motor-control PWM hardware |
| USB-to-UART Interface | Typically CP2102, CH340, or a similar converter depending on the board manufacturer |
| Programming Support | Arduino IDE, ESP-IDF, PlatformIO, and other compatible development environments |
It is important to distinguish between the specifications of the ESP32 SoC and those of a particular development board. Espressif specifies the core ESP32 capabilities, while the physical DevKit board determines which pins are exposed and which USB-to-UART converter, flash configuration, regulator, and supporting circuitry are used. The official ESP32 datasheet specifies support for programmable GPIO, Wi-Fi, Bluetooth, ADC, DAC, touch sensing, UART, I2C, SPI, PWM, RTC and other integrated peripherals.
For this reason, the PCB markings and the specifications provided by the manufacturer or seller of the specific ESP32 DevKit V1 should always be checked before designing a circuit around the board.
ESP32 DevKit V1 Pinout Diagram
The ESP32 DevKit V1 pinout diagram provides a quick reference to the board’s power pins, GPIO pins, analog functions, communication interfaces, boot pins, and other important connections. The most common version features 30 header pins, arranged in two rows of 15.
Board layouts may vary between manufacturers, so always check the GPIO labels printed on your PCB. Before using a pinout diagram, confirm whether your board is the 30-pin, 36-pin, or 38-pin version.
The ESP32 DevKit V1 exposes many ESP32 signals through its header pins, but not all pins have the same capabilities. Depending on the pin, they can support digital input/output, analog input, DAC output, capacitive touch, UART, SPI, I2C, PWM, or RTC functions. Some pins are input-only or affect the boot process.
The ESP32’s flexible GPIO matrix allows many peripheral functions to be assigned to different GPIO pins. However, input-only pins, flash-connected pins, strapping pins, and other hardware restrictions must still be considered when selecting GPIOs.
ESP32 DevKit V1 Pinout Overview
The pinout of the popular 30-pin ESP32 DevKit V1 can be broadly divided into power pins, general-purpose GPIOs, analog pins, communication pins, input-only pins, and boot-related pins. The table below provides a quick overview of the important functions available on the board.
| Pin Category | Typical ESP32 DevKit V1 Pins | Main Function |
|---|---|---|
| Power | VIN, 3V3, GND | Board power input, regulated 3.3 V supply, and ground connection |
| Enable | EN | Enables, disables, and resets the ESP32 |
| General GPIO | GPIO0–GPIO39* | Digital input/output and peripheral routing |
| Input-Only | GPIO34, GPIO35, GPIO36, GPIO39 | Digital or analog input only |
| ADC | Selected GPIO pins | Analog voltage measurement |
| DAC | GPIO25, GPIO26 | Analog voltage output |
| Capacitive Touch | Selected touch-enabled GPIOs | Touch sensing and related functions |
| I2C | GPIO21, GPIO22 (default) | Sensor and peripheral communication |
| SPI | GPIO18, GPIO19, GPIO23 and others | High-speed serial peripheral communication |
| UART | GPIO1, GPIO3, GPIO16, GPIO17 | Serial communication, programming, and debugging |
| Boot/Strapping | GPIO0, GPIO2, GPIO5, GPIO12, GPIO15 | Determine specific startup and boot configurations |
*Not all ESP32 GPIO numbers are exposed on every development board, and some GPIOs are reserved for internal flash or other hardware functions.
The most commonly used default communication pins on the ESP32 DevKit V1 are GPIO21 for I2C SDA, GPIO22 for I2C SCL, GPIO23 for SPI MOSI, GPIO19 for SPI MISO, and GPIO18 for SPI SCK. However, the ESP32 provides flexible peripheral routing, so several interfaces can be reassigned when required.
ESP32 DevKit V1 Pin Functions
The ESP32 DevKit V1 provides a versatile collection of power pins, general-purpose GPIOs, analog interfaces, communication interfaces, touch sensors, and boot-related pins. However, not every exposed pin can be used in the same way. Some pins are input-only, some are connected to onboard functions, and some influence the boot process. Understanding these functions is essential when selecting pins for sensors, displays, motors, and other peripherals.
1. Power Pins: VIN, 3V3 and GND
The ESP32 DevKit V1 provides VIN/5V, 3V3, and GND pins for powering the board and connecting external circuits.
- VIN or 5V: This pin is connected to the board’s 5 V power rail on typical DevKit V1 boards. When a regulated 5 V supply is used, the board can usually be powered through this pin. However, the exact power path may vary between manufacturers, so the specific board should be checked before applying an external voltage.
- 3V3: This pin provides the regulated 3.3 V supply used by the ESP32. It can power low-current external sensors and modules, but the total current available depends on the onboard regulator and the board’s own power consumption.
- GND: The ground pins provide the common electrical reference for the ESP32 and all connected external circuits. Every external power supply and peripheral must share a common ground with the board.
The ESP32 operates with 3.3 V logic. Its GPIO pins are generally not 5 V tolerant, so 5 V signals should not be connected directly to them. A suitable level shifter or voltage divider should be used when interfacing the ESP32 with a 5 V logic device.
2. EN (Enable/Reset) Pin
The EN pin enables the ESP32 chip and is pulled HIGH during normal operation. Pulling this pin LOW disables or resets the ESP32, causing the processor to restart when EN returns HIGH.
The EN pin is connected to the onboard EN or Reset button on most ESP32 DevKit V1 boards. It is also used by the USB-to-UART programming circuit to support automatic resetting during firmware upload.
- EN = HIGH: ESP32 operates normally.
- EN = LOW: ESP32 is disabled or held in reset.
3. General-Purpose GPIO Pins
The ESP32 provides a large number of General-Purpose Input/Output (GPIO) pins. These pins can be configured through software as digital inputs or outputs and can also be assigned to peripheral functions through the ESP32’s flexible pin-matrix system.
GPIO pins can be used for applications such as:
- Reading push buttons and switches
- Driving LEDs and relays
- Controlling transistors and MOSFETs
- Communicating with sensors and modules
- Generating PWM signals
- Handling interrupts
Not all GPIOs have identical capabilities. For example, GPIO34 to GPIO39 are input-only, while GPIO6 to GPIO11 are normally connected to the onboard SPI flash memory and should generally not be used for external circuits. Certain GPIOs are also strapping pins and should be selected carefully.
4. Input-Only Pins
On the classic ESP32, the following GPIO pins are input-only:
- GPIO34
- GPIO35
- GPIO36 (VP)
- GPIO39 (VN)
These pins can be used as digital or analog inputs, but they cannot generate a digital output. They are therefore suitable for sensors, switches, voltage monitoring, and other input applications.
These GPIOs also do not provide the same internal pull-up and pull-down capability as standard output-capable GPIOs. When using a switch or floating digital signal, an appropriate external pull-up or pull-down resistor may be required.
5. ADC Pins
The ESP32 includes two 12-bit Successive Approximation Register Analog-to-Digital Converters, referred to as ADC1 and ADC2. These allow analog voltages to be converted into digital values for measuring signals from sensors, potentiometers, batteries, and other analog sources.
The ADCs are capable of producing digital readings with a nominal 12-bit range of 0 to 4095. However, the actual measurable input range and accuracy depend on the selected attenuation, calibration, and operating conditions.
Important: On the original ESP32, ADC2 is shared with the Wi-Fi hardware. When Wi-Fi is active, ADC2 may not be available for normal analog measurements. For Wi-Fi-based projects, ADC1 pins are generally the safer choice for analog inputs.
Commonly used ADC1 pins include:
- GPIO32
- GPIO33
- GPIO34
- GPIO35
- GPIO36
- GPIO39
The maximum voltage applied to an ESP32 GPIO should never exceed the device’s safe operating limits. When measuring higher voltages, a suitable voltage divider or conditioning circuit must be used.
6. DAC Pins
The classic ESP32 includes two integrated 8-bit Digital-to-Analog Converter (DAC) channels:
- GPIO25: DAC Channel 1
- GPIO26: DAC Channel 2
These pins can generate analog voltage levels directly from digital values, making them useful for simple waveform generation, analog control signals, and low-resolution audio applications. Since the DAC resolution is only 8 bits, an external higher-resolution DAC may be required for applications demanding greater precision.
7. Capacitive Touch Pins
The ESP32 includes hardware capacitive touch sensing. Touch-capable GPIOs can detect changes in capacitance when a conductive object, such as a human finger, approaches or touches a connected conductive surface.
The touch-enabled pins on the classic ESP32 are:
- GPIO4
- GPIO0
- GPIO2
- GPIO15
- GPIO13
- GPIO12
- GPIO14
- GPIO27
- GPIO33
- GPIO32
These pins can be connected to conductive pads, metal surfaces, or specially designed touch electrodes to create touch buttons without mechanical switches. Some touch pins also support wake-up functions during deep-sleep operation.
8. PWM Pins
The ESP32 uses dedicated hardware peripheral controllers to generate Pulse Width Modulation (PWM) signals. PWM can be used to control LED brightness, motor speed, servo position, power converters, and other devices.
Most output-capable GPIO pins can be assigned to PWM output. The input-only pins GPIO34, GPIO35, GPIO36, and GPIO39 cannot generate PWM signals.
Because of the ESP32’s flexible GPIO routing, PWM signals can be assigned to many available output pins. However, it is best to avoid pins reserved for flash memory, bootstrapping, or critical onboard functions when designing a reliable circuit.
9. I2C Pins
The ESP32 contains two I2C controllers, and its flexible pin matrix allows the I2C signals to be assigned to different compatible GPIO pins.
The commonly used default pins are:
- GPIO21: SDA (Serial Data)
- GPIO22: SCL (Serial Clock)
These pins are widely used for sensors, OLED displays, RTC modules, EEPROMs, and other I2C peripherals. Although other GPIOs can be used for I2C, GPIO21 and GPIO22 are recommended when using standard Arduino libraries and examples.
Since I2C uses open-drain communication, SDA and SCL require pull-up resistors. Many I2C modules already include these resistors.
10. SPI Pins
The ESP32 supports multiple SPI controllers. On the ESP32 DevKit V1, two general-purpose SPI interfaces are commonly available for external peripherals, while another SPI interface is associated with the module’s flash memory.
A commonly used default VSPI configuration is:
- GPIO23: MOSI
- GPIO19: MISO
- GPIO18: SCK
- GPIO5: CS/SS
A commonly used HSPI configuration is:
- GPIO13: MOSI
- GPIO12: MISO
- GPIO14: SCK
- GPIO15: CS/SS
Due to the flexible pin-matrix system, SPI signals can often be reassigned. However, the default pins are widely supported by libraries and are convenient for displays, SD card modules, ADCs, and other high-speed peripherals.
11. UART Pins
The ESP32 includes three UART controllers: UART0, UART1, and UART2. These interfaces can be used for serial communication with GPS modules, GSM modules, RS485 converters, serial sensors, computers, and other devices.
- UART0: Usually uses GPIO1 (TX0) and GPIO3 (RX0) and is connected to the USB-to-UART interface for programming and debugging.
- UART1: Can be assigned to suitable GPIOs, but its default pins on the original ESP32 are associated with the flash interface and are therefore usually remapped.
- UART2: Commonly uses GPIO17 (TX2) and GPIO16 (RX2) on many ESP32 DevKit V1 boards.
For external serial devices, UART2 is commonly preferred because UART0 is used for uploading firmware and serial debugging.
12. Interrupt Pins
Most ESP32 GPIO pins can be configured to generate interrupts. An interrupt allows the processor to respond immediately to an event instead of continuously checking the state of a pin.
Interrupts are useful for applications such as:
- Push buttons
- Motion sensors
- Rotary encoders
- Frequency measurement
- Pulse counting
- External digital events
The specific interrupt capability depends on the GPIO and the function assigned to it. For reliable operation, an interrupt pin should not be used simultaneously for another conflicting peripheral function.
13. RTC GPIO and Deep Sleep Wake-Up Pins
Several ESP32 GPIOs are connected to the RTC low-power subsystem. These pins remain available to the RTC domain and can be used for selected low-power functions, including wake-up from deep sleep.
The ESP32 supports two commonly used external wake-up mechanisms:
- EXT0: Uses a single RTC-capable GPIO as an external wake-up source.
- EXT1: Allows selected RTC GPIOs to be used for wake-up based on configured logic conditions.
RTC-capable pins can be used in battery-powered projects such as wireless sensors, remote monitoring systems, and data loggers. The ESP32 can enter deep sleep to significantly reduce power consumption and wake only when a configured event occurs.
Because wake-up capabilities can depend on the ESP32 variant and software framework, the specific deep-sleep wake-up configuration should be checked when designing the circuit.
14. Strapping and Boot Pins
Some ESP32 GPIOs are known as strapping pins. Their logic levels are sampled during reset to determine important startup and boot configurations.
The main strapping pins on the classic ESP32 include:
- GPIO0
- GPIO2
- GPIO5
- GPIO12
- GPIO15
These pins can still be used as normal GPIOs after startup, but external circuits connected to them must not force an incorrect logic level during reset.
GPIO0 is particularly important because it is used to select the serial bootloader mode during programming. On typical ESP32 DevKit V1 boards, the USB-to-UART circuit and BOOT button control this pin automatically or manually when uploading firmware.
GPIO12 should also be used with care because its boot-time state can affect flash-related voltage configuration on the classic ESP32. Incorrect external pull-up or pull-down connections can prevent the board from starting correctly.
In general, GPIO0, GPIO2, GPIO5, GPIO12, and GPIO15 should be avoided for peripherals that may force their voltage level during reset. This helps prevent boot failures, flashing problems, and unpredictable startup behavior.
ESP32 GPIO Pin Reference Table
The following table provides a quick reference for the GPIO pins of the classic ESP32 chip used on most ESP32 boards. The GPIO number refers to the ESP32 chip pin number, while the board may print labels such as D23, VP, VN, RX2, or TX2 instead of the GPIO number.
Not every GPIO is available on every ESP32 version. For example, the popular 30-pin board does not expose GPIO6 to GPIO11 because these pins are normally connected internally to the SPI flash memory. The table also identifies pins that should be used carefully due to boot, programming, or hardware restrictions.
| Physical Chip Pin | ESP32 GPIO | Board Label | Digital I/O | ADC | DAC | Touch | RTC GPIO | Typical Function / Notes |
|---|---|---|---|---|---|---|---|---|
| 23 | GPIO0 | D0 / BOOT | Input / Output | ADC2_CH1 | — | T1 | RTC_GPIO11 | BOOT, CLK_OUT1, strapping pin |
| 41 | GPIO1 | TX0 | Input / Output | — | — | — | — | UART0 TX, CLK_OUT3 |
| 22 | GPIO2 | D2 | Input / Output | ADC2_CH2 | — | T2 | RTC_GPIO12 | Strapping pin |
| 40 | GPIO3 | RX0 | Input / Output | — | — | — | — | UART0 RX, CLK_OUT2 |
| 24 | GPIO4 | D4 | Input / Output | ADC2_CH0 | — | T0 | RTC_GPIO10 | General-purpose GPIO |
| 34 | GPIO5 | D5 | Input / Output | — | — | — | — | Strapping pin, VSPI CS |
| 31 | GPIO6 | SD_CLK | Input / Output* | — | — | — | — | SPI flash; avoid using |
| 32 | GPIO7 | SD_DATA0 | Input / Output* | — | — | — | — | SPI flash; avoid using |
| 33 | GPIO8 | SD_DATA1 | Input / Output* | — | — | — | — | SPI flash; avoid using |
| 28 | GPIO9 | SD_DATA2 | Input / Output* | — | — | — | — | SPI flash; avoid using |
| 29 | GPIO10 | SD_DATA3 | Input / Output* | — | — | — | — | SPI flash; avoid using |
| 30 | GPIO11 | SD_CMD | Input / Output* | — | — | — | — | SPI flash; avoid using |
| 18 | GPIO12 | D12 | Input / Output | ADC2_CH5 | — | T5 | RTC_GPIO15 | Strapping pin |
| 20 | GPIO13 | D13 | Input / Output | ADC2_CH4 | — | T4 | RTC_GPIO14 | HSPI MOSI |
| 17 | GPIO14 | D14 | Input / Output | ADC2_CH6 | — | T6 | RTC_GPIO16 | HSPI SCK |
| 21 | GPIO15 | D15 | Input / Output | ADC2_CH3 | — | T3 | RTC_GPIO13 | Strapping pin, HSPI CS |
| 25 | GPIO16 | RX2 | Input / Output | — | — | — | — | UART2 RX |
| 27 | GPIO17 | TX2 | Input / Output | — | — | — | — | UART2 TX |
| 35 | GPIO18 | D18 | Input / Output | — | — | — | — | VSPI SCK |
| 38 | GPIO19 | D19 | Input / Output | — | — | — | — | VSPI MISO |
| 42 | GPIO21 | D21 / SDA | Input / Output | — | — | — | — | Default I2C SDA |
| 39 | GPIO22 | D22 / SCL | Input / Output | — | — | — | — | Default I2C SCL |
| 36 | GPIO23 | D23 | Input / Output | — | — | — | — | VSPI MOSI |
| 14 | GPIO25 | D25 | Input / Output | ADC2_CH8 | DAC1 | — | RTC_GPIO6 | ADC and DAC |
| 15 | GPIO26 | D26 | Input / Output | ADC2_CH9 | DAC2 | — | RTC_GPIO7 | ADC and DAC |
| 16 | GPIO27 | D27 | Input / Output | ADC2_CH7 | — | T7 | RTC_GPIO17 | ADC and touch |
| 12 | GPIO32 | D32 | Input / Output | ADC1_CH4 | — | T9 | RTC_GPIO9 | ADC1, touch, RTC |
| 13 | GPIO33 | D33 | Input / Output | ADC1_CH5 | — | T8 | RTC_GPIO8 | ADC1, touch, RTC |
| 10 | GPIO34 | D34 | Input Only | ADC1_CH6 | — | — | RTC_GPIO4 | Input only |
| 11 | GPIO35 | D35 | Input Only | ADC1_CH7 | — | — | RTC_GPIO5 | Input only |
| 5 | GPIO36 | VP | Input Only | ADC1_CH0 | — | — | RTC_GPIO0 | Input only, analog |
| 8 | GPIO39 | VN | Input Only | ADC1_CH3 | — | — | RTC_GPIO3 | Input only, analog |
Note: GPIO20, GPIO24, GPIO28 to GPIO31, GPIO37 and GPIO38 are not available as standard user GPIOs on the commonly used classic ESP32 package/module configuration. GPIO6 to GPIO11 are physically connected to the SPI flash interface on standard ESP32 modules and should generally not be used in projects.
The table shows that many ESP32 pins provide more than one hardware capability. For example, GPIO32 and GPIO33 can function as normal digital GPIOs, ADC inputs, capacitive touch inputs, and RTC GPIOs. This flexibility is one of the main advantages of the ESP32, but it is important to ensure that a pin is not assigned to conflicting functions at the same time.
Understanding the GPIO Pin Labels
The number printed on an ESP32 DevKit V1 board generally refers to the actual GPIO number. For example, D23 corresponds to GPIO23. However, several pins use descriptive labels instead:
- VP = GPIO36
- VN = GPIO39
- RX2 = GPIO16
- TX2 = GPIO17
- RX0 = GPIO3
- TX0 = GPIO1
When writing Arduino code, you should normally use the GPIO number. For example:
pinMode(23, OUTPUT);
digitalWrite(23, HIGH);
In this example, the code controls GPIO23, which is commonly labeled D23 on the ESP32 DevKit V1 PCB.
Important: This reference applies to the original/classic ESP32 used by common ESP32-WROOM-based DevKit V1 boards. The pin capabilities and available GPIOs can differ on newer ESP32 variants such as ESP32-S2, ESP32-S3, ESP32-C3, and ESP32-C6.
Which ESP32 DevKit V1 Pins Are Safe to Use?
The safest GPIOs for general-purpose projects are the pins that are not connected to the SPI flash, not used by the USB-to-UART programming interface, and not strapping pins. For the popular ESP32 DevKit V1, the following GPIOs are generally good choices for external LEDs, sensors, relays, displays, and other peripherals:
| Recommended GPIO Pins | Common Uses |
|---|---|
| GPIO4 | General digital I/O, ADC, touch sensing |
| GPIO13, GPIO14 | Digital I/O, SPI, ADC, touch |
| GPIO16, GPIO17 | General digital I/O, UART2 |
| GPIO18, GPIO19, GPIO23 | General digital I/O and commonly used SPI pins |
| GPIO21, GPIO22 | General digital I/O and default I2C SDA/SCL |
| GPIO25, GPIO26 | Digital I/O, ADC, and DAC output |
| GPIO27 | Digital I/O, ADC, and touch sensing |
| GPIO32, GPIO33 | Digital I/O, ADC1, touch, and RTC functions |
GPIO34, GPIO35, GPIO36, and GPIO39 are also safe for applications that require input only. These pins are particularly useful for analog sensors because they belong to the ADC1 group, which remains preferable for analog measurements when Wi-Fi is active. However, they cannot drive LEDs, relays, or other output devices. Espressif also recommends paying attention to strapping-pin states, avoiding flash/PSRAM pins, and using external pull resistors where required for input-only GPIOs.
Pins to Avoid or Use with Caution
Some ESP32 GPIO pins have special functions or hardware restrictions. They are not necessarily unusable, but connecting external circuits without considering their startup behavior can cause boot failures, programming problems, or conflicts with onboard hardware.
| GPIO Pins | Use Recommendation | Reason |
|---|---|---|
| GPIO6–GPIO11 | Avoid | Normally connected internally to the ESP32 module’s SPI flash interface |
| GPIO1 and GPIO3 | Use with caution | Used by UART0 for USB programming and serial debugging |
| GPIO0 | Use with caution | Important boot-mode strapping pin; LOW during reset enters download mode |
| GPIO2 | Use with caution | Boot-related strapping pin and may be used by onboard hardware on some boards |
| GPIO5 | Use with caution | Strapping pin and commonly assigned as SPI chip-select |
| GPIO12 | Use with caution | Strapping pin; boot-time state can affect flash-related configuration |
| GPIO15 | Use with caution | Strapping pin with boot-related functions |
| GPIO34–GPIO39 | Input only | Cannot be used as digital outputs |
For reliable projects, avoid attaching circuits that strongly force strapping pins HIGH or LOW during reset. After the ESP32 completes startup, these pins can usually function as normal GPIOs. Espressif identifies GPIO0, GPIO2, GPIO5, MTDI (GPIO12), and MTDO (GPIO15) as strapping pins on the classic ESP32.
ESP32 DevKit V1 Power Supply Options
The ESP32 DevKit V1 can be powered in several ways depending on the application. Regardless of the method used, the ESP32 itself operates at 3.3 V, and its GPIO pins should not be exposed to 5 V logic signals.
1. Powering Through USB
The simplest method is to connect the board to a computer, USB charger, or regulated USB power supply. The USB port supplies 5 V to the board, and the onboard voltage regulator generates the 3.3 V required by the ESP32.
This method is convenient for programming, testing, and development.
2. Powering Through the VIN or 5V Pin
Most common ESP32 DevKit V1 boards can be powered with a regulated 5 V supply through the VIN or 5V pin. This voltage passes through the onboard power circuitry and regulator to supply the ESP32.
The exact VIN label and power path can differ between manufacturers, so always check the PCB marking or board documentation before applying external power.
3. Supplying Regulated 3.3 V
A regulated 3.3 V power supply can be used with the 3V3 pin on appropriate board designs. This method bypasses the onboard 5 V-to-3.3 V regulation stage and therefore requires a clean, stable 3.3 V supply capable of handling ESP32 current peaks, particularly when Wi-Fi is transmitting.
Important: Do not connect an unregulated 5 V supply directly to the ESP32’s 3V3 pin.
Power Supply Considerations
- Use a stable power supply capable of handling Wi-Fi current peaks.
- Connect the ground of all external circuits to ESP32 GND.
- Do not exceed the safe voltage rating of the 3V3 rail.
- Do not connect 5 V signals directly to ESP32 GPIO pins.
- When powering motors or relays, use a suitable separate supply and connect the grounds correctly.
How to Program ESP32
The ESP32 can be programmed using several development frameworks, with the most popular options being Arduino IDE, PlatformIO, and Espressif’s official ESP-IDF framework.
Programming with Arduino IDE
- Install the latest version of the Arduino IDE.
- Add the Espressif ESP32 board package using the Arduino Boards Manager.
- Install the required USB-to-UART driver if your board is not detected automatically.
- Connect the ESP32 to the computer using a data-capable USB cable.
- Select the appropriate ESP32 board and serial port.
- Write or open an Arduino sketch and upload it to the board.
The board’s USB-to-UART converter communicates with the ESP32 bootloader through UART0, which normally uses GPIO1 and GPIO3. The onboard automatic reset circuitry controls the reset and boot process during normal uploads.
If an ESP32 board displays a message such as Connecting... and fails to upload, external hardware connected to boot-related pins may be interfering with the startup sequence. On some boards, holding the BOOT button during the initial connection process may also be required.
ESP32 DevKit V1 vs ESP32 DevKitC
ESP32 DevKit V1 and ESP32 DevKitC are both development boards based on the ESP32 family, but they should not be considered identical boards.
ESP32 DevKit V1 commonly refers to a widely available third-party, DOIT-style development board. The exact board layout and onboard components may vary between manufacturers. The popular version usually has a compact 30-pin layout.
ESP32 DevKitC is Espressif’s official development-board design and is available in different revisions and module configurations. Its design, pinout, USB-to-UART interface, and supported ESP32 module depend on the specific DevKitC variant.
The most important practical difference is that DevKit V1 is not a single universally standardized hardware design. Always check the exact board layout and module before using a pinout diagram or connecting external hardware.
ESP32 DevKit V1 Pricing
The price of the ESP32 DevKit V1 is generally low compared with its processing power and integrated wireless connectivity. However, the price varies depending on the manufacturer, flash memory, USB-to-UART chip, pin count, seller, and whether the board is an original branded product or a compatible third-party version.
In India, common ESP32 DevKit V1-compatible boards are typically available in the approximate range of $4 to $8 USD (₹300 to ₹700) for a single board, while official or specialized development boards can cost more. Current retail listings vary considerably by seller and configuration, so the price should be treated as an approximate market range rather than a fixed value.
Before purchasing an ESP32 DevKit V1, check the following specifications:
- Number of header pins: 30-pin, 36-pin, or 38-pin
- ESP32 module type
- Flash memory capacity
- USB-to-UART converter type
- USB connector type
- Availability of the EN and BOOT buttons
- Header pins supplied or pre-soldered
For most beginner, IoT, and electronics projects, a standard ESP32 DevKit V1-compatible board offers excellent value because Wi-Fi, Bluetooth, analog functions, multiple communication interfaces, and a powerful 32-bit processor are integrated into a low-cost development platform. The ESP32 family itself supports 2.4 GHz Wi-Fi, Bluetooth Classic/BLE, flexible GPIO functions, analog peripherals, multiple communication interfaces, and low-power modes.
Advantages of ESP32
The ESP32 is widely used in IoT and embedded system projects because it combines wireless connectivity, processing power, flexible peripherals, and low power consumption in a single, affordable platform.
- Built-in Wi-Fi: The ESP32 supports 2.4 GHz Wi-Fi, allowing it to connect directly to routers, access points, cloud platforms, and local networks without requiring a separate Wi-Fi module.
- Bluetooth and BLE Support: The classic ESP32 supports Bluetooth Classic and Bluetooth Low Energy (BLE), making it suitable for wireless communication with smartphones, sensors, and other Bluetooth devices.
- Powerful 32-Bit Processor: The original ESP32 includes a high-performance 32-bit processor capable of operating at up to 240 MHz, providing significantly greater processing capability than many basic 8-bit microcontroller boards.
- Large Number of GPIO Functions: Many GPIO pins support multiple functions, including digital input/output, ADC, DAC, PWM, capacitive touch, UART, SPI, I2C, and RTC operation.
- Flexible Pin Routing: The ESP32’s GPIO matrix allows many peripheral signals to be assigned to different compatible GPIO pins, providing greater flexibility when designing circuits.
- Analog and Digital Interfaces: The ESP32 includes 12-bit ADC channels, two 8-bit DAC channels on the classic ESP32, capacitive touch sensors, and several serial communication interfaces.
- Low-Power Modes: Features such as light sleep and deep sleep make the ESP32 suitable for battery-powered applications. RTC-capable GPIOs can also be used for selected wake-up functions.
- Multiple Programming Options: ESP32 boards can be programmed using Arduino IDE, ESP-IDF, PlatformIO, and other compatible development environments.
- Large Community and Library Support: The ESP32 has extensive community support, tutorials, libraries, and example projects, making it relatively easy to develop prototypes.
- Low Cost: Despite offering Wi-Fi, Bluetooth, a powerful processor, and numerous peripherals, ESP32 DevKit boards are generally inexpensive and widely available.
Limitations of ESP32
Although the ESP32 is a highly capable microcontroller platform, several hardware and design limitations must be considered when developing a project.
- 3.3 V Logic Only: ESP32 GPIO pins operate at 3.3 V logic and are generally not 5 V tolerant. A voltage divider or level-shifting circuit may be required when connecting 5 V devices.
- Not All GPIOs Are Freely Usable: Some GPIOs are input-only, while others are used for boot configuration, serial programming, or internal flash communication.
- Input-Only GPIO Pins: GPIO34, GPIO35, GPIO36, and GPIO39 on the classic ESP32 cannot be used as output pins.
- ADC2 and Wi-Fi Limitation: On the classic ESP32, ADC2 is shared with the Wi-Fi subsystem, which can make ADC2 unsuitable for normal analog measurements while Wi-Fi is active.
- ADC Accuracy: The ESP32 ADC is suitable for many sensor applications, but its accuracy and linearity may be insufficient for precision measurements without calibration and proper analog signal conditioning.
- Boot Strapping Restrictions: GPIO0, GPIO2, GPIO5, GPIO12, and GPIO15 are associated with boot strapping functions. Incorrect external connections can interfere with normal startup.
- Power Supply Requirements: Wi-Fi and Bluetooth transmission can produce relatively high current peaks. An unstable or weak power supply can cause resets, brownouts, or unreliable operation.
- No 5 V GPIO Output: External 5 V relays, sensors, and logic devices may require a transistor driver or level-shifting circuit.
- Board Variations: Different ESP32 DevKit V1 boards may have different pin counts, USB-to-UART converters, flash sizes, voltage regulators, and PCB layouts. Therefore, the exact board should always be identified before following a pinout diagram.
Applications of ESP32
The combination of wireless communication, flexible GPIO, processing power, and low cost makes the ESP32 suitable for a wide range of electronics and IoT applications.
- Internet of Things (IoT): ESP32 is commonly used to connect sensors and devices to local networks and cloud services. Typical applications include environmental monitoring, remote switching, smart meters, and wireless sensor nodes.
- Home Automation: The ESP32 can control lights, fans, relays, smart plugs, door locks, and other home appliances through Wi-Fi, Bluetooth, or automation platforms.
- Wireless Sensor Systems: Temperature, humidity, pressure, air quality, light, soil moisture, and motion sensors can be connected to the ESP32 and their readings transmitted wirelessly.
- Robotics: Its PWM capability, communication interfaces, and processing power make the ESP32 suitable for robotic vehicles, motor control, servo control, sensor interfacing, and wireless robot operation.
- Bluetooth and BLE Projects: The ESP32 can communicate with smartphones, Bluetooth peripherals, BLE sensors, and other wireless devices, making it useful for beacons, wireless controllers, and mobile-connected projects.
- Data Logging and Remote Monitoring: The ESP32 can collect data from analog or digital sensors and store or transmit it. Its deep-sleep functionality also makes it suitable for low-power remote monitoring systems.
- Smart Agriculture: ESP32-based systems can monitor soil moisture, temperature, humidity, and water levels while controlling pumps, irrigation systems, and environmental equipment.
- Industrial Monitoring: With appropriate interface circuits, the ESP32 can communicate with industrial sensors and protocols such as Modbus RTU using an external RS485 transceiver.
- Wearable and Portable Devices: Its compact size and wireless capabilities make the ESP32 suitable for portable electronics, wireless controllers, tracking devices, and other battery-powered projects.
- Educational and Prototyping Projects: The ESP32 DevKit V1 is widely used for learning embedded programming, electronics, wireless communication, and IoT development. Its breadboard-friendly design and software support make rapid prototyping easier.
Conclusion
The ESP32 DevKit V1 is a versatile and cost-effective development board based on the classic ESP32 microcontroller. It combines Wi-Fi, Bluetooth, a 32-bit processor, programmable GPIOs, analog interfaces, PWM, capacitive touch sensing, and multiple communication peripherals on a compact board.
Understanding the pin configuration is important. The board is available in 30-pin, 36-pin, and 38-pin layouts. The ESP32 capabilities are largely the same; the main difference is the number of signals exposed through the header pins.
For general use, GPIO4, GPIO13, GPIO14, GPIO16–GPIO19, GPIO21–GPIO23, GPIO25–GPIO27, and GPIO32–GPIO33 are among the more convenient pins. GPIO34–GPIO39 are input-only, while GPIO0, GPIO2, GPIO5, GPIO12, and GPIO15 require attention because of their boot-related functions.
Always verify the GPIO number and PCB label before connecting external hardware. Avoid GPIO6–GPIO11, as they are connected to the internal flash interface, and remember that ESP32 GPIOs use 3.3 V logic.
With proper pin selection, the ESP32 DevKit V1 is ideal for IoT, home automation, wireless sensors, robotics, Bluetooth, industrial monitoring, and embedded-system prototyping.
Frequently Asked Questions (FAQ)
1. What is ESP32 DevKit V1?
The ESP32 DevKit V1 is a development board based on the ESP32 microcontroller. It provides built-in Wi-Fi, Bluetooth, multiple GPIO pins, ADC, DAC, PWM, capacitive touch sensing, UART, I2C, SPI, and other peripherals. It is widely used for IoT, home automation, robotics, and embedded projects.
2. How many pins does the ESP32 DevKit V1 have?
The number of physical header pins depends on the board version. Common versions have 30, 36, or 38 header pins. The popular DOIT-style ESP32 DevKit V1 commonly uses a 30-pin configuration, while larger versions expose additional pins.
3. What is the difference between the 30-pin, 36-pin, and 38-pin ESP32 boards?
The ESP32 chip is not different; the development board exposes a different number of ESP32 signals through its physical headers. The 38-pin version generally provides access to more pins, while the 30-pin version has a more compact layout. The exact pinout and onboard components can vary between manufacturers.
4. Which ESP32 pins are safe to use?
GPIO4, GPIO13, GPIO14, GPIO16, GPIO17, GPIO18, GPIO19, GPIO21, GPIO22, GPIO23, GPIO25, GPIO26, GPIO27, GPIO32, and GPIO33 are generally convenient choices for most projects. GPIO34, GPIO35, GPIO36, and GPIO39 are also useful, but they are input-only pins.
5. Which ESP32 pins should be avoided?
GPIO6 to GPIO11 should generally be avoided on standard ESP32-WROOM boards because they are normally connected to the internal SPI flash. GPIO0, GPIO2, GPIO5, GPIO12, and GPIO15 are strapping pins and should be used carefully because external circuits can affect the boot process.
6. Can ESP32 GPIO pins handle 5 V?
No. ESP32 GPIO operates at 3.3 V logic and is generally not 5 V tolerant. Connecting a 5 V signal directly to an ESP32 GPIO can damage the microcontroller. Use a voltage divider or logic-level converter when connecting 5 V devices.
7. How can I power the ESP32 DevKit V1?
The board can typically be powered through the USB port, a regulated 5 V supply connected to the VIN or 5V pin, or a regulated 3.3 V supply connected to the 3V3 pin. The exact power arrangement can vary between board versions, so always check the markings and specifications of the specific board.
8. Can I use both USB power and an external power supply?
This depends on the design of the specific ESP32 DevKit V1 board. Although many boards include power circuitry that prevents problems under normal use, the safest approach is to verify the board’s power schematic before connecting multiple power sources simultaneously.
9. What are GPIO34, GPIO35, GPIO36, and GPIO39 used for?
These are input-only GPIO pins. They can be used for reading digital signals and analog voltages, but they cannot drive LEDs, relays, or other output devices. They are useful for sensors, switches, and analog measurements.
10. Which pins should I use for analog input?
For projects using Wi-Fi, ADC1 pins are generally the preferred choice because ADC2 is shared with the Wi-Fi subsystem on the classic ESP32. Common ADC1 pins include GPIO32, GPIO33, GPIO34, GPIO35, GPIO36, and GPIO39.
11. Why does the ESP32 have two ADC groups?
The classic ESP32 includes ADC1 and ADC2. ADC1 is generally more convenient for analog measurements in Wi-Fi projects, while ADC2 is shared with the Wi-Fi subsystem. Therefore, ADC2 readings may not be available normally while Wi-Fi is active.
12. Which ESP32 pins provide DAC output?
The classic ESP32 has two 8-bit DAC outputs. GPIO25 provides DAC1, while GPIO26 provides DAC2. These pins can generate variable analog voltage levels for applications such as waveform generation and simple analog control.
13. Which pins are used for I2C communication?
The commonly used default I2C pins are GPIO21 for SDA and GPIO22 for SCL. However, the ESP32’s flexible pin routing allows I2C communication to be assigned to other compatible GPIO pins when necessary.
14. Which pins are used for SPI communication?
A commonly used SPI configuration uses GPIO23 for MOSI, GPIO19 for MISO, GPIO18 for SCK, and GPIO5 for CS. The ESP32 also supports other SPI configurations, and SPI signals can often be reassigned to different GPIO pins.
15. Which pins are used for UART?
UART0 commonly uses GPIO1 for TX and GPIO3 for RX and is normally used for programming and serial debugging. UART2 commonly uses GPIO17 for TX and GPIO16 for RX on many ESP32 DevKit V1 boards, making it convenient for external serial devices.
16. Can all ESP32 GPIO pins generate PWM?
Most output-capable GPIO pins can be assigned PWM output using the ESP32’s LED PWM hardware. GPIO34, GPIO35, GPIO36, and GPIO39 cannot generate PWM because they are input-only pins.
17. Can I use GPIO0, GPIO2, GPIO5, GPIO12, and GPIO15 as normal GPIO pins?
Yes, these pins can be used as GPIO after startup, but they are also boot strapping pins. External circuits connected to them should not force an incorrect voltage level during reset, otherwise the ESP32 may fail to boot or enter programming mode.
18. Why is my ESP32 not uploading code?
Common causes include using a charge-only USB cable, selecting the wrong serial port or board, a missing USB-to-UART driver, an unstable power supply, or external hardware interfering with boot-related pins. On some boards, holding the BOOT button during the initial connection process can help.
19. Can ESP32 wake up from deep sleep?
Yes. The ESP32 supports deep-sleep wake-up using timer events, touch sensing, and selected RTC GPIO pins. External wake-up modes such as EXT0 and EXT1 can be used with RTC-capable pins for low-power battery-operated projects.
20. What is the difference between ESP32 DevKit V1 and ESP32 DevKitC?
ESP32 DevKit V1 commonly refers to third-party or DOIT-style boards with varying layouts and components. ESP32 DevKitC refers to an official Espressif development-board design. The exact pinout and hardware configuration should always be checked for the specific board version.
21. What is the price of ESP32 DevKit V1?
The price depends on the manufacturer, pin count, flash configuration, USB-to-UART chip, and seller. Compatible ESP32 DevKit V1 boards are generally inexpensive and commonly available in the low-cost microcontroller development-board category.
22. Is ESP32 DevKit V1 suitable for beginners?
Yes. The board is suitable for beginners who want to learn embedded programming, Wi-Fi, Bluetooth, IoT, sensors, and electronics. It is widely supported by the Arduino IDE and has extensive tutorials, libraries, and example projects.
ESP32 Home Automation Project by Google Assistant, Blynk & IFTTT
Interfacing DHT11 + Soil Moisture Sensor with Arduino & ESP32
IOT Based Air Quality Monitoring System with ESP32 & BME680 Sensor
BME680 and ESP8266 Based Indoor Air Quality Monitoring System



