This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:iot-open:hardware2:esp32s [2023/11/05 11:53] – jpaduch | en:iot-open:hardware2:esp32s [2024/05/27 14:15] (current) – pczekalski | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======ESP32-Sx Family====== | ||
| + | {{: | ||
| + | ===== ESP32-S2 ===== | ||
| + | |||
| + | ==ESP32-S2 General Information== | ||
| + | The Espressif ESP32-S2 family is a series of low-power, single-core microcontrollers built on the Espressif IoT platform. They feature a highly integrated SoC (System on Chip) architecture, | ||
| + | For now, the ESP32-S2 series includes the following chips in mass production: | ||
| + | * ESP32-S2 (figure {{ref> | ||
| + | * ESP32-S2F (figure {{ref> | ||
| + | | ||
| + | <figure esp32_s2> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <figure esp32_s2f> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | == ESP32-S2 Architecture Overview == | ||
| + | Figure {{ref> | ||
| + | |||
| + | **Processors** | ||
| + | * **Main processor: | ||
| + | * **Cores**: 1 | ||
| + | * **Ultra low power coprocessor: | ||
| + | * **Cores**: 1 | ||
| + | **Wireless connectivity** | ||
| + | * **WiFi:** 802.11 b/ | ||
| + | |||
| + | **Memory: Internal memory** | ||
| + | * **ROM:** 128 kB (for booting and core functions), | ||
| + | * **SRAM:** 320 kB (for data and instruction), | ||
| + | * **RTC SRAM:** 16 kB (for data storage and main CPU during RTC Boot from the deep-sleep mode), | ||
| + | * **Embedded flash: | ||
| + | * 0 MB (ESP32-S2, ESP32-S2R2 chips), | ||
| + | * 2 MB (ESP32-S2FH2 chip), | ||
| + | * 4 MB (ESP32S2FH4, | ||
| + | * **Embedded PSRAM: | ||
| + | * 0 MB (ESP32-S2, ESP32-S2FH2, | ||
| + | * 2 MB (ESP32FN4R2, | ||
| + | |||
| + | **Peripheral Input/ | ||
| + | * 43 programmable GPIOs, | ||
| + | * 2 × I²C (Inter-Integrated Circuit, | ||
| + | * 2 x UART (universal asynchronous receiver/ | ||
| + | * 4 × SPI (Serial Peripheral Interface), | ||
| + | * 1 × I²S (Integrated Inter-IC Sound), | ||
| + | * 1 x RMT (TX/RX), | ||
| + | * Motor PWM (pulse width modulation), | ||
| + | * LED PWM up to 8 channels, | ||
| + | * DMA controller, | ||
| + | * 1 x TWAI controller compatible with CAN Spec. 2.0, | ||
| + | * 4 x pulse counters, | ||
| + | * 1 x full-speed USB OTG, | ||
| + | * 1 x DVP 8/16 camera interface (I2S), | ||
| + | * 1 x LCD serial interface (SPI), | ||
| + | * 1 x LCD parallel interface. | ||
| + | |||
| + | **Analog interfaces** | ||
| + | * 2 x 13-bit ADCs up to 20 channels, | ||
| + | * 2 x 8-bit DACs, | ||
| + | * 14 x touch sensing GPIO, | ||
| + | * 1 x temperature sensor. | ||
| + | |||
| + | **Security** | ||
| + | * Secure boot, | ||
| + | * Flash encryption, | ||
| + | * IEEE 802.11 standard security features are all supported, including WFA, WPA/WPA2 and WAPI, | ||
| + | * 4096-bit OTP, up to 1792-bit for customers, | ||
| + | * Cryptographic hardware acceleration: | ||
| + | * AES-128/ | ||
| + | * HMAC, | ||
| + | * RSA, | ||
| + | * random number generator (RNG). | ||
| + | |||
| + | <figure esp32s2_functions> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | | ||
| + | == ESP32-S2 Modules == | ||
| + | The company also produces ready-made modules for easier implementation in user systems. These modules combines ESP32-S2 microcontroller and additional components mounted on PCB with EM shield ((https:// | ||
| + | |||
| + | <table esp32s2_modules> | ||
| + | < | ||
| + | |||
| + | ^ **Module** | ||
| + | | ESP32-S2-MINI-2 (figure {{ref> | ||
| + | | ESP32-S2-MINI-2U | ||
| + | | ESP32-S2-SOLO-2 (figure {{ref> | ||
| + | | ESP32-S2-SOLO-2U | ||
| + | | ESP32-S2-MINI-1 | ||
| + | | ESP32-S2-MINI-1U (figure {{ref> | ||
| + | | ESP32-S2-SOLO | ||
| + | | ESP32-S2-SOLO-U | ||
| + | </ | ||
| + | | ||
| + | <figure esp32_S2_mini2> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | | ||
| + | <figure esp32_S2_solo2> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <figure esp32_S2_mini1> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | == ESP32-S2 Development Kits == | ||
| + | For convenience, | ||
| + | |||
| + | * ESP32-S2-DevkitM ((https:// | ||
| + | * ESP32-S2-DevkitC ((https:// | ||
| + | |||
| + | <figure esp32_S2_devkitm> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <figure esp32_S2_devkitc> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | ===== ESP32-S3 ===== | ||
| + | |||
| + | == ESP32-S3 General Information == | ||
| + | The ESP32-S3((https:// | ||
| + | * ESP32-S3 (figure {{ref> | ||
| + | * ESP32-S3-Pico-1 (figure {{ref> | ||
| + | | ||
| + | <figure esp32_s3> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <figure esp32_s3pico1> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | == ESP32-S3 Architecture Overview == | ||
| + | Figure {{ref> | ||
| + | |||
| + | **Processors** | ||
| + | * **Main processor: | ||
| + | * **Cores**: 2 | ||
| + | * **Ultra low power coprocessor: | ||
| + | * **Cores**: 2 | ||
| + | * ULP-RISC-V coprocessor - based on RISC-V instruction set architecture: | ||
| + | * Support for RV32IMC instruction set, | ||
| + | * Thirty-two 32-bit general-purpose registers, | ||
| + | * 32-bit multiplier and divider, | ||
| + | * Support for interrupts, | ||
| + | * Booted by the CPU, its dedicated timer, or RTC GPIO. | ||
| + | * ULP-FSM coprocessor - based on finite state machine: | ||
| + | * Support for common instructions, | ||
| + | * Support for on-board sensor measurement instructions, | ||
| + | * Booted by the CPU, its dedicated timer, or RTC GPIO. | ||
| + | **Wireless connectivity** | ||
| + | * **WiFi:** 802.11 b/g/n/mc (802.11n @ 2.4 GHz up to 150 Mbit/s) with simultaneous Infrastructure BSS Station mode/ | ||
| + | * **Bluetooth: | ||
| + | * Low Energy Bluetooth 5, Bluetooth mesh, | ||
| + | * Speed 125kbps, 500 kbps, 1 Mbps, 2 Mbps, | ||
| + | * Internal sharing antenna with WiFi. | ||
| + | |||
| + | **Memory: Internal memory: | ||
| + | * **ROM:** 384 kB (booting and core functions), | ||
| + | * **SRAM:** 512 kB (for data and instruction), | ||
| + | * **RTC SRAM:** 16 kB (for data storage and main CPU during RTC Boot from the deep-sleep mode), | ||
| + | * **Embedded flash: | ||
| + | * 0 MB (ESP32-S3, ESP32-S3R2, ESP32-S3R8, ESP32-S3R8V chips), | ||
| + | * 4 MB (ESP32-S3FH4R2 chip), | ||
| + | * 8 MB (ESP32-S3FN8 chip). | ||
| + | * **Embedded PSRAM: | ||
| + | * 0 MB (ESP32-S3, ESP32-S3FN8 chips ), | ||
| + | * 2 MB (ESP32-S3R2, | ||
| + | * 8 MB (ESP32-S3R8, | ||
| + | |||
| + | **Peripheral Input/ | ||
| + | * 45 programmable GPIOs, | ||
| + | * 2 × I²C (Inter-Integrated Circuit, | ||
| + | * 3 x UART (universal asynchronous receiver/ | ||
| + | * 4 × SPI (Serial Peripheral Interface), | ||
| + | * 2 × I²S (Integrated Inter-IC Sound), | ||
| + | * 1 x RMT (TX/ | ||
| + | * Motor PWM (pulse width modulation), | ||
| + | * LED PWM up to 8 channels, | ||
| + | * DMA controller with 5 transmit and 5 receive channels, | ||
| + | * 1 x TWAI controller compatible with CAN Spec. 2.0, | ||
| + | * 4 x pulse counters, | ||
| + | * 1 x full-speed USB OTG, | ||
| + | * 1 × USB Serial/JTAG controller, | ||
| + | * 1 x DVP 8/16 camera interface (I2S), | ||
| + | * 1 x LCD parallel interface, | ||
| + | * 1 × SD/MMC host controller. | ||
| + | |||
| + | **Analog interfaces: | ||
| + | * 2 x 12-bit ADCs up to 20 channels, | ||
| + | * 14 x touch sensing GPIO, | ||
| + | * 1 x temperature sensor. | ||
| + | ** Low power management: | ||
| + | * Power Management Unit with five power modes, | ||
| + | * Ultra-low-power (ULP) coprocessors. | ||
| + | **Security: | ||
| + | * Secure boot, | ||
| + | * Flash encryption, | ||
| + | * IEEE 802.11 standard security features are all supported, including WFA, WPA/WPA2 and WAPI, | ||
| + | * 4096-bit OTP, up to 1792-bit for customers, | ||
| + | * Cryptographic hardware acceleration: | ||
| + | * AES-128/ | ||
| + | * Hash (FIPS PUB 180-4), | ||
| + | * HMAC, | ||
| + | * RSA, | ||
| + | * Digital signature, | ||
| + | * random number generator (RNG). | ||
| + | |||
| + | <figure esp32s3_functions> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | ESP32-S3-PICO-1 has all the functions of ESP32-S3 but integrates all peripheral components, including a crystal oscillator, decoupling capacitors, SPI flash/ | ||
| + | |||
| + | <figure esp32s3pico_functions> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | | ||
| + | == ESP32-S3 Modules == | ||
| + | The company also produces ready-made modules((https:// | ||
| + | |||
| + | <table esp32s3_modules> | ||
| + | < | ||
| + | |||
| + | ^**Module**^**Chip Embedded**^**Dimensions (mm)**^**Pins**^**Flash (MB)**^**PSRAM (MB)**^**Antenna**^**Development Board**^ | ||
| + | |ESP32-S3-WROOM-1 (figure {{ref> | ||
| + | |ESP32-S3-WROOM-1U| ESP32-S3 \\ ESP32-S3R2 \\ ESP32-S3R8 |18×19.2×3.2|41|4, | ||
| + | |ESP32-S3-WROOM-2 (figure {{ref> | ||
| + | |ESP32-S3-MINI-1 (figure {{ref> | ||
| + | |ESP32-S3-MINI-1U | ESP32-S3FN8 \\ ESP32-S3FH4R2 |15.4×15.4×2.4|65|8 |N/ | ||
| + | </ | ||
| + | |||
| + | <figure esp32_s3_wroom1> | ||
| + | {{ : | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | | ||
| + | <figure esp32_s3_wroom2> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <figure esp32_s3_mini1> | ||
| + | {{ : | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | == ESP32-S3 Development Kits == | ||
| + | To facilitate the use of ESP32-S3, Espressif and other companies produce different development kits to suit different needs and present different processor functions. The original Espressif best-known small development boards are: | ||
| + | * ESP32-S3-DevkitM, | ||
| + | * ESP32-S3-DevkitC, | ||
| + | * ESP32-S3-BOX-3, | ||
| + | * ESP32-S3-BOX, | ||
| + | * ESP32-S3-EYE, | ||
| + | * ESP32-S3-Korvo-1, | ||
| + | * ESP32-S3-Korvo-2, | ||
| + | * ESP32-S3-LCD-Ev-Board. | ||
| + | |||
| + | For this book, we present only a few of the most popular, universal for various applications development boards: | ||
| + | * ESP32-S3-DevkitM(figure {{ref> | ||
| + | * ESP32-S3-DevkitC(figure {{ref> | ||
| + | * Waveshare ESP32-PICO-1((https:// | ||
| + | * M5Stamp-S3((https:// | ||
| + | |||
| + | <figure esp32_S3_devkitm> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <figure esp32_S3_devkitc> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <figure esp32_S3_pico1> | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | <figure esp32_S3_stamp> | ||
| + | {{ : | ||
| + | {{ : | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | ==ESP32-S2& | ||
| + | |||
| + | Table {{ref> | ||
| + | |||
| + | <table esp32s2s3> | ||
| + | < | ||
| + | ^**Feature**^**ESP32 Series**^**ESP32-S2 Series**^**ESP32-S3 Series**^ | ||
| + | |Launch year|2016|2020|2020| | ||
| + | |Core|Xtensa® dual-/ | ||
| + | |Wi-Fi protocols|802.11 b/g/n, 2.4 GHz|802.11 b/g/n, 2.4 GHz|802.11 b/g/n, 2.4 GHz| | ||
| + | |Bluetooth®|Bluetooth v4.2 BR/EDR and Bluetooth Low Energy|✖️|Bluetooth 5.0| | ||
| + | |Typical frequency|240 MHz (160 MHz for ESP32-S0WD)|240 MHz|240 MHz| | ||
| + | |SRAM|520 KB|320 KB|512 KB| | ||
| + | |ROM|448 KB for booting and core functions|128 KB for booting and core functions|384 KB for booting and core functions| | ||
| + | |Embedded flash|2 MB, 4 MB, or none, depending on variants|2 MB, 4 MB, or none, depending on variants|8 MB or none, depending on variants| | ||
| + | |External flash|Up to 16 MB device, address 11 MB + 248 KB each time|Up to 1 GB device, address 11.5 MB each time|Up to 1 GB device, address 32 MB each time| | ||
| + | |External RAM|Up to 8 MB device, address 4 MB each time|Up to 1 GB device, address 11.5 MB each time|Up to 1 GB device, address 32 MB each time| | ||
| + | |Cache|✔️ Two-way set associative|✔️ Four-way set associative, | ||
| + | |**Peripherals**| | ||
| + | |ADC|Two 12-bit, 18 channels|Two 12-bit, 20 channels|Two 12-bit SAR ADCs, 20 channels| | ||
| + | |DAC|Two 8-bit channels|Two 8-bit channels|✖️| | ||
| + | |Timers|Four 64-bit general-purpose timers, and three watchdog timers|Four 64-bit general-purpose timers, and three watchdog timers|Four 54-bit general-purpose timers, and three watchdog timers| | ||
| + | |Temperature sensor|✖️|1|1| | ||
| + | |Touch sensor|10|14|14| | ||
| + | |Hall sensor|1|✖️|✖️| | ||
| + | |GPIO|34|43|45| | ||
| + | |SPI|4|4|4| | ||
| + | |LCD interface|1|1|1| | ||
| + | |UART|3|2 < | ||
| + | |I2C|2|2|2| | ||
| + | |I2S|2, can be configured to operate with 8/ | ||
| + | |Camera interface|1|1|1| | ||
| + | |DMA|Dedicated DMA to UART, SPI, I2S, SDIO slave, SD/MMC host, EMAC, BT, and Wi-Fi|Dedicated DMA to UART, SPI, AES, SHA, I2S, and ADC Controller|General-purpose, | ||
| + | |RMT|8 channels|4 channels < | ||
| + | |Pulse counter|8 channels|4 channels < | ||
| + | |LED PWM|16 channels|8 channels < | ||
| + | |MCPWM|2, six PWM outputs|✖️|2, | ||
| + | |USB OTG|✖️|1|1| | ||
| + | |TWAI® controller (compatible with ISO 11898-1)|1|1|1| | ||
| + | |SD/ | ||
| + | |SDIO slave controller|1|✖️|✖️| | ||
| + | |Ethernet MAC|1|✖️|✖️| | ||
| + | |ULP|ULP FSM|PicoRV32 core with 8 KB SRAM, ULP FSM|PicoRV32 core with 8 KB SRAM, ULP FSM| | ||
| + | |Debug Assist|✖️|✖️|✖️| | ||
| + | |**Security**| | ||
| + | |Secure boot|✔️|✔️ Faster and safer, compared with ESP32|✔️ Faster and safer, compared with ESP32| | ||
| + | |Flash encryption|✔️|✔️ Support for PSRAM encryption. Safer, compared with ESP32|✔️ Support for PSRAM encryption. Safer, compared with ESP32| | ||
| + | |OTP|1024-bit|4096-bit|4096-bit| | ||
| + | |AES|✔️ AES-128, AES-192, AES-256 (FIPS PUB 197)|✔️ AES-128, AES-192, AES-256 (FIPS PUB 197); DMA support|✔️ AES-128, AES-256 (FIPS PUB 197); DMA support| | ||
| + | |HASH|SHA-1, | ||
| + | |RSA|Up to 4096 bits|Up to 4096 bits|Up to 4096 bits| | ||
| + | |RNG|✔️|✔️|✔️| | ||
| + | |HMAC|✖️|✔️|✔️| | ||
| + | |Digital signature|✖️|✔️|✔️| | ||
| + | |XTS|✖️|✔️ XTS-AES-128, | ||
| + | |**Other**| | ||
| + | |Deep-sleep (ULP sensor-monitored pattern)|100 μA (when ADC work with a duty cycle of 1%)|22 μA (when touch sensors work with a duty cycle of 1%)|TBD| | ||
| + | |Size|QFN48 5*5, 6*6, depending on variants|QFN56 7*7|QFN56 7*7| | ||
| + | |||
| + | - **Note** 1: Reduced chip area compared with ESP32 \\ | ||
| + | - **Note** 2: Reduced chip area compared with ESP32 and ESP32-S2 \\ | ||
| + | - **Note** 3: Die size: ESP32-S2 < ESP32-S3 < ESP32 \\ | ||
| + | |||
| + | </ | ||