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-DualEye-Touch-LCD-1.28 is a microcontroller development board that supports 2.4GHz Wi-Fi and BT BLE 5. It integrates large capacity Flash and PSRAM, featuring two 1.28inch touch LCD on board, capable of smoothly running GUI interface programs such as LVGL. Combined with various peripheral interfaces, it is suitable for the quick development of the HMI and other ESP32-S3 applications.
Parameter Name | Parameter |
Interface | USB Type-C |
Controller chip | ESP32-S3 |
LCD controller chip | Display: GC9A01A |
Touch: CST816 | |
Onboard devices | ES8311 |
ES7210 | |
MIC | |
TF | |
Speaker | |
Battery recharging manager module | |
Mounting screw | M2 |
LCD Pin | ESP32S3 |
LCD_DOUT | GPIO40 |
LCD_CLK | GPIO41 |
LCD_DIN | GPIO42 |
LCD_DC | GPIO45 |
LCD_CS | GPIO47 |
LCD_RST | GPIO48 |
LCD_BL | GPIO46 |
TP_SDA | GPIO11 |
TP_SCL | GPIO10 |
TP_INT | GPIO5 |
TP_RST | GPIO4 |
LCD Pin | ESP32S3 |
LCD_DOUT | GPIO40 |
LCD_CLK | GPIO41 |
LCD_DIN | GPIO42 |
LCD_DC | GPIO45 |
LCD_CS | GPIO38 |
LCD_RST | GPIO8 |
LCD_BL | GPIO39 |
TP_SDA | GPIO3 |
TP_SCL | GPIO2 |
TP_INT | GPIO7 |
TP_RST | GPIO6 |
TF Card | ESP32S3 |
SD_D0 / MISO | GPIO18 |
SD_CMD / MOSI | GPIO21 |
SD_SCK / SCLK | GPIO17 |
SD_D3 / CS | NC |
SD_D1 | NC |
SD_D2 | NC |
ES8311 | ESP32S3 |
I2C_SDA | GPIO11 |
I2C_SCL | GPIO10 |
I2S_MCLK | GPIO12 |
I2S_SCLK | GPIO13 |
I2S_LRCK | GPIO14 |
I2S_DSDIN | GPIO16 |
ES7210 | ESP32S3 |
I2C_SDA | GPIO11 |
I2C_SCL | GPIO10 |
I2S_MCLK | GPIO12 |
I2S_SCLK | GPIO13 |
I2S_LRCK | GPIO14 |
I2S_ASDOUT | GPIO15 |
ESP32-S3-DualEye-Touch-LCD-1.28 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.2.0 and above |
Library Name | Description | Version | Library Installation Requirement |
---|---|---|---|
LVGL | Graphical library | v8.3.10 | "Install Offline" |
ESP32-audioI2S-master | Audio decoding library | v2.0.0 | "Install Offline" |
es7210 | Audio driver library | xxx | "Install Offline" |
es8311 | Audio driver library | xxx | "Install Offline" |
esp_lcd_touch_cst816s | Touch driver library | xxx | "Install Offline" |
espressif__esp_lcd_touch | Touch driver library | xxx | "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, ESP32-audioI2S-master |
Demo description
Hardware connection
Code analysis
setup()
internally executes multiple initialization functions to configure and initialize hardware components connected to Arduino, such as LCD display, TF card, audio module, microphone, etc. With these initializations, it is ensured that the hardware is working properlyLvgl_Init()
to initialize LVGL (Light and Versatile Graphics Library), a widely used graphics library for embedded systems. Lvgl_Example1()
is a demo that shows how to render a graphical interface on a displayResult 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 |
Backlight brightness | Brightness slider | Adjust screen brightness |
// Commands Turn on the backlight Turn off the backlight Backlight is brightest Backlight is darkest
The initial environment setting is for English recognition, and you can switch to Chinese recognition model or back to English recognition model by following these steps
Chinese recognition environment setup
English recognition environment setup
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.4.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, please refer to 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 |
---|---|
01_Text_Number | Test text and number display |
02_Shapes_on_Circular | Draw graphics |
03_Animated_Eye1 | Simulated eye style |
04_SD_gif_show | Display GIF images from the TF card |
05_Clock | Clock |
06_music_player | Test onboard device functionality |
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Result demonstration
Demo description
Hardware connection
Code analysis
Driver_Init()
is responsible for initializing multiple hardware modules, such as I2C bus, sensors, etc.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 |
Wireless scan | Display the number of scanned WiFi | Scan completion will display ..OK at the end |
Backlight brightness | Brightness slider | Adjust screen brightness |
// Commands Turn on the backlight Turn off the backlight Backlight is brightest Backlight is darkest
The initial environment setting is for English recognition, and you can switch to Chinese recognition model or back to English recognition model by following these steps
①.Enter python --version and the python version number appears, which means that it is installed
②.Type where python to see where python is installed
The Python environment under the C drive is the Python environment that is automatically installed when VS Code is installed;
The disk E contains the Python environment used in the following steps;
cd /d E:\download\Generate_Chinese_command
python multinet_pinyin.py "Chinese to be converted to Pinyin" Example: Python multinet_pinyin.py "你好微雪电子"
cd /d E:\download\Generate_English_command
python gen_sr_commands.py "English to be converted to phonemes" Example: python gen_sr_commands.py "hello waveshare"
..\ESP32-S3-DualEye-Touch-LCD-1.28-Demo\Firmware
Pressing PWR allows battery power, initiating the system. At this point, the system should define SYS_EN to continuously output a high voltage level to maintain the powered-on effect. Releasing PWR will not cause a power cut. The function of PWR at this time is to lower SYS_OUT. The system detects actions such as pressing, double pressing, and long pressing on SYS_OUT, enabling customizable power-off control operations. For instance, in a long press mode, setting SYS_EN to a low level to disconnect the battery power completes the use of the multi-purpose buttons.
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.
Depending on the demo you run, different demos have different refresh frame rates.
Whether you use the USB to UART tool to connect the UART pins, or enable USB CDC in Tools
Yes, it can be used simultaneously, but due to the larger memory usage of audio, the audio function cannot be turned on at the same time
MX1.25 interface 3.7V lithium battery
Use the one that corresponds to our interface and output voltage, the capacity depending on customer needs
OK, just the functions related to TF card cannot be used, and other functions are not affected
The screen and back panel of this type of product adopt an integrated bonding design. To ensure normal use, it is recommended to avoid disassembling or prying open the adhesive layer by yourself. If the screen is damaged due to disassembly, it cannot be repaired
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com