ESP32-S3-Touch-AMOLED-1.64

From Waveshare Wiki
Jump to: navigation, search
ESP32-SX Series
ESP32-S3-Touch-AMOLED-1.64-details-12.jpg


ESP32-S3, UART/I2C/USB
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

{{{name6}}}

Overview

Introduction

This product uses the ESP32-S3R8 chip, supports 2.4GHz Wi-Fi and BLE 5 Bluetooth functions, and has built-in large capacity Flash and PSRAM. Equipped with a 1.64inch HD AMOLED display, it can smoothly run GUI programs such as LVGL. It has integrated IMU, TF card slot, and lithium battery charging function, with rich peripheral resources. It also provides USB, UART, I2C, and multiple MUX_GPIO interfaces, offering flexible expandability. It is an ideal choice for quickly developing HMI applications based on ESP32-S3.

Features

  • Equipped with high-performance Xtensa 32-bit LX7 dual-core processor, up to 240MHz main frequency
  • Supports 2.4GHz Wi-Fi and Bluetooth 5 (LE), onboard internal antenna, with solder joints reserved for external antenna setting
  • Built-in 512KB SRAM and 384KB ROM, with onboard 16MB Flash and 8MB PSRAM
  • Onboard 1.64inch AMOLED capacitive touch screen with 280 × 456 resolution, 16.7M color
  • AMOLED screen display uses a QSPI interface, capacitive touch screen uses an I2C interface
  • Onboard QMI8658 6-axis IMU (3-axis accelerometer and 3-axis gyroscope) for detecting motion gesture, step counting, etc.
  • Onboard RST and BOOT side buttons, BOOT supports custom button functions, making development and use more flexible
  • Onboard 3.7V MX1.25 lithium battery recharge/discharge header
  • Onboard TF card slot, supporting external TF card storage for pictures or files
  • Onboard USB Type-C port for power supply, firmware downloading and debugging, making development more convenient
  • Exposed I2C, UART, and USB pins for external devices and debugging, allowing flexible configuration of peripheral functions
  • The screen adopts CNC machining structure with edge wrapping and bonding, with delicate and soft texture, overall beautiful and durable

Onboard Resources

800px-ESP32-S3-Touch-AMOLED-1.64-details-6 (1).png

Interfaces

For more details, please refer to the Schematic Diagram
800px-ESP32-S3-Touch-AMOLED-1.64-details-7.png

Dimensions

800px-ESP32-S3-Touch-AMOLED-1.64-details-8.png

AMOLED Specifications

800px-ESP32-S3-Touch-AMOLED-1.64-details 9 (1).png

Usage Instructions

ESP32-S3-Touch-AMOLED-1.64 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.

Development Tools

180px-Arduino-IDE-logo.jpg

Arduino IDE

Arduino 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.

180px-ESP-IDF-logo.jpg

ESP-IDF

ESP-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.

Components Preparation

  • ESP32-S3-Touch-AMOLED-1.64 x1
  • TF card (capacity less than 64G) x1
  • USB cable (Type A male to Type C male) x 1

400px-ESP32-S3-Touch-AMOLED-1.64-details-10.png

Before operating, it is recommended to browse the table of contents to quickly understand the document structure. For smooth operation, please read the FAQ carefully to understand possible problems in advance. All resources in the document are provided with hyperlinks for easy download.

Working with Arduino

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. Arduino-flow-04.png

Environment Setup

Download and Install Arduino IDE

  • Click to visit the Arduino official website, select the corresponding system and system bit to download
    ESP32-S3-AMOLED-1.91-Ar-software-01.png
  • Run the installer and install all by default
The environment setup is carried out on the Windows 10 system, Linux and Mac users can access Arduino-esp32 environment setup for reference

Install ESP32 Development Board

  • Before using ESP32-related motherboards with the Arduino IDE, you must first install the software package for the esp32 by Espressif Systems development board
  • According to board installation requirement, it is generally recommended to use Install Online. If online installation fails, use Install Offline.
  • For the installation tutorial, please refer to Arduino board manager tutorial
  • ESP32-S3-Touch-AMOLED-1.64 required development board installation description
Board name Board installation requirement Version number requirement
esp32 by Espressif Systems "Install Offline" / "Install Online” ≥3.1.0

