Parameters
Items | Parameters |
|
Connector | USB Type-A |
|
Controller | ESP32-S3 |
|
Screen | TFT |
|
Display Controller | Display: ST7789 |
Onboard Device | Micro SD |
Onboard Function
Internal Hardware Connection
LCD
LCD PIN | ESP32S3 |
MOSI | GPIO45 |
SCLK | GPIO40 |
LCD_CS | GPIO42 |
LCD_DC | GPIO41 |
LCD_RST | GPIO39 |
LCD_BL | GPIO48 |
RGB Beads
RGB Beads | ESP32S3 |
SD_D0 / MISO | GPIO38 |
SD Card
SD Card | ESP32S3 |
SD_D0 / MISO | GPIO16 |
SD_CMD / MOSI | GPIO15 |
SD_SCK / SCLK | GPIO14 |
SD_D3 / CS | GPIO21 |
SD_D1 | GPIO18 |
SD_D2 | GPIO17 |
Working with ESP-IDF
The following development system is Windows by default, and it is recommended to use the VSCode plug-in for development.
Develop with VSCode Plug-in
Install VSCode
- 1. Open the download page of the official VSCode website, and select the corresponding system and system bit to download.
- 2. 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.
- After the first and second 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.
Install Espressif IDF Plug-in
- Note: The latest version of the current plug-in is V1.6.0, for a consistent experience, users can choose the same version as us.
- 1. Open VSCode and use the shortcut key Shift + Ctrl + X to enter the plugin manager.
- 2. In the search bar, type Espressif IDF, select the corresponding plug-in, and click install.
- 3. Press F1 to enter:
esp-idf: configure esp-idf extension
- 4. Choose express (This tutorial is for first-time users, so only the first general installation tutorial is covered.)
- 5. Open and display this screen.
- 6. Choose a server to download. Choose Espressif
- 7. Select the ESP-IDF version you want now, we choose the latest V5.0.1 (note that ESP-IDF started to support ESP32-S3 only after V4.4).
- 8. The following two are the ESP-IDF directory installation address and the ESP-IDF required tools installation address respectively.
- Note: If you have installed ESP-IDF before, or if it has failed, please make sure to delete the file completely or create a new path.
- 9. Once the configuration is finished, click "install" to download.
- 10. Enter the download page, and it will automatically install the corresponding tools and environment, just wait a moment.
- 11. After the installation is completed, it will enter the following screen, indicating that the installation is finished.
Official Demo Usage
- Click here to view more details provided by the official ESP.
Creating a Demo
- 1. Using the shortcut F1, type:
esp-idf:show examples projects
- 2. Choose your current IDF version:
- 3. Take "Hello World" as an example:
- 4. Choose the corresponding demo.
- 5. The readme file will explain which chip the demo is suitable for (the following section will introduce how to use the demo and its file structure, which is omitted here).
- 6. Click to create the demo.
- 7. Choose the path to place the demo and ensure that there is no folder with the same name as the demo.
Modify COM Port
- 1. The corresponding COM port is displayed here, click on it to modify.
- 2. We check the device manager COM port, and select COM5, please select your corresponding COM port:
- 3. Choose the project and demo.
- 4. Then the COM port is modified.
Modify the Driver
- 1. Here shows the driver used, click here to modify the corresponding driver:
- 2. Choose the project or demo:
- 3. Wait for a few seconds after clicking.
- 4. Choose the driver we need, that is, the main chip ESP32S3.
- 5. Choose the openocd path, we can just choose one at random as it doesn't matter.
The Rest of the Status Bar Introduction
- ① SDK configuration editor: many functions and configurations of ESP-IDF can be modified within it.
- ② Clean up everything and delete all compiled files.
- ③ Compile.
- ④ Current download method, default is UART.
- ⑤ Program the current firmware, please do it after compiling.
- ⑥ Open the serial monitor to view serial information.
- ⑦ Combined button for compiling, programming, and opening the serial monitor (most commonly used during debugging).
Compile, Program, and Serial Port Monitoring
- 1. Click on the Compile, Program, and Open Serial Monitor buttons we described earlier.
- 2. It may take a long time to compile, especially for the first time.
- During this process, ESP-IDF may take up a lot of CPU resources and therefore may cause system lag.
- 3. Because we use CH343 as a USB to serial port chip, and the on-board automatic download circuit, it can be downloaded automatically without manual operation.
- 4. After successful download, it will automatically enter the serial monitor, and you can see the corresponding information output from the chip and prompt to reboot after 10s.
Sample Demo
- Open VScode software and select the file folder to open the example.
- Select the provided ESP-IDF example and click to select the file:
- After connecting the device, select the COM port and type, click to compile and run the demo:
Working with Arduino
- Please note that ESP32 3.0.2 on Arduino is based on ESP-IDF v5.1, which is quite different from the previous one based on ESP-IDF V4.X. After the following operations, the original program which can be run normally may need to be adjusted a little bit before it can be used.
- Please note that the computer user name must be English, the user name in Chinese will lead to compilation errors!
Environment Set-up
- Install Arduino IDE.
- Enter Arduino IDE after installation.
- Enter preferences: File -》Preferences
- Add JSON link:
https://espressif.github.io/arduino-esp32/package_esp32_index.json
- Modify the project file folder as C:\Users\Waveshare\AppData\Local\Arduino15\packages (Waveshare is the computer username).
- Go to the board manager, search for esp32, select the latest version of esp32 by Espressif Systems at the bottom, and click install (if it doesn't install correctly, you can try using a phone hotspot).
- Restart the Arduino IDE after installation, and then you can use it.
Install Library File
- Please note whether the library has been previously installed, if so, please store the original library to prevent errors and failures when running other programs.
- Open Arduino IDE and search the library.
- Search for the lvgl library and install it (this is to set up the library folder in the Arduino environment, if you have already installed other libraries, i.e. the folder below exists, you don't need to do this step).
- Enter the path of storing library file: c:\Users\Waveshare\AppData\Local\Arduino15\packages\libraries. (Waveshare is the computer username). This step is for entering libraries under the project file folder. If you are not ensure which file folder is, you can check it after entering Preferences.
- Check it if the path is not clear
- Delete the downloaded lvgl library (skip this step if it is not installed):
- Install the two provided libraries and create a new Lib folder in the example path.
- Download and unzip the library file (lvgl library), and store it at the new lib path.
- Copy the provided library to "c:\Users\Waveshare\AppData\Local\Arduino15\packages\libraries" (Waveshare is the computer username). Check it after entering Preferences.
- Continue to install PNGdec library:
Sample Demo
- Open the LVGL_Arduino example, according to the following operation to realize the display, sample LCD display function.
- Select ESP32S3 Dev Module and COM port.
- Set the board parameters:
- Compile and upload the demo:
- The LVGL page can be observed after programming.
- Example LCD_Imege can realize to display the PNG files in the root directory of the SD card at certain intervals, please note that the PNG files provided must be normal, and you can't directly modify the suffix to realize.
- Products using the ESP32 in the Arduino IDE playability is relatively high, can be in the framework of the existing program simple UI interface modification can be realized cool operation, in some open source platforms on the resources can also be used directly under minor modifications.
Erase Device Flash
- Unpack the software resource package (Flash debugging software).
- Open flash_download_tool_3.9.5.exe software, select ESP32-S3 and USB.
- Select the UART port number, and click START (not select any bin file).
- After programming, click on "ERASE".
- Waiting for Erase to Finish.
Resource
Document
ESP32-S3 Datasheet
Demo
FAQ
Question:Why does the module keep resetting and blinking its status on the Device Manager interface?
Answer:
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 burn the firmware (program) to solve the situation.
Question:After the module downloads the program and re-downloads it, sometimes it can't connect to the serial port or the burn-in fails?
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.
Support
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Mobile: +86 13434470212
Email: services01@spotpear.com