Google Chat: zj734465502@gmail.com
+86-0755-88291180
sales@spotpear.com
dragon_manager@163.com
tech-support@spotpear.com
zhoujie@spotpear.com
WhatsApp:13246739196
ESP32-S3-LCD-1.3 is a high-performance, low-power development board launched by Waveshare, designed for Internet of Things (IoT), wearable devices, and smart home applications. This development board features a 1.3inch high-resolution LCD screen, providing clear and vivid display effects to meet various real-time data display needs. At the same time, the onboard ESP32-S3 system-on-chip (SoC) integrates high-performance low-power Wi-Fi and Bluetooth 5.0 (BLE) functions, and the stacked 16MB external Flash and 8MB PSRAM provide developers with the flexibility to develop complex applications and provide enough storage space. The board also has a lithium battery charging chip to support battery management functions, a six-axis sensor (three-axis accelerometer and three-axis gyroscope) for accurate motion detection and attitude sensing, and a TF card slot for easy data storage and expansion functions. Whether it is smart hardware development, environmental monitoring, smart wearables, or mobile devices, it can provide strong performance support and flexible development space, which is an ideal choice for IoT products.
1. ESP32-S3R8 3. 16MB Flash 4. TF card slot 5. Charge indicator |
7. ME6217C33M5G 8. MX1.25 Lithium battery interface 9. QST attitude sensor |
For more details, please refer to the Schematic diagram
ESP32-S3-LCD-1.3 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" | 2.0.12 |
..\ESP32-S3-LCD-1.3-Demo\Arduino\libraries
Library Name | Description | Version | Library Installation Requirement |
---|---|---|---|
Adafruit_NeoPixel | RGB light control library | v1.12.4 | "Install Online" or "Install Offline" |
Arduino_GFX | Arduino graphics library | v1.4.9 | "Install Online" or "Install Offline" |
AnimatedGIF | GIF graphics decoding library | v2.1.1 | "Install Online" or "Install Offline" |
ArduinoJson | Json parsing library | v6.21.2 | "Install Online" or "Install Offline" |
HttpClient | HTTP client library | v2.2.0 | "Install Online" or "Install Offline" |
lvgl | lvgl graphical library | v8.3.7 | "Install Offline" |
SensorLib | QMI8658 sensor driver library | v0.2.6 | "Install Online" or "Install Offline" |
TFT_eSPI | Graphical library | v2.5.0 | "Install Online" or "Install Offline" |
Time | ESP32 timer library | v1.6.1 | "Install Online" or "Install Offline" |
TJpg_Decoder | JPG graphics decoding library | v1.0.8 | "Install Online" or "Install Offline" |
JPEGDEC | JPG graphics decoding library | v1.6.1 | "Install Online" or "Install Offline" |
JPEGDecoder | JPG graphics decoding library | v2.0.0 | "Install Online" or "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 |
---|---|---|
01_AstronautClock | Astronaut GUI | TFT_eSPI, TJpg_Decoder, HTTPClient, lvgl, AnimatedGIF |
02_SD_Video | TF card play video | Arduino_GFX_Library,JPEGDEC |
03_SDIMG_Game2048 | TF card image browser and Game | TFT_eSPI, JPEGDecoder, Adafruit_NeoPixel, Sensor, lvgl |
04_Snake | Snake Game | TFT_eSPI,Sensor |
05_WIFI_AP | ESP32S3 as AP | - |
06_WIFI_STA | ESP32S3 as STA | - |
Demo description
Hardware connection
Code analysis
AstronautClock_NoPrism.ino
, find ssid
and password
, then modify them to the SSID and Password of the available router in your current environment.const char *ssid = "you_ssid";
const char *password = "you_password";
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description Read the images from the TF card and quickly render them on the screen. After rendering all the images from the TF card, enter the Game2048 game interface.
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
The development board is equipped with a QMI sensor, which can control the direction of the game through adjusting the angle of the development board.
Result demonstration
Demo description
Hardware connection
Code analysis
05_WIFI_AP.ino
, find ssid
and password
, then a phone or other device in STA mode can connect to the development board using these ssid and password.const char *ssid = "ESP32_AP";
const char *password = "12345678";
Result demonstration
After flashing the program, open the serial terminal, if the device is successfully connected to the hotspot, the MAC address of the device will be output, as shown in the figure:
Demo description
Hardware connection
Code analysis
05_WIFI_STA.ino
, find ssid
and password
, then modify them to the SSID and Password of the available router in your current environment.const char *ssid = "you_ssid";
const char *password = "you_password";
Result demonstration
After flashing the program, open the serial terminal, if the device is successfully connected to the hotspot, the IP address obtained will be output, as shown in the figure:
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 |
---|---|---|
01_WIFI_AP | ESP32S3 as AP | - |
02_WIFI_STA | ESP32S3 as STA | - |
03_FactoryProgram | Comprehensive project | LVGL |
Demo description
Hardware connection
Code analysis
softap_example_main.c
, find SSID
and PASSWORD
, and then your phone or other device in STA mode can use the SSID and PASSWORD to connect to the development board.#define EXAMPLE_ESP_WIFI_SSID "waveshare_esp32"
#define EXAMPLE_ESP_WIFI_PASSWORD "wav123456"
Result demonstration
After flashing the program, open the serial terminal, if the device is successfully connected to the hotspot, the MAC address and IP address of the device will be output, as shown in the figure:
Demo description
Hardware connection
Code analysis
esp_wifi_bsp.c
, find ssid
and password
, then modify them to the SSID and Password of the available router in your current environment.wifi_config_t wifi_config = {
.sta = {
.ssid = "PDCN",
.password = "1234567890",
},
};
Result demonstration
After flashing the program, open the serial terminal, if the device is successfully connected to the hotspot, the IP address obtained will be output, as shown in the figure:
Demo description
Hardware connection
Code analysis
Result demonstration
..\ESP32-S3-LCD-1.3-Demo\Firmware
This section features third - party project resources. We merely provide links and bear no responsibility for content updates or maintenance. Thank you for your understanding.
Volos Projects- Tiny Holographic Display Looks Insane!
nishad2m8- Prism Clock with Moon Phase
Niklas Heinzel- Prism-Version Weather-Station
①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