Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales01@spotpear.com
dragon_manager@163.com
services01@spotpear.com
manager01@spotpear.com
WhatsApp:13246739196
ESP32-S3-LCD-2.8B is a microcontroller development board that supports 2.4GHz WiFi and BLE 5. It integrates large capacity Flash and PSRAM and has onboard 2.8inch RGB screen, can smoothly run GUI programs such as LVGL. Combined with various peripheral interfaces, it is suitable for the quick development of the HMI and other ESP32-S3 applications.
Item | Parameter |
Interface | USB Type-C / UART Type-C |
Controller chip | ESP32-S3 |
LCD type | TFT |
LCD controller chip | Display: ST7701 |
Touch: GT911 | |
Onboard devices | Attitude sensor: QMI8658 |
RTC clock: PCF85063 | |
TF | |
Buzzer | |
Battery recharging manager module | |
Dimensions | 47.9 mm * 66.7 mm (Without touch control) |
1. ESP32-S3R8 2. 16MB Flash 3. QST attitude sensor 4. SMD antenna 5. TCA9554PWR 6. RTC clock chip 7. MP1605GTF-Z 8. Battery recharge manager Chip 9. Buzzer 10. TF card slot (back) 11. BOOT button | 12. RESET button 13. IPEX Gen 1 connector 14. 2*12PIN 2.54mm header 15. RTC battery header 16. Battery header 17. UART interface 18. Charge indicator 19. USB Type-C interface 20. Power indicator 21. I2C interface 22. Battery power supply control button |
Description | Function | Pin | Pin | Function | Description |
Ground | GND | G | G | GND | Ground |
External output 3.3V | 3V3 | 3V3 | 3V3 | 3V3 | External output 3.3V |
I2C data pin, cannot be used as regular GPIO | SDA (GPIO15) | SDA | TXD | TXD (GPIO43) | UART transmit data or as regular GPIO |
I2C clock pin, cannot be used as regular GPIO | SCL (GPIO7) | SCL | RXD | RXD (GPIO44) | UART receive data or as regular GPIO |
Lead out idle GPIOs | GPIO16 | 16 | 37 | GPIO37 | Used for internal PSRAM, not recommended |
Used for reading battery voltage, solderable corresponding resistor | GPIO4 | 4 | 36 | GPIO36 | Used for internal PSRAM, not recommended |
Connected to BOOT button, can be used as a regular GPIO | GPIO0 | 0 | 35 | GPIO35 | Used for internal PSRAM, not recommended |
USB differential cable or as GPIO | USB differential cable (GPIO20) | D+ | 34 | GPIO34 | Used for internal PSRAM, not recommended |
USB differential cable or as GPIO | USB differential cable (GPIO19) | D- | 33 | GPIO33 | Used for internal PSRAM, not recommended |
Ground | GND | G | G | GND | Ground |
Voltage output of USB through diode | 5V | VCC | BAT | BAT | Battery voltage |
Direct output of USB voltage | 5V | 5V | 5V | 5V | Direct output of USB voltage |
Pin | Function | Description |
GND | GND | Ground |
3V3 | 3V3 | External output 3.3V |
TXD | TXD (GPIO43) | UART transmit data or as regular GPIO |
RXD | RXD (GPIO44) | UART receive data or as regular GPIO |
Pin | Function | Description |
GND | GND | Ground |
3V3 | 3V3 | External output 3.3V |
SCL | SCL (GPIO7) | I2C clock pin, cannot be used as regular GPIO |
SDA | SDA (GPIO15) | I2C data pin, cannot be used as regular GPIO |
LCD Pin | ESP32S3 |
LCD_BL | GPIO6 |
LCD_RST | EXIO1 |
LCD_SDA | GPIO1 |
LCD_SCL | GPIO2 |
LCD_CS | EXIO3 |
PCLK | GPIO41 |
DE | GPIO40 |
VSYNC | GPIO39 |
HSYNC | GPIO38 |
B0 | NC |
B1 | GPIO5 |
B2 | GPIO45 |
B3 | GPIO48 |
B4 | GPIO47 |
B5 | GPIO21 |
G0 | GPIO14 |
G1 | GPIO13 |
G2 | GPIO12 |
G3 | GPIO11 |
G4 | GPIO10 |
G5 | GPIO9 |
R0 | NC |
R1 | GPIO46 |
R2 | GPIO3 |
R3 | GPIO8 |
R4 | GPIO18 |
R5 | GPIO17 |
TP_SDA | GPIO15 |
TP_SCL | GPIO7 |
TP_INT | GPIO16 |
TP_RST | EXIO2 |
TF Card | ESP32S3 |
SD_D0 / MISO | GPIO42 |
SD_CMD / MOSI | GPIO1 |
SD_SCK / SCLK | GPIO2 |
SD_D3 / CS | EXIO4 |
SD_D1 | NC |
SD_D2 | NC |
QMI8658 | ESP32S3 |
IMU_SCL | GPIO7 |
IMU_SDA | GPIO15 |
IMU_INT1 | EXIO5 |
IMU_INT2 | EXIO6 |
PCF85063ATL | ESP32S3 |
RTC_SCL | GPIO7 |
RTC_SDA | GPIO15 |
RTC_INT | EXIO7 |
Buzzer | ESP32S3 |
Buzzer_Control | EXIO8 |
BAT | ESP32S3 |
BAT_ADC | GPIO4 |
ESP32-S3-LCD-2.8B currently provides two development tools and frameworks, Arduino IDE and ESP-IDF, providing flexible development options, you can choose the right development tool according to your project needs and personal habits.
Arduino IDEArduino IDE is an open source electronic prototyping platform, convenient and flexible, easy to get started. After a simple learning, you can start to develop quickly. At the same time, Arduino has a large global user community, providing an abundance of open source code, project examples and tutorials, as well as rich library resources, encapsulating complex functions, allowing developers to quickly implement various functions. | |
ESP-IDFESP-IDF, or full name Espressif IDE, is a professional development framework introduced by Espressif Technology for the ESP series chips. It is developed using the C language, including a compiler, debugger, and flashing tool, etc., and can be developed via the command lines or through an integrated development environment (such as Visual Studio Code with the Espressif IDF plugin). The plugin offers features such as code navigation, project management, and debugging, etc.. |
Each of these two development approaches has its own advantages, and developers can choose according to their needs and skill levels. Arduino are suitable for beginners and non-professionals because they are easy to learn and quick to get started. ESP-IDF is a better choice for developers with a professional background or high performance requirements, as it provides more advanced development tools and greater control capabilities for the development of complex projects.
This chapter introduces setting up the Arduino environment, including the Arduino IDE, management of ESP32 boards, installation of related libraries, program compilation and downloading, as well as testing demos. It aims to help users master the development board and facilitate secondary development.
Board name | Board installation requirement | Instruction |
---|---|---|
esp32-XIP-3.0.2 | "Install Offline" | The "esp32-XIP-3.0.2" board must be installed according to the installation tutorial |
..\ESP32-S3-LCD-2.8B-Demo\Arduino\libraries
Library Name | Description | Version | Library Installation Requirement |
---|---|---|---|
LVGL | Graphical library | v8.3.10 | "Install Offline" |
OneButton | Button library | v2.6.1 | "Install Offline" |
File
-> New Sketch
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("Hello, World!");
delay(2000);
}
File
-> Save As...
. In the pop-up menu, select the path to save the project, and enter a project name, such as Hello_World, click Save
①. Click to select the dropdown menu option Select Other Board and Port;
②. Search for the required development board model esp32s3 dev module and select;
③. Select COM Port;
④. Save the selection.
①. Compile the program; ②. Compile and download the program; ③. Download successful.
Demo | Basic Description | Dependency Library |
---|---|---|
LVGL_Arduino | Test onboard device functionality | LVGL |
Hardware connection
Code analysis
Demo flashing
Result demonstration
Parameter | Function | Description |
SD Card | Display TF card size | Connect the TF card, if the recognition fails, please format the TF card to FAT32 format (please wait for a while to reset and check again if the recognition fails for the first time) |
Flash Size | Display Flash size | Current onboard 16MB Flash |
Battery Voltage | Battery voltage | The battery voltage can be detected when the battery is connected |
Angular deflection | Display the angular deflection of the board | Display the offset in three directions |
RTC Time | Display RTC time | Display current RTC time If the RTC time is not consistent with the current time, because the data cannot be retained in the power-off state, if you need to keep the RTC time normal, you need to connect the RTC battery and update the RTC time |
Wireless scan | Display the number of scanned WiFi | When it finishes, display Scan Finish at the end |
The buzzer test | Buzzer control page | Can control buzzer switch |
Backlight brightness | Brightness adjustment slider | Can control screen brightness |
This chapter introduces setting up the ESP-IDF environment setup, including the installation of Visual Studio and the Espressif IDF plugin, program compilation, downloading, and testing of demos, to assist users in mastering the development board and facilitating secondary development.
Plugin name | Plugin installation requirement | Version number requirement |
---|---|---|
Espressif IDF | "Install Offline" / "Install Online" | ≥5.3.1 |
①Select the corresponding demo
②Its readme will state what chip the demo applies to (how to use the demo and the file structure are described below, omitted here)
③Click to create the demo
①.ESP-IDF Development Environment Version Manager, when our project requires differentiation of development environment versions, it can be managed by installing different versions of ESP-IDF. When the project uses a specific version, it can be switched to by utilizing it
②.Device flashing COM port, select to flash the compiled program into the chip
③.Select set-target chip model, select the corresponding chip model, for example, ESP32-P4-NANO needs to choose esp32p4 as the target chip
④.menuconfig, click it to Modify sdkconfig configuration file Project configuration details
⑤.fullclean button, when the project compilation error or other operations pollute the compiled content, you can clean up all the compiled content by clicking it
⑥.Build project, when a project satisfies the build, click this button to compile
⑦.Current download mode, the default is UART
⑧.flash button, when a project build is completed, select the COM port of the corresponding development board, and click this button to flash the compiled firmware to the chip
⑨.monitor enable flashing port monitoring, when a project passes through Build --> Flash, click this button to view the log of output from flashing port and debugging port, so as to observe whether the application works normally
⑩.Debug
⑪.Build Flash Monitor one-click button, which is used to continuously execute Build --> Flash --> Monitor, often referred to as "little flame"
CMakeLists.txt
.CMake
first reads the content of the top-level CMakeLists.txt
in the project directory to read the build rules and identify the content to be compiled. When the required components and demos are imported into the CMakeLists.txt
, the compilation tool CMake
will import each content that needs to be compiled according to the index. The compilation process is as follows:Demo | Basic Description |
---|---|
ESP32-S3-LCD-2.8B-Test | Test onboard device functionality |
Hardware connection
Code analysis
Driver_Loop
that continuously processes the gyroscope, the real-time clock, and gets the battery voltage, executing a loop operation every 100 milliseconds. Driver_Init
for hardware initialization. Next, initialize the LCD display, TF card, LVGL graphics library and analog touch input in sequence. Calling the example function Lvgl_Example1
of LVGL demonstrates specific graphical interface effects. In the main loop, it delays once every 10 milliseconds and calls lv_timer_handler
to handle LVGL's timer events, ensuring the normal operation and updates of the graphical interface.Result demonstration
Parameter | Function | Description |
SD Card | Display TF card size | Connect the TF card, if the recognition fails, please format the TF card to FAT32 format (please wait for a while to reset and check again if the recognition fails for the first time) |
Flash Size | Display Flash size | Current onboard 16MB Flash |
Battery Voltage | Battery voltage | The battery voltage can be detected when the battery is connected |
Angular deflection | Display the angular deflection of the board | Display the offset in three directions |
RTC Time | Display RTC time | Display current RTC time If the RTC time is not consistent with the current time, because the data cannot be retained in the power-off state, if you need to keep the RTC time normal, you need to connect the RTC battery and update the RTC time |
Wireless scan | Display the number of scanned WiFi | When it finishes, display Scan Finish at the end |
The buzzer test | Buzzer control page | Can control buzzer switch |
Backlight brightness | Brightness adjustment slider | Can control screen brightness |
...\ESP32-S3-LCD-2.8B-Demo\Firmware
It may be due to Flash blank and the USB port is not stable, you can long-press the BOOT button, press RESET at the same time, and then release RESET, and then release the BOOT button, at this time the module can enter the download mode to flash the firmware (demo) to solve the situation.
①View through Device Manager: Press the Windows + R keys to open the "Run" dialog box; input devmgmt.msc and press Enter to open the Device Manager; expand the "Ports (COM and LPT)" section, where all COM ports and their current statuses will be listed.
②Use the command prompt to view: Open the Command Prompt (CMD), enter the "mode" command, which will display status information for all COM ports.
③Check hardware connections: If you have already connected external devices to the COM port, the device usually occupies a port number, which can be determined by checking the connected hardware.
①Use the dmesg command to view: Open the terminal.
①Use the ls command to view: Enter ls /dev/ttyS* or ls /dev/ttyUSB* to list all serial port devices.
③Use the setserial command to view: Enter setserial -g /dev/ttyS* to view the configuration information of all serial port devices.
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com