Install Library

  • When installing Arduino libraries, there are usually two ways to choose from: Install online and Install offline. If the library installation requires offline installation, you must use the provided library file
    For most libraries, users can easily search and install them through the online library manager of the Arduino software. However, some open-source libraries or custom libraries are not synchronized to the Arduino Library Manager, so they cannot be acquired through online searches. In this case, users can only manually install these libraries offline.
  • For library installation tutorial, please refer to Arduino library manager tutorial
  • ESP32-S3-Touch-AMOLED-1.64 library file path:
    ..\ESP32-S3-Touch-AMOLED-1.64-Demo\Arduino\libraries
  • ESP32-S3-Touch-AMOLED-1.64 library file installation instructions
Library Name Description Version Library Installation Requirement
LVGL Graphical library v8.4.0 "Install Offline”

Run the First Arduino Demo

If you are just getting started with ESP32 and Arduino, and you don't know how to create, compile, flash, and run Arduino ESP32 programs, then please expand and take a look. Hope it can help you!

New Project

  • Run the Arduino IDE and select File -> New Sketch
    ESP32-S3-AMOLED-1.91-Ar-study-01.png
  • Enter the code:
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);
}
  • Save the project and select 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

ESP32-S3-AMOLED-1.91-Ar-study-02.png

Compile and Flash Demos

  • Select the corresponding development board, take the ESP32S3 motherboard as an example:

①. 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.
ESP32-S3-AMOLED-1.91-Ar-study-03.png

  • Some development boards with specified version numbers support direct model selection, for example, "Waveshare ESP32-S3-LCD-1.69":

ESP32-S3-AMOLED-1.91-Ar-study-07.png

  • If the ESP32S3 mainboard only has a USB port, you need to enable USB CDC, as shown in the following diagram:

ESP32-S3-AMOLED-1.91-Ar-study-04.png

  • Compile and upload the program:

①. Compile the program; ②. Compile and download the program; ③. Download successful.
ESP32-S3-AMOLED-1.91-Ar-study-05.png

  • Open the Serial Monitor window, and the demo will print "Hello World!" every 2 seconds, and the operation is as follows:

ESP32-S3-AMOLED-1.91-Ar-study-06.png

Demo

Demo-flow-01.png

  • ESP32-S3-Touch-AMOLED-1.64 Demo
Demo Basic Description Dependency Library
01_ADC_Test Read the current voltage value of the system -
02_I2C_QMI8658 Print the original data sent by the IMU -
03_SD_Card Load and display the information of the TF card -
04_WIFI_AP Set to AP mode to obtain the MAC address of the access device -
05_WIFI_STA Set to STA mode to connect to WiFi and obtain an IP address -
06_LVGL_Test LVGL demo LVGL

Arduino Project Parameter Setting

ESP32-S3-Touch-AMOLED-1.64-11.jpg

01_ADC_Test

Demo description

  • The analog voltage connected through the GPIO is converted to digital by the ADC, and then the actual system voltage is calculated and printed to the terminal.

Hardware connection


  • Connect the board to the computer using a USB cable

300px-ESP32-S3-Touch-AMOLED-1.64-details-11.png

Code analysis


  • adc_bsp_init(void) : Initializes ADC1, including creating an ADC one-time trigger unit and configuring channel 3 for ADC1.
  • adc_get_value(float *value,int *data) : Reads the value of ADC1 channel 3 and calculates the corresponding voltage value based on the reference voltage and resolution, stores it at the position where the incoming pointer points to, and stores 0 if the read fails.
  • adc_example(void* parameter): Initialize ADC1 and then create an ADC task that reads the ADC value every 1 second and calculates the system's voltage based on the raw ADC value.

Result demonstration


  • The program compilation download is complete, and opening the serial port monitor will show the printed ADC values and voltage, as shown in the following figure:

ESP32-S3-Touch-AMOLED-1.43-demo-03.png

  • The ADC sampling value is about 1900, and the system voltage is about 4.9V. For a detailed analysis, you can refer to the Schematic Diagram.

02_I2C_QMI8658

Demo description

  • Through I2C protocol, initialize the QMI8658 chip, then read and print the corresponding attitude information every 1 second to the terminal.

Hardware connection


  • Connect the board to the computer using a USB cable (refer to demo 01)

Code analysis


  • qmi8658c_example(void* parameter): The function initializes the QMI8658 device, reading and printing accelerometer data, gyroscope data, and temperature data in an infinite loop, once every second. During the rotation of the board, the gyroscope data increases with greater rotation speed, and the accelerometer calculates the corresponding acceleration based on the current position.

Result demonstration


  • Open the serial port monitoring, and you can see the original data output from the IMU (Euler angles need to be converted by yourself), as shown in the following figure:

