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-Touch-LCD-1.46 is a microcontroller development board that supports 2.4GHz Wi-Fi and BT BLE 5. It integrates large capacity Flash and PSRAM and has onboard 1.46inch capacitive touch LCD, 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.
Parameter Name | Parameter |
Interface | USB Type-C |
Controller chip | ESP32-S3 |
LCD type | TFT |
LCD controller chip | Display: SPD2010 |
Touch: SPD2010 | |
Onboard devices | Attitude sensor: QMI8658 |
RTC clock: PCF85063 | |
PCM audio decoding chip: PCM5101 | |
MIC | |
TF | |
Speaker | |
Battery recharging manager module | |
1. ESP32-S3R8 2. QST attitude sensor 3. 16MB Flash 4. Speaker 5. Battery recharge manager Chip 6. MP1605GTF-Z 7. Microphone 8. TCA9554PWR 9. Amplifier chip 10. PCM5101 audio decoding chip 11. RTC clock chip 12. Multi-functional pin header |
14. IPEX Gen 1 connector 15. Patch ceramic antenna 16. Battery header 17. Battery power supply control button 18. BOOT button 19. Speaker volume button 20. Charge indicator 21. Type-C interface 22. Power indicator 23. RTC battery header |
Pin | Function | Description |
GND | GND | Ground |
3V3 | 3V3 | External output 3.3V |
SCL | SCL (GPIO10) | I2C clock pin, cannot be used as regular GPIO |
SDA | SDA (GPIO11) | I2C data pin, cannot be used as regular GPIO |
Pin | Function | Description |
GND | GND | Ground |
3V3 | 3V3 | External output 3.3V |
TXD | TXD (GPIO43) | UART transmit data or as regular GPIO |
RXD | RXD (GPIO44) | UART receive data or as regular GPIO |
Pin | Function | Description |
5V | 5V | External output 5V |
GND | GND | Ground |
DN | DN (GPIO19) | For USB communication or as regular GPIO. When using as a regular I/O, you need to enter [[#FAQ | download mode] before flashing program each time |
DP | DP (GPIO20) | For USB communication or as regular GPIO. When using as a regular I/O, you need to enter [[#FAQ | download mode] before flashing program each time |
LCD Pin | ESP32S3 |
LCD_SDA0 | GPIO46 |
LCD_SDA1 | GPIO45 |
LCD_SDA2 | GPIO42 |
LCD_SDA3 | GPIO41 |
LCD_SCK | GPIO40 |
LCD_CS | GPIO21 |
LCD_TE | GPIO18 |
LCD_RST | EXIO2 |
LCD_BL | GPIO5 |
TP_SDA | GPIO11 |
TP_SCL | GPIO10 |
TP_INT | GPIO4 |
TP_RST | EXIO1 |
TF Card | ESP32S3 |
SD_D0 / MISO | GPIO16 |
SD_CMD / MOSI | GPIO17 |
SD_SCK / SCLK | GPIO14 |
SD_D3 / CS | EXIO3 |
SD_D1 | NC |
SD_D2 | NC |
QMI8658 | ESP32S3 |
IMU_SCL | GPIO10 |
IMU_SDA | GPIO11 |
IMU_INT1 | EXIO5 |
IMU_INT2 | EXIO4 |
PCF85063ATL | ESP32S3 |
RTC_SCL | GPIO10 |
RTC_SDA | GPIO11 |
RTC_INT | GPIO9 |
Buzzer | ESP32S3 |
MIC_WS | GPIO2 |
MIC_SCK | GPIO15 |
MIC_SD | GPIO39 |
PCM5101 | ESP32S3 |
Speak_DIN | GPIO47 |
Speak_LRCK | GPIO38 |
Speak_BCK | GPIO48 |
ESP32-S3-Touch-LCD-1.46 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.
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.
File
-->Preferences
from the Arduino IDE menu barhttps://espressif.github.io/arduino-esp32/package_esp32_index.json
①. Select BOARDS MANAGER in the sidebar;
②. Enter the name of the board you want to install ESP32 in the search box;
③. Select Version Number in the box;
④. Click INSTALL.
Board name | Board installation requirement | Version number requirement |
---|---|---|
esp32 by Espressif Systems | "Install Offline" / "Install Online" | 3.0.2 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" |
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 RTC, gyroscope, 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 displayDriver_Loop()
function creates a task (DriverTask
) that manages and loops some peripheral operationsLvgl_Loop()
is a loop function of the LVGL library that handles graphical interface updates, event responses, and other UI-related operations. In embedded systems, graphics libraries often need to be called frequently in the main loop to keep the interface refreshed and the interaction real-timevTaskDelay(pdMS_TO_TICKS(5))
is used to pause the task for 5 milliseconds. vTaskDelay
is a delay function in FreeRTOS that aims to reduce CPU usage, avoid taking up too much time slice, and ensure that other tasks of the system, such as peripheral processing, can be performed on timeResult 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 |
Angular deflection | Display the angular deflection of the board | Display the offset in three directions |
RTC Time | Display RTC time | Display current RTC time If the RTC time is not consistent with the current time, because the data cannot be retained in the power-off state, if you need to keep the RTC time normal, you need to connect the RTC battery and update the RTC time |
Wireless scan | Display the number of scanned WiFi | When it finishes, display Scan Finish 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
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 example programs, to assist users in mastering the development board and facilitating secondary development.
esp-idf: configure esp-idf extension
Plugin name | Plugin installation requirement | Version number requirement |
---|---|---|
Espressif IDF | "Install Offline" / "Install Online" | ≥5.3.1 |
Demo | Basic Description |
---|---|
ESP32-S3-Touch-LCD-1.46-Test | Test onboard device functionality |
Demo description
Hardware connection
Code analysis
Driver_Init()
is responsible for initializing multiple hardware modules, such as power management, clock, I2C bus, external I/O, sensors, etc.xTaskCreatePinnedToCore()
creates a FreeRTOS task Driver_Loop
and binds it to Core 0. This means that the Driver_Loop
function will be executed in a loop, handling the hardware-related operations. This task will run concurrently with other tasks, contributing to the real-time performance of the hardware driverDriver_Loop()
function, such as QMI8658_Loop()
, PCF85063_Loop()
, BAT_Get_Volts()
and PWR_Loop()
, these are hardware operations that are performed in real timeQMI8658_Loop()
: Handles interaction with QMI8658 sensor and reads sensor dataPCF85063_Loop()
: Handles PCF85063 clock module and updates the timeBAT_Get_Volts()
: Gets the current battery voltage to ensure that the device battery level meets the requirementsPWR_Loop()
: Performs power management tasks, monitors power supply status, and controls power on or offvTaskDelay(pdMS_TO_TICKS(100))
, the Driver_Loop()
function delays once every 100 milliseconds. This helps ensure that the task does not consume excessive CPU resources and avoids too frequent operations on hardwarevTaskDelete(NULL)
is used to delete the current task, but since while(1)
is an infinite loop, the actual line of code will never be executedResult 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 |
Angular deflection | Display the angular deflection of the board | Display the offset in three directions |
RTC Time | Display RTC time | Display current RTC time If the RTC time is not consistent with the current time, because the data cannot be retained in the power-off state, if you need to keep the RTC time normal, you need to connect the RTC battery and update the RTC time |
Wireless scan | Display the number of scanned WiFi | When it finishes, display Scan Finish 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
①.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-Touch-LCD-1.46-Demo\Firmware
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
Monday-Friday (9:30-6:30) Saturday (9:30-5:30)
Email: services01@spotpear.com