

The ESP32 is a low-cost, low-power system on a chip (SoC) with integrated Wi-Fi and dual-mode Bluetooth. It is widely used for Internet of Things (IoT) applications due to its versatility and robust feature set. The ESP32 is designed to be scalable and adaptive, providing a range of power and performance options. It is ideal for applications such as smart home devices, wearables, industrial automation, and more.








| Parameter | Value |
|---|---|
| CPU | Xtensa® Dual-Core 32-bit LX6 |
| Clock Speed | Up to 240 MHz |
| Flash Memory | 4 MB (varies by model) |
| SRAM | 520 KB |
| Wi-Fi | 802.11 b/g/n |
| Bluetooth | v4.2 BR/EDR and BLE |
| Operating Voltage | 2.2V to 3.6V |
| GPIO Pins | 34 |
| ADC Channels | 18 (12-bit) |
| DAC Channels | 2 (8-bit) |
| Communication | UART, SPI, I2C, I2S, CAN, Ethernet, PWM |
| Power Consumption | Ultra-low power (varies by mode) |
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | EN | Enable (Active High) |
| 2 | GPIO0 | General Purpose I/O |
| 3 | GPIO1 | General Purpose I/O |
| 4 | GPIO2 | General Purpose I/O |
| 5 | GPIO3 | General Purpose I/O |
| 6 | GPIO4 | General Purpose I/O |
| 7 | GPIO5 | General Purpose I/O |
| 8 | GPIO6 | General Purpose I/O |
| 9 | GPIO7 | General Purpose I/O |
| 10 | GPIO8 | General Purpose I/O |
| 11 | GPIO9 | General Purpose I/O |
| 12 | GPIO10 | General Purpose I/O |
| 13 | GPIO11 | General Purpose I/O |
| 14 | GPIO12 | General Purpose I/O |
| 15 | GPIO13 | General Purpose I/O |
| 16 | GPIO14 | General Purpose I/O |
| 17 | GPIO15 | General Purpose I/O |
| 18 | GPIO16 | General Purpose I/O |
| 19 | GPIO17 | General Purpose I/O |
| 20 | GPIO18 | General Purpose I/O |
| 21 | GPIO19 | General Purpose I/O |
| 22 | GPIO20 | General Purpose I/O |
| 23 | GPIO21 | General Purpose I/O |
| 24 | GPIO22 | General Purpose I/O |
| 25 | GPIO23 | General Purpose I/O |
| 26 | GPIO24 | General Purpose I/O |
| 27 | GPIO25 | General Purpose I/O |
| 28 | GPIO26 | General Purpose I/O |
| 29 | GPIO27 | General Purpose I/O |
| 30 | GPIO28 | General Purpose I/O |
| 31 | GPIO29 | General Purpose I/O |
| 32 | GPIO30 | General Purpose I/O |
| 33 | GPIO31 | General Purpose I/O |
| 34 | GPIO32 | General Purpose I/O |
| 35 | GPIO33 | General Purpose I/O |
| 36 | GPIO34 | General Purpose I/O |
| 37 | GPIO35 | General Purpose I/O |
| 38 | GPIO36 | General Purpose I/O |
| 39 | GPIO37 | General Purpose I/O |
| 40 | GPIO38 | General Purpose I/O |
| 41 | GPIO39 | General Purpose I/O |
#include <WiFi.h>
// Replace with your network credentials
const char* ssid = "your_SSID";
const char* password = "your_PASSWORD";
void setup() {
Serial.begin(115200);
// Connect to Wi-Fi
WiFi.begin(ssid, password);
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to WiFi...");
}
Serial.println("Connected to WiFi");
}
void loop() {
// Put your main code here, to run repeatedly
}
By following this documentation, users can effectively utilize the ESP32 in their projects, leveraging its powerful features for a wide range of applications.