ESP32-S3-Touch-AMOLED-1.43-demo-05.png

  • Data is output once every second. If you need to modify or refer to it, you can directly access the qmi source file for operations.

03_SD_Card

Demo description

  • Select SPI or SDMMC method to drive the TF card through macro definition, and print the TF card information to the terminal after successfully mounting the TF card.

Hardware connection


  • Install a TF card on the board (you must insert a TF card with a capacity of less than 64G first), and use a USB cable to connect the board to the computer (refer to Example 01).

Code analysis


  • The communication protocol of the TF card can be implemented according to the user's choice, find the macro definition #define SDMMC_U under the source file sd_card_bsp.cpp, and remove the annotation of the macro definition to drive the TF card using SDMMC method.
//#define SDMMC_U

Result demonstration


  • Click on the serial port monitoring device, you can see the information of the output TF card, practical_size is the actual capacity of the TF card, as shown in the figure below:

ESP32-S3-AMOLED-1.91-Ar-demo-07.png

How to know more about the Arduino ESP32 libraries which explain the use of TF card? 可访问:Arduino ESP32 库 SD 使用

04_WIFI_AP

Demo description

  • This demo can set the development board as a hotspot, allowing phones or other devices in STA mode to connect to the development board.

Hardware connection


  • Connect the board to the computer using a USB cable (refer to demo 01)

Code analysis


  • In the file 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:
600px-ESP32-S3-LCD-1.3-1006.png

05_WIFI_STA

Demo description

  • The development board is used as a terminal role, which can connect to the AP available in the environment, and print the obtained IP information to the terminal after successful connection.

Hardware connection


  • Connect the board to the computer using a USB cable (refer to demo 01)

Code modification


The project realizes that the chip is connected to WIFI in STA mode and obtains the IP address, before compiling and downloading the firmware, some code needs to be modified, specifically changing the name and password of the WIFI router to those suitable for the environment.
ESP32-S3-AMOLED-1.91-Ar-demo-08.png

Code analysis


  • wifi_init(void): This function is used to initialize the Wi-Fi connection of the ESP32. It sets the ESP32 to Wi-Fi site mode and tries to connect to the specified Wi-Fi network (via the ssid and password). If the connection is successful, it prints the local IP address; if the connection fails within a certain period (20 * 500 milliseconds), it prints the connection failure message. At the same time, the function can also set the auto-connection and auto-reconnect functions.

Result demonstration


  • The chip is successfully connected to WIFI in STA mode, and you can see the obtained IP address by clicking on the serial port monitoring device, as shown in the figure:

ESP32-S3-AMOLED-1.91-Ar-demo-09.png

06_LVGL_Test

Demo description

  • Implement some multifunctional GUI interfaces on the screen by porting LVGL.

Hardware connection


  • Connect the board to the computer using a USB cable (refer to demo 01)

Code analysis


For LVGL, lvgl_conf.h is its configuration file. Below, some commonly used settings are explained, and some LVGL demos and file systems can also be configured in the conf file

/*Color depth: 1 (1 byte per pixel), 8 (RGB332), 16 (RGB565), 32 (ARGB8888)*/
#define LV_COLOR_DEPTH 16//Color depth, a macro definition that must be concerned with porting LVGL


#define LV_MEM_CUSTOM 0
#if LV_MEM_CUSTOM == 0
    /*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
    #define LV_MEM_SIZE (48U * 1024U)          /*[bytes]*/

    /*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
    #define LV_MEM_ADR 0     /*0: unused*/
    /*Instead of an address give a memory allocator that will be called to get a memory pool for LVGL. E.g. my_malloc*/
    #if LV_MEM_ADR == 0
        #undef LV_MEM_POOL_INCLUDE
        #undef LV_MEM_POOL_ALLOC
    #endif

#else       /*LV_MEM_CUSTOM*/
    #define LV_MEM_CUSTOM_INCLUDE <stdlib.h>   /*Header for the dynamic memory function*/
    #define LV_MEM_CUSTOM_ALLOC   malloc
    #define LV_MEM_CUSTOM_FREE    free
    #define LV_MEM_CUSTOM_REALLOC realloc
#endif     /*LV_MEM_CUSTOM*/
//The above section is mainly for LVGL memory allocation, 
//which defaults to lv_mem_alloc() versus lv_mem_free().

