meta data for this page
  •  

This is an old revision of the document!


lamaPLC: ESP32 / ESP8266

The ESP32 can operate as a standalone system or as a slave device to a host MCU, reducing communication stack overhead on the main application processor. It can interface with other systems to provide Wi-Fi and Bluetooth functionality via its SPI/SDIO or I²C/UART interfaces.

Different between ESP32 and ESP8266

The main differences are that the ESP32 has significantly more processing power (a dual-core CPU), more memory, and Bluetooth, while the ESP8266 is older, single-core, and Wi-Fi-only. The ESP32 is better for complex projects because of its improved performance and peripheral features, while the ESP8266 is a more affordable choice for simple IoT applications.

FeatureESP32ESP8266
ProcessorDual-core LX6/LX7, up to 240 MHzSingle-core L106, up to 160 MHz
ConnectivityWi-Fi and Bluetooth (BLE)Wi-Fi only
RAMUp to 520KB160KB SRAM
GPIO PinsUp to 3417
ADC12-bit ADC10-bit ADC
PeripheralsMore advanced peripherals like Ethernet, USB, touch sensors, CAN, and hall sensorBasic peripherals like SPI, I2C, and UART
CostHigher price pointLower price point

Types of ESP32

Type of ESP32CPUMax clock speedConnectivityRAMGPIOADCSecurityPeripherials/Note
ESP32 (original)Dual-core LX6/LX7Up to 240 MHzWi-Fi and Bluetooth (BLE)Up to 520KBUp to 3412-bit ADCSecure Boot, Flash Encryption, HmacMore advanced peripherals like Ethernet, USB, touch sensors, CAN, and hall sensor
ESP32-C2Single-core RISC-V120 MHzWi-Fi 2.4 GHz, Bluetooth 5 (LE)272 KB SRAM
576 KB ROM
2012-bit ADCSecure Boot, Flash EncryptionSPI, UART, I2C, LED PWM controller, General DMA controller (GDMA), SAR ADC
ESP32-C3Single-core RISC-V160 MHzWi-Fi 2.4 GHz, Bluetooth 5 (LE)400 KB SRAM
384 KB ROM
2212-bit ADCSecure Boot, Flash EncryptionCost-sensitive applications, Pin compatible with ESP8266
ESP32-C6Single-core RISC-V160 MHzWi-Fi 6 2.4 GHz, Bluetooth 5.3 (LE), Thread, Zigbee, Matter512 KB SRAM
320 KB ROM
30 (QFN40) or 22 (QFN32)12-bit ADCRSA-3072 supportMatter Gateways, Thread Border Routers or Zigbee Matter Bridges, SPI, UART, I2C, I2S, RMT, TWAI, PWM, SDIO, Motor Control PWM
ESP32-S2Single-core Xtensa LX7240 MHzWi-Fi 2.4 GHz, USB OTG320KB SRAM
128KB ROM
432 × 13-bit SAR ADCRSA-3072 supportCamera Interface, fit for lower-power applications like secure IoT
ESP32-S3Dual-core Xtensa LX7240 MHzWi-Fi 2.4 GHz, Bluetooth 5 (LE), USB OTG512KB SRAM
384KB ROM
452 × 12-bit SAR ADCRSA-4096 supportCamera Interface, Accelerate machine learning applications