

The ESP32 Devkit V4 is a development board featuring the ESP32 microcontroller, which includes Wi-Fi and Bluetooth capabilities. This versatile board is designed for IoT and embedded applications, offering multiple GPIO pins and a range of peripherals. It is widely used in projects that require wireless communication, sensor integration, and real-time data processing.








| Specification | Value |
|---|---|
| Microcontroller | ESP32 |
| Operating Voltage | 3.3V |
| Input Voltage | 5V (via USB) or 7-12V (via Vin) |
| Digital I/O Pins | 34 |
| Analog Input Pins | 16 (12-bit ADC) |
| Analog Output Pins | 2 (8-bit DAC) |
| Flash Memory | 4MB |
| SRAM | 520KB |
| Wi-Fi | 802.11 b/g/n |
| Bluetooth | v4.2 BR/EDR and BLE |
| Clock Speed | 240 MHz (dual-core) |
| Communication | UART, SPI, I2C, I2S, CAN, PWM |
| Operating Temperature | -40°C to 125°C |
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | EN | Enable (Active High) |
| 2 | IO23 | GPIO23, HSPI MOSI |
| 3 | IO22 | GPIO22, I2C SCL |
| 4 | TXD0 | UART0 Transmit |
| 5 | RXD0 | UART0 Receive |
| 6 | IO21 | GPIO21, I2C SDA |
| 7 | GND | Ground |
| 8 | IO19 | GPIO19, VSPI MISO |
| 9 | IO18 | GPIO18, VSPI SCK |
| 10 | IO5 | GPIO5, VSPI CS0 |
| 11 | IO17 | GPIO17, UART2 TXD |
| 12 | IO16 | GPIO16, UART2 RXD |
| 13 | IO4 | GPIO4, HSPI CS0 |
| 14 | IO0 | GPIO0, Boot Mode Select |
| 15 | IO2 | GPIO2, ADC2_CH2 |
| 16 | IO15 | GPIO15, HSPI SCK |
| 17 | IO13 | GPIO13, HSPI MISO |
| 18 | IO12 | GPIO12, HSPI CS0 |
| 19 | IO14 | GPIO14, HSPI CLK |
| 20 | IO27 | GPIO27, ADC2_CH7 |
| 21 | IO26 | GPIO26, ADC2_CH9 |
| 22 | IO25 | GPIO25, DAC1 |
| 23 | IO33 | GPIO33, ADC1_CH5 |
| 24 | IO32 | GPIO32, ADC1_CH4 |
| 25 | IO35 | GPIO35, ADC1_CH7 |
| 26 | IO34 | GPIO34, ADC1_CH6 |
| 27 | IO39 | GPIO39, ADC1_CH3 |
| 28 | IO36 | GPIO36, ADC1_CH0 |
| 29 | IO3 | GPIO3, UART0 RXD |
| 30 | IO1 | GPIO1, UART0 TXD |
| 31 | IO9 | GPIO9, SD2 |
| 32 | IO10 | GPIO10, SD3 |
| 33 | IO11 | GPIO11, CMD |
| 34 | IO6 | GPIO6, CLK |
| 35 | IO7 | GPIO7, SD0 |
| 36 | IO8 | GPIO8, SD1 |
Powering the ESP32 Devkit V4:
Programming the ESP32:
Connecting Peripherals:
Here is a simple example code to connect the ESP32 Devkit V4 to a Wi-Fi network and print the IP address:
#include <WiFi.h>
// Replace with your network credentials
const char* ssid = "your_SSID";
const char* password = "your_PASSWORD";
void setup() {
Serial.begin(115200);
delay(10);
// Connect to Wi-Fi network
Serial.println();
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected.");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// Put your main code here, to run repeatedly
}
ESP32 Not Connecting to Wi-Fi:
Serial Monitor Not Displaying Output:
Board Not Detected by Computer:
Upload Fails with Timeout Error:
By following this documentation, users should be able to effectively utilize the ESP32 Devkit V4 in their projects, whether they are beginners or experienced developers.