Code modification


  • The display chip itself does not support hardware rotation. If rotation is needed, it can be achieved through software. You can find the macro definition #define EXAMPLE_Rotate_90 in lcd_bsp.c file and uncomment this macro definition. Software rotation performance is not as good as hardware rotation.
//#define EXAMPLE_Rotate_90

Result demonstration


  • The LVGL demo has high requirements for RAM and ROM, so it is necessary to configure the demo according to the requirements of environment setup, and after the program is flashed, the running effect of the device is as follows:


400px-ESP32-S3-Touch-AMOLED-1.64-details-13.png

For more learning and use of LVGL, please refer to LVGL official documentation

Working with ESP-IDF

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. ESP-IDF-flow-01.png

Environment Setup

Download and Install Visual Studio

  • Open the download page of VScode official website, choose the corresponding system and system bit to download
    ESP32-S3-AMOLED-1.91-VScode-01.png
  • After running the installation package, the rest can be installed by default, but here for the subsequent experience, it is recommended to check boxes 1, 2, and 3
    ESP32-S3-AMOLED-1.91-VScode-02.png
    • After the first two items are enabled, you can open VSCode directly by right-clicking files or directories, which can improve the subsequent user experience.
    • After the third item is enabled, you can select VSCode directly when you choose how to open it
The environment setup is carried out on the Windows 10 system, Linux and Mac users can access ESP-IDF environment setup for reference

Install Espressif IDF Plugin

  • It is generally recommended to use Install Online. If online installation fails due to network factor, use Install OIffline.
  • For more information about how to install the Espressif IDF plugin, see Install Espressif IDF Plugin

Run the First ESP-IDF Demo

If you are just getting started with ESP32 and ESP-IDF, and you don't know how to create, compile, flash, and run ESP-IDF ESP32 programs, then please expand and take a look. Hope it can help you!

New Project

ESP32-S3-AMOLED-1.91-study-01.png

ESP32-S3-AMOLED-1.91-study-02.png

Create Demo

  • Using the shortcut F1, enter esp-idf:show examples projects

ESP32-S3-AMOLED-1.91-study-03.png

  • Select your current IDF version

ESP32-S3-AMOLED-1.91-study-04.png

  • Take the Hello world demo as an example

①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
ESP32-S3-AMOLED-1.91-study-05.png

  • Select the path to save the demo, and require that the demos cannot use folders with the same name

ESP32-S3-AMOLED-1.91-study-06.png

Modify COM Port

  • The corresponding COM ports are shown here, click to modify them
  • Please select the COM ports according to your device (You can view it from the device manager)
  • In case of a download failure, please press the Reset button for more than 1 second or enter download mode, and wait for the PC to recognize the device again before downloading once more

ESP32-S3-AMOLED-1.91-study-07.png

Modify Driver Object

  • Select the object we need to drive, which is our main chip ESP32S3

ESP32-S3-AMOLED-1.91-study-08.png

  • Choose the path to openocd, it doesn't affect us here, so let's just choose one

ESP32-S3-AMOLED-1.91-study-09.png

Other Status Bar Functions

①.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"

ESP32-S3-AMOLED-1.91-study-10.png

Compile, Flash and Serial Port Monitor

  • Click on the all-in-one button we described before to compile, flash and open the serial port monitor

ESP32-S3-AMOLED-1.91-study-11.png

  • It may take a long time to compile especially for the first time

ESP32-S3-AMOLED-1.91-study-12.png

  • During this process, the ESP-IDF may take up a lot of CPU resources, so it may cause the system to lag
  • If it is the first time to flash the program for a new project, you will need to select the download method, and select UART

ESP32-S3-AMOLED-1.91-study-13.png

  • This can also be changed later in the Download methods section (click on it to pop up the options)

ESP32-S3-AMOLED-1.91-study-14.png

  • As it comes with the onboard automatic download circuit, it can be downloaded automatically without manual operation
  • After successful download, it will automatically enter the serial monitor, you can see the chip output the corresponding information and be prompted to restart after 10S

ESP32-S3-AMOLED-1.91-study-15.png

Use the IDF Demos

The following takes ESP32-S3-LCD-1.47-Demo as an example to introduce the two opening methods of the project and the general steps of use, and the detailed explanation of the ESP-IDF project. If you use other projects, the operation steps can be applied similarly.

Open In the Software

  • Open VScode software and select the folder to open the demo

ESP32-S3-AMOLED-1.91-study-16.png

  • Select the provided ESP-IDF example and click to select the file (located in the /Demo/ESP-IDF path under demo)

