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-1.47B is a microcontroller development board that supports 2.4GHz WiFi and Bluetooth BLE 5. It integrates large capacity Flash and PSRAM and has onboard 1.47inch LCD 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.
1. ESP32-S3R8 2. 16MB Flash 3. RGB light bead 4. ME6217C33M5G 5. QMI8658 6. Charging management circuit | 7. Patch ceramic antenna 8. Battery header 9. TF card slot 10. RESET button 11. BOOT button 12. Type-C interface |
LCD Pin | ESP32S3 |
MOSI | GPIO45 |
SCLK | GPIO40 |
LCD_CS | GPIO42 |
LCD_DC | GPIO41 |
LCD_RST | GPIO39 |
LCD_BL | GPIO46 |
RGB light bead | ESP32S3 |
RGB_Control | GPIO38 |
TF Card | ESP32S3 |
SD_CMD | GPIO15 |
SD_SCK | GPIO14 |
SD_D0 | GPIO16 |
SD_D1 | GPIO18 |
SD_D2 | GPIO17 |
SD_D3 | GPIO21 |
Item | Parameter |
Interface | USB Type-C |
Controller chip | ESP32-S3 |
LCD type | TFT |
LCD controller chip | Display: ST7789 |
Onboard devices | RGB light bead |
TF | |
QMI8658 six-axis gyro accelerometer | |
Charging management circuit |
ESP32-S3-LCD-1.47B 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 | Version number requirement |
---|---|---|
esp32 by Espressif Systems | "Install Offline" / "Install Online" | ≥3.0.2 |
Library Name | Description | Version | Library Installation Requirement |
---|---|---|---|
LVGL | Graphical library | v8.3.10 | "Install Offline" |
PNGdec | Decode PNG image formats | v1.0.2 | "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 |
LCD_Image | Display TF card root directory PNG file at intervals | PNGdec |
Hardware connection
Code analysis
1. setup()
Flash_test()
: Test and print the flash memory size information of the deviceSD_Init()
: Initialize the TF cardLCD_Init()
: Initialize the displaySet_Backlight(90)
: Set the backlight brightness to 90Lvgl_Init()
: Initialize the LVGL graphics libraryLvgl_Example1()
: Calls the specific LVGL example functionWireless_Test2()
: Call the test function for wireless communication2. loop()
Timer_Loop()
: Functions that handle timer-related tasksRGB_Lamp_Loop(2)
: Update the RGB light color at regular intervalsResult demonstration
TF card preparation
Hardware connection
Code analysis
1. setup()
Flash_test()
: Test and print the flash memory size information of the deviceSD_Init()
: Initialize the TF cardLCD_Init()
: Initialize the displaySet_Backlight(90)
: Set the backlight brightness to 902. loop()
Image_Next_Loop("/", ".png", 300)
: Display PNG files under the SD card root directory in sequence at regular time intervalsRGB_Lamp_Loop(2)
: Update the RGB light color at regular intervalsResult demonstration
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.
①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 | Dependency Library |
---|---|---|
ESP32-S3-LCD-1.47B-Test | Test onboard device functionality | LVGL |
Hardware connection
Code analysis
1. setup()
Wireless_Init()
: Initialize the wireless communication moduleFlash_Searching()
: Test and print the flash memory size information of the deviceRGB_Init()
: Initialize RGB-related functionsRGB_Example()
: Display example functions of RGBSD_Init()
: Initialize the TF cardLCD_Init()
: Initialize the displayBK_Light(50)
: Set the backlight brightness to 50LVGL_Init()
: Initialize the LVGL graphics libraryLvgl_Example1()
: Calls the specific LVGL example function2. while(1)
vTaskDelay(pdMS_TO_TICKS(10))
: Short delay, every 10 millisecondslv_timer_handler()
: Timer handling function for LVGL, used to handle events and animations related to timeResult demonstration
..\ESP32-SS-LCD-1.47B-Demo\Firmware
①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