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.
| Feature | ESP32 | ESP8266 |
|---|---|---|
| Processor | Dual-core LX6/LX7, up to 240 MHz | Single-core L106, up to 160 MHz |
| Connectivity | Wi-Fi and Bluetooth (BLE) | Wi-Fi only |
| RAM | Up to 520KB | 160KB SRAM |
| GPIO Pins | Up to 34 | 17 |
| ADC | 12-bit ADC | 10-bit ADC |
| Peripherals | More advanced peripherals like Ethernet, USB, touch sensors, CAN, and hall sensor | Basic peripherals like SPI, I2C, and UART |
| Cost | Higher price point | Lower price point |
| Feature | ESP32 | ESP32-C2 | ESP32-C3 |
|---|---|---|---|
| CPU | Dual-core Xtensa LX6 | Single-core RISC-V | Single-core RISC-V |
| Max Clock Speed | 240 MHz | 120 MHz | 160 MHz |
| Wi-Fi | Yes (2.4 GHz) | Yes (2.4 GHz) | Yes (2.4 GHz) |
| Bluetooth | Yes (v4.2 and 5.0) | Yes (v5.0) | Yes (v5.0) |
| SRAM | 520 KB | 272 KB | 400 KB |
| GPIO | 34 (with 10 touch sensors) | 20 | 22 (no touch sensors) |
| Security | Secure Boot, Flash Encryption, Hmac | Secure Boot, Flash Encryption | Secure Boot, Flash Encryption |
| Price | Higher | Lowest | Lower |
| Applications | High-performance applications | Simple applications | Cost-sensitive applications |