ESP32-S3-AMOLED-1.91-study-17.png

Open from Outside the Software

  • Select the project directory correctly and open the project, otherwise it will affect the compilation and flashing of subsequent programs

ESP32-S3-AMOLED-1.91-study-18.png

  • After connecting the device, select the COM port and model, click below to compile and flash to achieve program control

ESP32-S3-AMOLED-1.91-study-19.png

ESP-IDF Project Details

  • Component: The components in ESP-IDF are the basic modules for building applications, each component is usually a relatively independent code base or library, which can implement specific functions or services, and can be reused by applications or other components, similar to the definition of libraries in Python development.
    • Component reference: The import of libraries in the Python development environment only requires to "import library name or path", while ESP-IDF is based on the C language, and the importing of libraries is configured and defined through CMakeLists.txt.
    • The purpose of CmakeLists.txt: When compiling ESP-IDF, the build tool 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:

ESP32-P4 VSCode ESP-IDF GettingStart 240906 02.png

Demo

Demo-flow-01.png

  • ESP32-S3-Touch-AMOLED-1.64 Demo
Demo Basic Description Dependency Library
01_ADC_Test Read the current voltage value of the system -
02_I2C_QMI8658 Print the original data sent by the IMU -
03_SD_Card Load and display the information of the TF card -
04_WIFI_AP Set to AP mode to obtain the MAC address of the access device -
05_WIFI_STA Set to STA mode to connect to WiFi and obtain an IP address -
06_LVGL_Test LVGL demo LVGL
07_FactoryProgram Comprehensive project LVGL


01_ADC_Test

Demo description

  • The analog voltage connected through the GPIO is converted to digital by the ADC, and then the actual system voltage is calculated and printed to the terminal.

Hardware connection


  • Connect the board to the computer using a USB cable

300px-ESP32-S3-Touch-AMOLED-1.64-details-11.png

Code analysis


  • adc_bsp_init(void) : Initializes ADC1, including creating an ADC one-time trigger unit and configuring channel 3 for ADC1.
  • adc_get_value(float *value,int *data) : Reads the value of ADC1 channel 3 and calculates the corresponding voltage value based on the reference voltage and resolution, stores it at the position where the incoming pointer points to, and stores 0 if the read fails.
  • adc_example(void* parameter): Initialize ADC1 and then create an ADC task that reads the ADC value every 1 second and calculates the system's voltage based on the raw ADC value.

Result demonstration


  • After the program is flashed, open the monitoring device and you can see the output ADC values and voltage, as shown in the figure below:

ESP32-S3-Touch-AMOLED-1.43-demo-10.png

  • The ADC sampling value is about 1960, and the system voltage is about 4.92V. For a detailed analysis, you can refer to the Schematic Diagram.

02_I2C_QMI8658

Demo description

  • Through I2C protocol, initialize the QMI8658 chip, then read and print the corresponding attitude information every 1 second to the terminal.

Hardware connection


  • Connect the board to the computer using a USB cable (refer to demo 01)

Code analysis


  • qmi8658c_example(void* parameter): The function initializes the QMI8658 device, reading and printing accelerometer data, gyroscope data, and temperature data in an infinite loop, once every second. During the rotation of the board, the gyroscope data increases with greater rotation speed, and the accelerometer calculates the corresponding acceleration based on the current position.

Result demonstration


After the demo is flashed, the running result of the device is as follows:

  • Open the serial port monitoring, and you can see the original data output from the IMU (Euler angles need to be converted by yourself), as shown in the following figure:

ESP32-S3-Touch-AMOLED-1.43-demo-12.png

  • You can see that it is output every 1 second. If you need to modify or refer to it, you can directly go to the qmi source file to modify it

03_SD_Card

Demo description

  • Select SPI or SDMMC method to drive the TF card through macro definition, and print the TF card information to the terminal after successfully mounting the TF card.

Hardware connection


  • Install a TF card on the board (you must insert a TF card with a capacity of less than 64G first), and use a USB cable to connect the board to the computer (refer to Example 01).

Code analysis


  • The communication protocol of the TF card can be implemented according to the user's choice, find the macro definition SD_Read_Mode under the source file sd_card_bsp.c, and remove the annotation of the macro definition to drive the TF card using SDMMC method.
//#define SDMMC_U

Result demonstration


  • Click on the serial port monitoring device, you can see the information of the output TF card, practical_size is the actual capacity of the TF card, as shown in the figure below:

ESP32-S3-Touch-AMOLED-1.43-demo-13.png

