ESP32-S3 Product Line
Files Referenced in This Article
esp32s3/docs/boards/ledong_v2/1_hardware/1_2_Technical_parameters.rst
esp32s3/firmware/boards/mpython_v3/board.jsonesp32s3/firmware/boards/labplus_Ledong_v2/board.jsonesp32s3/firmware/boards/sdkconfig.spiramesp32s3/firmware/file_system/common/ui/home.pyesp32s3/firmware/file_system/mpython_v3/ui/home.pyesp32s3/firmware/file_system/labplus_Ledong_v2/ui/home.py
Product Overview
The ESP32-S3 mPython Board product line targets K12 maker and educational scenarios, providing a high-performance development platform based on the dual-core ESP32-S3 processor. With “easy to get started, strong extensibility, and ready for real-world use” as its core value, this series supports MicroPython/C language development, features rich on-board sensors, audio, and display capabilities, and integrates the Xiaozhi AI Assistant and LVGL graphical interface, making it easy to quickly build voice interaction, AI vision, and IoT prototypes.
Target users: K12 teachers and students, maker developers, educational project teams, and IoT/AI prototype engineers
Core value: stronger computing power and memory (PSRAM), richer on-board peripherals, and out-of-the-box AI and GUI capabilities
Application scenarios: voice conversation robots, human-computer interaction terminals, data acquisition and visualization, classroom experiments and competitions, and edge-AI demonstrations
Section Sources
Core Business Flow
This section outlines two typical business chains from the perspective of “hardware-software-application”: the usage flow of the standard mPython Board 3.0 and mPython Core 2.0.
sequenceDiagram
participant U as "User"
participant B as "mPython Board (ESP32-S3)"
participant S as "Screen (LVGL)"
participant A as "Xiaozhi AI / Cloud"
participant N as "Network (Wi-Fi)"
U->>B : Power on / wake up
B->>N : Connect to Wi-Fi
N-->>B : Network connection successful
B->>S : Initialize LVGL and UI
U->>B : Voice / button input
B->>A : Send voice / intent request
A-->>B : Return response text / command
B->>S : Update interface / play speech
U-->>B : Interaction complete
Key nodes: device boot -> network connection -> GUI initialization -> voice/button capture -> AI inference or cloud call -> result rendering and feedback
Differences: mPython Core 2.0 additionally includes camera and motor interfaces and can integrate applications such as face detection and speech recognition in the UI; mPython Board 3.0 focuses on general interaction and teaching demonstrations
Diagram Sources
Section Sources
Feature Module List
This section lists the main modules and their responsibilities and acceptance points, layered as “hardware capabilities-software capabilities-application features”.
Hardware capabilities
Main controller and storage: ESP32-S3 dual-core 240MHz, 16MB Flash, 8MB PSRAM
Display: 1.47-inch LCD (ST7789, 320x172), supporting the LVGL graphics library
Audio: ES8388 decoding + NS4150 amplifier, dual microphones
Sensors: QMI8658C 6-axis, MMC5603 magnetic sensor, LTR-308 light sensor
Interaction: physical buttons A/B/Reset, touch sensors P/Y/T/H/O/N, 3 RGB LEDs
Communication: Wi-Fi 802.11 b/g/n, Bluetooth 5 (BLE)
Exclusive to mPython Core 2.0: GC0328 camera, two-channel motor driver output, HY2.0 expansion interface, 1200mAh battery
Software capabilities
Firmware stack: ESP-IDF v5.x + MicroPython v1.24.1 + CMake
Graphical interface: LVGL (lv_micropython) + an encapsulated GUI library, multi-page navigation
AI assistant: Xiaozhi AI (wake-word detection, real-time translation, responsive interaction)
File system: loads file_system by board type (mpython_v3 / labplus_Ledong_v2 / common)
Expansion modules: GPS, heart rate, RFID, MQTT, HTTP, OLED/LCD drivers, etc.
Application features
Compilation-free firmware flashing for one-click access to Xiaozhi AI
Multi-app home pages: level, face detection, clock, speech recognition, light, sound, games, etc.
Teaching and competitions: compatible with the micro:bit music module, rich example code
Acceptance points
The screen displays normally, with resolution and refresh as expected
Audio input/output paths work smoothly, with no anomalies in recording and playback
Sensor data is readable, with reasonable angle/magnetic field/light values
Wi-Fi/BLE connections are stable, and AI requests return results
Camera capture and motor control on mPython Core 2.0 are usable
Section Sources
Data and State
Core data models
Device information: MCU=ESP32-S3, Flash=16MB, PSRAM=8MB, screen=ST7789 320x172
Sensor data: acceleration/angular velocity/magnetic field strength/light intensity/audio loudness
Network state: Wi-Fi connected/disconnected, AP hotspot enabled/disabled
Application state: GUI page routing, AI session state (wake-up/conversation/end)
Key state transitions
Boot flow: Boot -> initialize peripherals (LCD/audio/sensors) -> load GUI -> connect to network -> enter home page
Interaction flow: input (voice/button) -> processing (local or cloud) -> output (display/speech/light)
Power management: USB power / battery power switching (mPython Core 2.0)
Data ownership boundaries
Device side: raw sensor data, local cache, UI state
Cloud side: AI model inference results, TTS speech synthesis, large-model conversation context
Transmission: data exchanged over an encrypted Wi-Fi channel
flowchart TD
Start(["Power on and boot"]) --> Init["Initialize peripherals and system"]
Init --> Net{"Connected to network?"}
Net --> |No| Local["Run in local mode"]
Net --> |Yes| Cloud["Connect to cloud AI service"]
Local --> UI["Load GUI home page"]
Cloud --> UI
UI --> Input{"User input"}
Input --> |Voice| AI["Speech recognition / intent parsing"]
Input --> |Button| Action["Perform the corresponding action"]
AI --> Output["Generate reply / control command"]
Action --> Output
Output --> Render["Update screen / play speech / control peripherals"]
Render --> End(["Wait for the next input"])
Section Sources
Key Constraints and Boundaries
Non-functional requirements
Power consumption: maximum operating current about 500-700mA (depending on model and load); power supply and heat dissipation requirements must be met
Stability: enabling PSRAM increases firmware size; mind memory allocation and overflow risks
Compatibility: file_system and UI pages differ across board types; select the firmware by board type
Dependency and integration boundaries
Hardware dependencies: ESP32-S3 chip, ST7789 screen, ES8388 audio, various sensors
Software dependencies: ESP-IDF v5.x, MicroPython v1.24.1, LVGL, Xiaozhi AI firmware
Network dependencies: Wi-Fi connectivity, cloud API availability (Xiaozhi AI/iFLYTEK, etc.)
Business constraints
The camera and motor interfaces of mPython Core 2.0 are optional extensions; the corresponding features must be enabled in the UI and firmware
Xiaozhi AI requires network access and proper API configuration; offline mode only supports basic local functions
Pin and peripheral mappings differ across board types; verify board.json and the IO documentation when porting
Section Sources
esp32s3/docs/boards/ledong_v2/1_hardware/1_2_Technical_parameters.rst:44-50
esp32s3/firmware/boards/mpython_v3/board.json:6-11esp32s3/firmware/boards/labplus_Ledong_v2/board.json:6-11esp32s3/firmware/boards/sdkconfig.spiram:1-23
Two Main Products and Board Series
mPython Board 3.0 (mpython_v3)
Positioning: the standard ESP32-S3 mPython Board, suitable for teaching and general development
Features: LCD color screen, audio, 6-axis/magnetic/light sensors, Wi-Fi/BLE, LVGL GUI, Xiaozhi AI
Reference: see the hardware documentation index for hardware parameters and IO definitions
mPython Core 2.0 (labplus_Ledong_v2)
Positioning: an interactive version with camera and motor driver, suitable for robotics, AI vision, and motion control
Features: adds a GC0328 camera, two-channel motor driver, HY2.0 expansion interface, and battery power on top of the standard version
Reference: independent hardware documentation and technical parameters
Board series (firmware side)
mpython_v3: standard S3 mPython Board
labplus_Ledong_v2: Ledong version
labplus_for_xuejing: Xuejing version
labplus_xunfei_js_middle / primary: iFLYTEK JS intermediate/primary versions
Section Sources
esp32s3/firmware/boards/mpython_v3/board.json:15-16esp32s3/firmware/boards/labplus_Ledong_v2/board.json:15-16
Chip Upgrade and New Features
Chip upgrade
Uses the ESP32-S3 dual-core Xtensa LX7, 240MHz clock, built-in FPU, supporting Wi-Fi and BLE 5
Storage and memory: 16MB Flash + 8MB PSRAM, improving graphics and AI task processing capability
Build system: ESP-IDF v5.x + MicroPython v1.24.1 + CMake, with a higher degree of engineering
New features
Xiaozhi AI: wake-word detection, real-time translation, responsive interaction; compilation-free firmware for one-click access
LVGL graphical interface: built-in lv_micropython, providing multi-page GUI and custom fonts
PSRAM optimization: enables SPIRAM and related optimization options to balance firmware size and runtime memory
Differences from ESP32 (overview)
Hardware layer: ESP32-S3 has stronger computing power and larger memory, with some peripherals added/adjusted (such as the screen driver and I2C expansion)
Software layer: removes some legacy modules (such as radio/modcodec), and adds independent implementations of I2C expansion and network modules
Ecosystem layer: introduces LVGL GUI and Xiaozhi AI, strengthening education and AI scenario capabilities
Section Sources
esp32s3/firmware/boards/sdkconfig.spiram:1-23
Using and Integrating Xiaozhi AI
Introduction: Xiaozhi AI is an open-source hardware chatbot that supports multi-turn dialogue, emotional voice communication, and proactive thinking, and can be deployed on the ESP32-S3 for low-latency voice chat
Getting started: switch to mPython Board 3.0 in the mPython software, select the Xiaozhi firmware, and flash it to try it out
Features: wake-word detection, real-time translation, responsive interaction; supports a variety of applications (speech recognition, intent recognition, smart services)
sequenceDiagram
participant Dev as "Development board"
participant SW as "mPython tool"
participant FW as "Xiaozhi firmware"
Dev->>SW : Select board type and firmware
SW->>FW : Flash the firmware
FW-->>Dev : Boot and initialize the AI module
Dev->>FW : Voice input / button trigger
FW-->>Dev : Return conversation / control result
Diagram Sources
Section Sources
LVGL Graphical Interface and UI Architecture
Graphics library: built-in LVGL (lv_micropython), providing lightweight GUI capabilities and supporting Chinese and multiple fonts
UI structure: maintains file_system/ui by board type, containing the home page and various application pages (level, face detection, clock, speech recognition, light, sound, games)
Page navigation: manages page jumps and key bindings via change_route and lv_group
graph TB
subgraph "UI layer"
Home["Home page (home.py)"]
Pages["Application pages (gradienter/face/clock/voice/light/sound/game)"]
end
subgraph "Graphics library"
LVGL["LVGL (lv_micropython)"]
GUI["Encapsulated GUI library"]
end
Home --> Pages
Pages --> LVGL
LVGL --> GUI
Diagram Sources
esp32s3/firmware/file_system/common/ui/home.py:1-41esp32s3/firmware/file_system/mpython_v3/ui/home.py:1-41esp32s3/firmware/file_system/labplus_Ledong_v2/ui/home.py:1-41
Section Sources
esp32s3/firmware/file_system/common/ui/home.py:1-41esp32s3/firmware/file_system/mpython_v3/ui/home.py:1-41esp32s3/firmware/file_system/labplus_Ledong_v2/ui/home.py:1-41
Differences from ESP32 (Comparison Highlights)
Hardware differences
Main controller: ESP32-S3 dual-core vs the original ESP32 single/dual-core (depending on the version)
Memory: adds 8MB PSRAM, significantly improving GUI and AI task capabilities
Peripherals: the screen driver changes to ST7789, with I2C expansion and network modules added/adjusted
Software differences
Build system: ESP-IDF v5.x + CMake, with stronger engineering
Module changes: removes some legacy modules (radio/modcodec, etc.), and adds independent implementations of I2C expansion and networking
Ecosystem enhancements: introduces LVGL GUI and Xiaozhi AI, improving education and AI scenarios
Development impact
Migration notes: IO mapping, peripheral drivers, and module APIs may change; consult the board-type documentation
Performance gains: larger memory and a stronger CPU, suitable for complex GUI and AI applications
Toolchain: it is recommended to use mPython IDE and the official firmware package to ensure compatibility and ease of use
Section Sources
esp32s3/docs/boards/ledong_v2/1_hardware/1_2_Technical_parameters.rst:15-42
esp32s3/firmware/boards/sdkconfig.spiram:1-23
Summary
With “stronger computing power, larger memory, and richer peripherals” at its core, combined with Xiaozhi AI and the LVGL graphical interface, the ESP32-S3 mPython Board product line provides an efficient and easy-to-use development platform for education and maker scenarios. mPython Board 3.0 and mPython Core 2.0 respectively cover general development and robotics/AI vision scenarios, meeting application needs at different levels. Through standardized board-type management and modular design, developers can quickly build projects such as voice interaction, data acquisition and visualization, and IoT prototypes.