Component guide · Beginner · 5 min read
ESP32 Guide

Pinout, Variants and Which Board to Choose
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
The ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards. The classic ESP32 has a dual-core 240 MHz processor and 520 KB of RAM. Its pins are not 5 V tolerant, and some GPIOs are reserved, so check the safe-pin list before wiring.
Key specs at a glance
- CPU
- Dual-core Xtensa LX6, up to 240 MHz (classic ESP32)
- RAM
- 520 KB SRAM
- Flash
- Typically 4 MB on DevKit boards
- Wireless
- Wi-Fi 802.11 b/g/n (2.4 GHz) + Bluetooth 4.2 / BLE
- Logic level
- 3.3 V, not 5 V tolerant
- ADC
- 12-bit, 18 channels (ADC1 and ADC2)
- Other
- 2 DAC outputs, 10 touch pins, PWM on most GPIOs
- Supply
- 5 V via USB/VIN, regulated to 3.3 V; peaks above 250 mA during Wi-Fi transmit
What is an ESP32?
The ESP32 is a system-on-chip that combines a fast processor with a Wi-Fi and Bluetooth radio. A development board, such as the common 30-pin or 38-pin ESP32 DevKit, adds a USB-to-serial chip, a 3.3 V regulator and pin headers so you can program it from the Arduino IDE, MicroPython or Espressif's own ESP-IDF.
Because the radio is built in, the ESP32 is the default choice when a project needs to send sensor readings to a phone, serve a web page, or talk to Home Assistant over MQTT.
ESP32 variants compared: classic, S3, C3, C6 and ESP8266
"ESP32" now names a family. Pick by the features you need:
| Chip | CPU | Wireless | Choose it for |
|---|---|---|---|
| ESP32 (classic) | 2x LX6, 240 MHz | Wi-Fi 4, BT Classic + BLE 4.2 | Most tutorials, Bluetooth audio/serial, DAC output |
| ESP32-S3 | 2x LX7, 240 MHz | Wi-Fi 4, BLE 5 | Cameras, native USB, AI/voice, more GPIO |
| ESP32-C3 | 1x RISC-V, 160 MHz | Wi-Fi 4, BLE 5 | Small, cheap boards such as the C3 SuperMini |
| ESP32-C6 | 1x RISC-V, 160 MHz | Wi-Fi 6, BLE 5, Zigbee/Thread | Matter and Zigbee smart-home devices |
| ESP8266 | 1x L106, 80/160 MHz | Wi-Fi 4 only | Legacy projects; few GPIO, one ADC |
- ESP32 (classic)
- CPU:
- 2x LX6, 240 MHz
- Wireless:
- Wi-Fi 4, BT Classic + BLE 4.2
- Choose it for:
- Most tutorials, Bluetooth audio/serial, DAC output
- ESP32-S3
- CPU:
- 2x LX7, 240 MHz
- Wireless:
- Wi-Fi 4, BLE 5
- Choose it for:
- Cameras, native USB, AI/voice, more GPIO
- ESP32-C3
- CPU:
- 1x RISC-V, 160 MHz
- Wireless:
- Wi-Fi 4, BLE 5
- Choose it for:
- Small, cheap boards such as the C3 SuperMini
- ESP32-C6
- CPU:
- 1x RISC-V, 160 MHz
- Wireless:
- Wi-Fi 6, BLE 5, Zigbee/Thread
- Choose it for:
- Matter and Zigbee smart-home devices
- ESP8266
- CPU:
- 1x L106, 80/160 MHz
- Wireless:
- Wi-Fi 4 only
- Choose it for:
- Legacy projects; few GPIO, one ADC
Which ESP32 pins are safe to use?
This is the question that trips up most first ESP32 projects. On the classic ESP32 DevKit:
GPIO 4, 13, 16 to 19, 21 to 23, 25 to 27, 32, 33.
GPIO 34, 35, 36 (VP), 39 (VN). Fine for sensors and buttons with external resistors, never for outputs.
GPIO 6 to 11. They connect to the onboard flash chip.
GPIO 0, 2, 5, 12, 15. Their state at power-up selects boot mode. A pull-up or pull-down here can stop the board from booting or uploading.
cannot read analog values while Wi-Fi is on. Use ADC1 (GPIO 32 to 39) for analog sensors in Wi-Fi projects.
Default buses: I2C on GPIO 21 (SDA) and 22 (SCL); VSPI on 23 (MOSI), 19 (MISO), 18 (SCK), 5 (CS). Both can be remapped to almost any pin.
Set up the ESP32 in the Arduino IDE
- 1In File > Preferences, add Espressif's board manager URL (listed in the arduino-esp32 documentation).
- 2In Boards Manager, install esp32 by Espressif Systems.
- 3Select your board, for example ESP32 Dev Module, and the COM port. Boards with a CP2102 or CH340 chip may need a USB driver.
- 4If the upload stalls at "Connecting...", hold the BOOT button until it starts.
This sketch connects to Wi-Fi and prints the board's IP address:
#include <WiFi.h>
const char* ssid = "YourNetwork";
const char* pass = "YourPassword";
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.print("\nConnected, IP: ");
Serial.println(WiFi.localIP());
}
void loop() {}Powering an ESP32
Supply 5 V on the USB port or VIN pin, or a regulated 3.3 V on the 3V3 pin. The radio draws short current spikes above 250 mA, so a weak supply or a thin USB cable causes random resets and "brownout detector was triggered" messages. Use a supply rated for at least 500 mA and a short, good-quality cable.
For battery power, a single Li-ion cell (3.0 to 4.2 V) needs a low-dropout regulator. The AMS1117 found on many boards needs over 4.3 V in to hold 3.3 V, so pair a cell with an LDO such as the ME6211 or HT7333, and use deep sleep to stretch battery life from hours to months.
Using 5 V sensors and modules with an ESP32
The ESP32's pins tolerate 3.6 V at most. A 5 V output, such as the echo pin of an HC-SR04, needs a voltage divider or a logic level shifter. Many 5 V input devices, such as relay modules, I2C LCD backpacks and WS2812B strips, may or may not recognise 3.3 V as "high"; the linked guides explain each one.
Try it: ADC resolution calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Using GPIO 6 to 11, which are wired to the flash chip and crash the board.
- Reading analog sensors on ADC2 pins with Wi-Fi turned on; the readings fail.
- Feeding 5 V signals straight into a GPIO.
- Wiring a pull-up to GPIO 12, which can force the wrong flash voltage and stop booting.
- Expecting a perfectly linear ADC; the ESP32's ADC is non-linear near 0 V and 3.3 V, so calibrate or use an external ADC such as the ADS1115 for precise measurements.
Frequently asked questions
Is the ESP32 better than an Arduino Uno?
For connected projects, yes: it is faster, has far more memory and includes Wi-Fi and Bluetooth for a similar price. The Uno is simpler for learning and works directly with 5 V modules.
Is ESP32 5 V tolerant?
No. The GPIO pins accept a maximum of 3.6 V. Use a voltage divider or level shifter for 5 V signals. The board itself can be powered from 5 V through USB or VIN.
ESP32 vs ESP8266: which should I choose?
Choose the ESP32 for new projects. It has two cores, Bluetooth, more GPIO and more ADC channels for a small price difference. The ESP8266 suits existing designs and very simple Wi-Fi switches.
Can I program an ESP32 with MicroPython?
Yes. Flash the MicroPython firmware from micropython.org with esptool or Thonny, then write Python scripts directly on the board.
Why does my ESP32 keep resetting?
The most common cause is an underpowered supply or a poor USB cable that cannot handle Wi-Fi current spikes. Other causes are a strapping pin pulled the wrong way at boot, or a watchdog reset from a loop that never yields.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 249 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- ESP32 Series Datasheet (Espressif Systems)
- ESP32 Technical Reference Manual (Espressif Systems)
- arduino-esp32 documentation (Espressif Systems)
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.