How to know more about the Arduino ESP32 libraries which explain the use of TF card? Please refer to Arduino ESP32 library TF card use.


04_WIFI_AP

Demo description

  • This demo can set the development board as a hotspot, allowing phones or other devices in STA mode to connect to the development board.

Hardware connection


  • Connect the board to the computer using a USB cable (refer to demo 01)

Code analysis


  • In the file 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:
600px-ESP32-S3-LCD-1.3-1008.png

05_WIFI_STA

Demo description

  • This example can configure the development board as a STA device to connect to the router and access the system network.

Hardware connection


  • Connect the board to the computer using a USB cable (refer to demo 01)

Code analysis


  • In the file 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:
600px-ESP32-S3-LCD-1.3-1009.png

06_LVGL_Test

Demo description

  • Implement some multifunctional GUI interfaces on the screen by porting LVGL.

Hardware connection


  • Connect the board to the computer using a USB cable (refer to demo 01)

Code analysis

  • The display chip itself does not support hardware rotation. If rotation is needed, it can be achieved through software. You can find the macro definition #define EXAMPLE_Rotate_90 in main.c file and uncomment this macro definition. Software rotation performance is not as good as hardware rotation
//#define EXAMPLE_Rotate_90

Result demonstration


  • After the demo is flashed, the running result of the device is as follows:

400px-ESP32-S3-Touch-AMOLED-1.64-details-13.png

For more learning and use of LVGL, please refer to LVGL official documentation

07_FactoryProgram

Demo description


  • Comprehensive project, test the onboard function, this demo needs to pay attention to the version of IDF, V5.2.0 or above may not be able to scan the surrounding wifi. If you need to test, you can use the lower version of the compilation or use the BIN firmware we provide.

Hardware connection


  • Connect the board to the computer using a USB cable (refer to demo 01)

Result demonstration


  • Swipe left or right to switch pages, first display RGB colors every 1.5 seconds, which can be used to observe if there are any issues with the screen

650px-ESP32-S3-Touch-AMOLED-1.64-details-15.jpg

  • After the RGB is displayed, it will automatically jump to the clock interface

350px-ESP32-S3-Touch-AMOLED-1.64-details-19.png

  • Swipe left on the interface, you can see that this page contains some built-in hardware information

350px-ESP32-S3-Touch-AMOLED-1.64-details-20.png

  • Swipe left again, you can see that the interface is a functional interface

350px-ESP32-S3-Touch-AMOLED-1.64-details-21.png

  • You can click on the WIFI icon to enter the WIFI test interface, then click the Scan button to scan the surrounding WIFI

350px-ESP32-S3-Touch-AMOLED-1.64-details-23.png

  • Click Exit to return to the previous interface, then click the BLE flag to enter the BLE test interface, and then click the Scan button to scan the surrounding BLE

350px-ESP32-S3-Touch-AMOLED-1.64-details-22.png

Flash Firmware Flashing and Erasing


  • The current demo provides test firmware, which can be used to test whether the onboard device functions properly by directly flashing the test firmware
  • bin file path:
    ..\ESP32-S3-Touch-LCD-1.64-Demo\Firmware

Resources

Schematic Diagram

Demo

3D Diagram

Datasheets

ESP32-S3

Other Components

Software Tools

Arduino

VScode

Firmware Flashing Tool

Other Resource Links

FAQ

 Answer:
  • Long press the BOOT button, press RESET at the same time, then release RESET, then release the BOOT button, at this time the module can enter the download mode, which can solve most of the problems that can not be downloaded.


 Answer:
  • First consider the network issue, try switching to another network


 Answer:
  • Check if the Arduino IDE -> Tools is correctly configured


 Answer:
  • Basic Chinese can be displayed, but if it is a rare character, it cannot be displayed
  • You can transcode the required rare characters through the transcoding software, and then add them to the project font library


 Answer:
  • It's normal for the first compilation to be slow, just be patient


 Answer:
  • If there is a reset button on the development board, press the reset button; if there is no reset button, please power it on again


 Answer:
  • Some AppData folders are hidden by default and can be set to show.
  • English system: Explorer->View->Check "Hidden items"
  • Chinese system: File Explorer -> View -> Display -> Check "Hidden Items”


 Answer:
  • Windows system:

①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.

  • Linux system:

①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.



 Answer:
  • A normal 3.7V-4.2V lithium battery with a PH1.25 interface for direct insertion.



Support



Technical Support

If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)