ESP32 is a family of chips from Espressif with Wi-Fi, and usually Bluetooth, built in. They're sold on boards from Espressif and dozens of other companies, which keeps them cheap. They're the usual choice for smart-home sensors and anything that talks to the internet, and you can program them with Arduino C++, MicroPython or Espressif's own ESP-IDF.
The main models compared
| CPU | Max clock | SRAM | GPIO | Radio | |
|---|---|---|---|---|---|
| ESP32 (original) | Dual Xtensa LX6 | 240 MHz | 520 KB | 34 | Wi-Fi 4, Bluetooth Classic and LE |
| ESP32-S3 | Dual Xtensa LX7 | 240 MHz | 512 KB | 45 | Wi-Fi 4, Bluetooth LE |
| ESP32-C3 | Single RISC-V | 160 MHz | 400 KB | 22 | Wi-Fi 4, Bluetooth LE |
| ESP32-C6 | RISC-V | 160 MHz | 512 KB | 30 | Wi-Fi 6, Bluetooth LE, 802.15.4 (Thread, Zigbee) |
| ESP32-C5 | RISC-V | 240 MHz | 384 KB | 29 | Dual-band Wi-Fi 6, Bluetooth LE, 802.15.4 |
| ESP32-P4 | Dual RISC-V | 400 MHz | 768 KB | 55 | None: pair it with a wireless chip |
Figures from the manufacturer's documentation, listed under Sources.
Which one should you get?
For your first ESP32, get a board with the original ESP32 or an ESP32-S3, from Espressif or a well-known maker, because they have the most tutorials. The S3 adds native USB and is the pick for camera and machine-learning projects. The C3 is a cheap, simple option for small sensors. The C6 is the one for Thread and Matter smart-home devices. Board layouts vary a lot between makers, so always use the pin diagram for the exact board you bought.
Things that catch people out
- Some pins are off-limits. On the original ESP32, GPIO6 to 11 belong to the flash memory, and five strapping pins control how the chip boots. Our ESP32 pinout lists the safe ones.
- ADC2 stops working with Wi-Fi on on the original ESP32. Put analogue sensors on ADC1 pins.
- Brownouts during Wi-Fi. Transmitting draws short bursts of current, and a weak USB cable or regulator makes the board reset. Espressif asks for a supply that can deliver at least 500 mA.
- 3.3 V logic. Don't connect 5 V signals directly.