• sales

    +86-0755-88291180

ESP32-Touch-LCD-3.5 User Guide

Features

  • Powered by the ESP32-D0WDR2-V3 high-performance Xtensa 32-bit LX6 dual-core processor, with a main frequency of up to 240 MHz
  • Supports 2.4 GHz Wi-Fi (802.11 b/g/n) with speeds up to 150 Mbps
  • Bluetooth v4.2 full standard, including Classic Bluetooth (BR/EDR) and Bluetooth Low Energy (Bluetooth LE)
  • Built-in 520 KB SRAM and 448 KB ROM, with stacked 2 MB PSRAM and external 16 MB Flash
  • Features a Type-C interface, enhancing user convenience and device compatibility
  • Built-in 3.5inch capacitive touch high-definition IPS display with a resolution of 320×480, 262K colors for clear color pictures
  • Embedded with ST7796 driver chip and FT6336 capacitive touch chip, communicating through SPI and I2C interfaces respectively, minimizes required IO pins
  • Onboard PCF85063 RTC chip; when a battery is connected, it keeps time even when powered off
  • Onboard PWR and BOOT side buttons, configurable for custom function development
  • Onboard 3.7V MX1.25 lithium battery charge/discharge interface
  • I2C, UART, and multiple GPIOs are broken out for external device connection and debugging, allowing flexible peripheral configuration
  • Onboard TF card slot, providing expanded storage, fast data transfer, and flexibility, suitable for data logging and media playback, simplifying circuit design
  • Using AXP2101 offers benefits such as efficient power management, support for multiple output voltages, charging and battery management functions, and optimization of battery life

Onboard Resources


  1. ESP32-D0WDR2-V3 (back side) Wi-Fi and Bluetooth SoC, 240 MHz clock, 2MB PSRAM
  2. 16MB NOR Flash (back side)
  3. IPEX1 connector Switching to use the external antenna via resoldering an onboard resistor
  4. Onboard antenna
  5. TF card slot
  6. MX1.25 speaker header
  7. BOOT button
  8. RESET button
  9. PWR Button Default long press for 6s to power off, short press to power on
  10. AXP2101 Highly integrated power management chip
  11. Charging indicator
  12. Power indicator
  13. Type-C port
  14. Microphone
  15. PCF85063
  16. RTC clock chip
  17. ES8311 Low-power audio codec chip
  18. 2.54mm pitch GPIO header Brings out available IO function pins for easy expansion
  19. MX1.25 lithium battery header MX1.25 2PIN connector for connecting a 3.7V lithium battery, supports charging and discharging

LCD and its Controller

  • The LCD uses the built-in ST7796S controller, a 320 (H) × 480 (V) pixel LCD controller.
  • Supports RGB444 (12-bit), RGB565 (16-bit), RGB666 (18-bit); RGB565 is recommended (balancing color performance and transfer efficiency).
  • Supports 4-wire SPI interface (SCL clock line, SDA data line, DC data/command line, CS chip select line)
  • The ST7796S normally has a rectangular display area (refer to the module specification). This module has rounded corners; the actual display area may be slightly smaller than 320×480, so leave some margin at the image edges.

SPI Communication Protocol:


Note: The SPI interface here is specifically designed for screen display, therefore the data line from slave to master (MISO) is omitted.

  • RESX is the Reset pin; it is pulled low during module power-up and is normally set to 1.

  • CSX is the slave chip select pin; the chip is enabled only when CS is low

  • D/CX is the data/command control pin of the chip. When DC = 0, commands are written; when DC = 1, data is written.

  • SDA is the data transmission pin, specifically for RGB data.

  • SCL is the SPI communication clock pin.

For SPI communication, data transmission follows a specific timing sequence, which are determined by the combination of clock phase (CPHA) and clock polarity (CPOL):

  • The level of CPHA determines whether data is captured on the first or second clock transition edge of the serial synchronous clock. When CPHA = 0, data is captured on the first transition edge;

  • The level of CPOL determines the idle level of the serial synchronous clock. CPOL = 0 means the idle state is low level.

As can be seen from the diagram, data transmission begins at the first falling edge of SCL. One clock cycle transmits 1 bit of data, using SPI0 mode, transmitted bit by bit with the Most Significant Bit (MSB) first and the Least Significant Bit (LSB) last.

Pinout Definition

When using the GPIO terminals reserved on the ESP32-Touch-LCD-3.5 board, pay attention to the wire colors and their corresponding functions to avoid burnout of the development board due to wiring habits


Dimensions


Working with Arduino

This chapter contains the following sections. Please read as needed:

Arduino Getting Started

New to Arduino ESP32 development and looking for a quick start? We have prepared a comprehensive Getting Started Tutorial for you.

Note: This tutorial uses the ESP32-S3-Zero as a reference example, and all hardware code is based on its pinout. Before you start, we recommend checking the pinout of your development board to ensure the pin configuration is correct.

Setting Up the Development Environment

1. Installing and Configuring the Arduino IDE

Please refer to the tutorial Installing and Configuring Arduino IDE to download and install the Arduino IDE and add ESP32 support.

2. Installing Libraries

You can click this link to download the example package for the ESP32-Touch-LCD-3.5 board from the Arduino directory. The Arduino\libraries directory within this package contains all the necessary library files required for this tutorial.

Library/File NameDescriptionVersionInstallation Method
ESP32-audioI2S-masterAudio processing libraryv3.4.0Via Library Manager or manual
GFX_Library_for_ArduinoGFX graphics libraryv1.6.0Via Library Manager or manual
lvglLVGL graphics libraryv8.4.0Via Library Manager or manual
OneButtonButton libraryv2.6.1Via Library Manager or manual
SensorLibSensor driver libraryv0.3.1Via Library Manager or manual
TCA9554I/O expander libraryv0.1.2Via Library Manager or manual
XPowersLibPower management libraryv0.2.9Via Library Manager or manual
ESP32-A2DPBluetooth audio processingManual
VERSION COMPATIBILITY NOTES

There are strong dependencies between versions of LVGL and its driver libraries. For example, a driver written for LVGL v8 may not be compatible with LVGL v9. To ensure that the examples can be reproduced reliably, it is recommended to use the specific versions listed in the table above. Mixing different versions of libraries may lead to compilation failures or runtime errors.

Installation Steps:

  1. Download the example package.

  2. Copy all folders (GFX_Library_for_Arduino, ESP32-audioI2S-master, etc.) in the Arduino\libraries directory to the Arduino libraries folder.

    INFO

    The path to the Arduino libraries folder is typically: c:\Users\<username>\Documents\Arduino\libraries.

    You can also locate it in the Arduino IDE by going to File > Preferences and checking the "Sketchbook location". The libraries folder is the libraries subfolder within this path.

  3. For other installation methods, please refer to: Arduino Library Management Tutorial.

3. Additional Tips

For ESP32-Touch-LCD-3.5 Arduino project parameter setting, you need to select the ESP32 Dev Module.


Example

The Arduino examples are located in the Arduino/examples directory of the example package.

ExampleBasic DescriptionDependency Library
01_i2s_audioRead audio files from the TF card and play themESP32-audioI2S-master
02_axp2101_examplePrint data from the power management ICXPowersLib
03_button_exampleButton testOneButton
04_es8311_exampleRecord audio for a period and play it backes8311
05_pcf85063_examplePrint data from the RTCSensorLib
06_tca9554_exampleI/O expander testTCA9554
07_sd_card_testTest TF card read/write-
08_gfx_helloworldDisplay "HelloWorld" on the screenGFX_Library_for_Arduino, TCA9554
09_lvgl_arduino_v8lvgl v8.4.0 example programGFX_Library_for_Arduino, TCA9554, lvgl, SensorLib
10_lvgl_arduino_v9lvgl v9.3.0 example programGFX_Library_for_Arduino, TCA9554, lvgl, SensorLib
11_bt_music_receiver_arduino_i2sBluetooth music playback exampleESP32-A2DP, GFX_Library_for_Arduino, TCA9554, OneButton

01_i2s_audio

This example demonstrates the ESP32-Touch-LCD-3.5 reading audio files from the TF card and playing them through the speaker, supporting MP3, AAC, WAV, and other formats.

Preparation

  • Insert the TF card into the computer
  • Create a folder named music in the root directory of the TF card
  • Copy the 1.mp3 file from the data folder of this project to the music folder on the TF card
  • Insert the TF card into ESP32-Touch-LCD-3.5

Operation Result

The device will play auido directly without showing content on the screen

Code

01_i2s_audio.ino

Code Analysis

  • Initialize the I2C peripheral, configure the ES8311 codec, and enable the PA_CTRL amplifier pin:

    Wire.begin(I2C_SDA, I2C_SCL);
    TCA.begin();
    TCA.pinMode1(2,OUTPUT);
    TCA.write1(2, 1);

    es8311_codec_init();
  • Initialize the I2S peripheral, mount the TF card, set the playback volume, and play the MP3 file at path music/1.mp3:

    SPI.begin(SPI_SCK, SPI_MISO, SPI_MOSI, SD_CS);
    if (!SD.begin(SD_CS)) {
    esp_rom_printf("Card Mount Failed\n");
    while (1) {
    };
    }

    audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
    audio.setVolume(21); // 0...21

    audio.connecttoFS(SD, "music/1.mp3");

02_axp2101_example

This example demonstrates using XPowers to drive the AXP2101 and prints data over the serial port.

Operation Result


Code

02_axp2101_example.ino

Code Analysis

  • Initialize the I2C peripheral and the AXP2101 battery management IC:

    bool result = power.begin(Wire, AXP2101_SLAVE_ADDRESS, i2c_sda, i2c_scl);

    if (result == false) {
    Serial.println("power is not online...");
    while (1) delay(50);
    }

03_button_example

This example demonstrates using the OneButton library to read the single-click, double-click, and long-press states of the BOOT, PWR, and PLUS buttons, and prints them over the serial port.

Operation Result


Code

03_button_example.ino

Code Analysis

  • Bind button event callback functions:

    button1.attachClick(click1);
    button1.attachDoubleClick(doubleclick1);
    button1.attachLongPressStart(longPressStart1);
    button1.attachLongPressStop(longPressStop1);
    button1.attachDuringLongPress(longPress1);

04_es8311_example

This example demonstrates driving the ES8311 audio codec with the ESP32-Touch-LCD-3.5 to implement audio recording and playback.

Operation Result

  • No visual feedback on the screen.
  • Press the RST button on the ESP32-Touch-LCD-3.5 to start recording; playback begins 5 seconds later.

Code

04_es8311_example.ino

Code Analysis

  • Initialize I2C, ES8311 and I2S:

    Wire.begin(I2C_SDA, I2C_SCL);
    es8311_codec_init();
    setupI2S();
  • Record audio for 5 seconds and play the recorded content:

    wav_buffer = i2s.recordWAV(5, &wav_size);
    delay(1000);
    Serial.println("I2S playWAV");
    i2s.playWAV(wav_buffer, wav_size);

05_pcf85063_example

This example demonstrates driving the PCF85063 with the ESP32-Touch-LCD-3.5 to set and retrieve time and date.

Operation Result

  • No visual feedback on the screen.
  • Open the serial port monitor.

Code

05_pcf85063_example.ino

Code Analysis

  • Initialization:

    // Try to initialize the RTC module using I2C with specified SDA and SCL pins
    if (!rtc.begin(Wire, SENSOR_SDA, SENSOR_SCL)) {
    Serial.println("Failed to find PCF85063 - check your wiring!");
    // Enter an infinite loop to halt the program
    while (1) {
    delay(1000);
    }
    }
  • Set the time and date:

    rtc.setDateTime(year, month, day, hour, minute, second);
  • Get the time and date:

    RTC_DateTime datetime = rtc.getDateTime();

06_tca9554_example

This example demonstrates driving the TCA9554 with ESP32-Touch-LCD-3.5 to perform read and write operations on the pins of the extended IO.

Operation Result

  • No visual feedback on the screen.
  • Open the serial port monitor.

Code

06_tca9554_example.ino

Code Analysis

  • Set pin mode:

    TCA.pinMode1(pin, OUTPUT);
  • Set pin level:

    TCA.write1(pin, LOW);
  • Read pin level:

    int val = TCA.read1(pin);

07_sd_card_test

This example demonstrates testing TF card read/write functionality with the ESP32-Touch-LCD-3.5.

Hardware Connection

*Connect the board to the computer *Insert the TF card into the card slot (the TF card must be formatted as FAT32)

Operation Result

  • No visual feedback on the screen.
  • Open the serial port monitor.

Code

07_sd_card_test.ino

Code Analysis

  • Initialization:

    if(!SD_MMC.setPins(clk, cmd, d0)){
    Serial.println("Pin change failed!");
    return;
    }

    if (!SD_MMC.begin( "/sdcard", true)) {
    Serial.println("Card Mount Failed");
    return;
    }

08_gfx_helloworld

This example demonstrates using the GFX_Library_for_Arduino library to drive the screen on the ESP32-Touch-LCD-3.5 and display "HelloWorld".

Operation Result


Code

08_gfx_helloworld.ino

Code Analysis

  • Configure the screen interface and resolution, etc.:

    Arduino_DataBus *bus = new Arduino_ESP32SPI(27 /* DC */, 5 /* CS */, 18 /* SCK */, 23 /* MOSI */, 19 /* MISO */);

    Arduino_GFX *gfx = new Arduino_ST7796(bus, GFX_NOT_DEFINED /* RST */, 0 /* rotation */, true /* IPS */);

09_lvgl_arduino_v8

This example demonstrates running an LVGL (v8.4.0) example program on the ESP32-Touch-LCD-3.5.

Need to install lvgl v8.4.0. If another version is installed, please reinstall it.


Operation Result


Code

09_lvgl_example_v8.ino

Code Analysis

  • setup():

    • Initialize the screen and LVGL;
  • loop():

    • Calls lv_timer_handler to let LVGL handle GUI tasks

10_lvgl_arduino_v9

This example demonstrates running an LVGL (v9.3.0) example program on the ESP32-Touch-LCD-3.5.

Need to install lvgl v9.3.0. If another version is installed, please reinstall it.


Operation Result


Code

10_lvgl_example_v9.ino

Code Analysis

  • my_disp_flush():

    • This function is the refresh funtion of LVGL display driver. It is responsible for refreshing the LVGL drawing buffer content to the display screen;
    • Depending on the color format setting, it calls the appropriate gfx object function to draw the bitmap to the specified area.
    • Finally, it notifies LVGL that the display refreshing is complete.
  • loop():

    • Calls lv_timer_handler to let LVGL handle GUI tasks
    • Uses delay(5) to increase the data polling frequency, ensuring timely retrieval of sensor data and display updates.

11_bt_music_receiver_arduino_i2s

This example demonstrates using the ESP32-Touch-LCD-3.5 to connect via Bluetooth and play music, with song information displayed on the screen.

Set Partition Scheme to "Custom"


*QQ Music: Settings ->Lyrics ->Car Bluetooth Lyrics *NetEase Cloud Music: Settings - > General - > External Devices - > External Devices Bluetooth Lyrics

Operation Result

*Connect to Bluetooth from your phone or tablet. (Model: ESP32-Touch-LCD-3.5) *The song information is displayed on the screen.



Working with ESP-IDF

This chapter includes the following sections, please read as needed:

ESP-IDF Getting Started

New to ESP32 ESP-IDF development and looking to get started quickly? We have prepared a general Getting Started Tutorial for you.

Please Note: This tutorial uses the ESP32-S3-Zero as a teaching example, and all hardware code is based on its pinout. Before you start, it is recommended that you check the pinout of your development board to ensure the pin configuration is correct.

Setting Up the Development Environment

NOTE

The following guide uses Windows as an example, demonstrating development using VS Code + the ESP-IDF extension. macOS and Linux users should refer to the official documentation.

VERSION SELECTION

The screenshots in this section use ESP-IDF V5.5.2 as an example. When installing, please select the ESP-IDF version that matches your board's example.

Install the ESP-IDF Development Environment

  1. Download the installation manager from the ESP-IDF Installation Manager page. This is Espressif's latest cross-platform installer. The following steps demonstrate how to use its offline installation feature.

    Click the Offline Installer tab on the page, then select Windows as the operating system and the ESP-IDF version you need (the version shown in the screenshot is for reference only — choose the version that fits your actual needs).


    After confirming your selection, click the download button. The browser will automatically download two files: the ESP-IDF Offline Package (.zst) and the ESP-IDF Installer (.exe).


    Please wait for both files to finish downloading.

  2. Once the download is complete, double-click to run the ESP-IDF Installer (eim-gui-windows-x64.exe).

    The installer will automatically detect if the offline package exists in the same directory. Click Install from archive.


    Next, select the installation path. We recommend using the default path. If you need to customize it, ensure the path does not contain Chinese characters or spaces. Click Start installation to proceed.


  3. When you see the following screen, the ESP-IDF installation is successful.


  4. We recommend installing the drivers as well. Click Finish installation, then select Install driver.


Install Visual Studio Code and the ESP-IDF Extension

  1. Download and install Visual Studio Code.

  2. During installation, it is recommended to check Add "Open with Code" action to Windows Explorer file context menu to facilitate opening project folders quickly.

  3. In VS Code, click the Extensions icon Extensions Icon in the Activity Bar on the side (or use the shortcut Ctrl + Shift + X) to open the Extensions view.

  4. Enter ESP-IDF in the search box, locate the ESP-IDF extension, and click Install.


  5. For ESP-IDF extension versions ≥ 2.0, the extension will automatically detect and recognize the ESP-IDF environment installed in the previous steps, requiring no manual configuration.

Example

The ESP-IDF examples are located in the ESP-IDF directory of the example package.

01_factory

This example is a comprehensive demonstration for the ESP32-Touch-LCD-3.5 and is also the factory-default flashed example.




Code Analysis

  • Initialize various system peripherals and load the LVGL display demo:

    esp_i2c_port_init(&i2c_bus_handle);
    esp_spi_port_init(LCD_BUFFER_SIZE);
    esp_sdcard_port_init();
    io_expander_init();
    esp_3inch5_display_port_init(&io_handle, &panel_handle, LCD_BUFFER_SIZE);
    esp_3inch5_touch_port_init(&touch_handle, i2c_bus_handle, EXAMPLE_LCD_H_RES, EXAMPLE_LCD_V_RES, EXAMPLE_DISPLAY_ROTATION);
    esp_axp2101_port_init(i2c_bus_handle);
    vTaskDelay(pdMS_TO_TICKS(200));
    esp_es8311_port_init(i2c_bus_handle);
    esp_pcf85063_port_init(i2c_bus_handle);
    esp_wifi_port_init("WSTEST", "waveshare0755");
    esp_3inch5_brightness_port_init();
    esp_3inch5_brightness_port_set(80);
    lv_port_init();

02_axp2101_example

This example demonstrates using the XPowersLib library to drive the AXP2101 on the ESP32-Touch-LCD-3.5 and prints battery information over the serial port.


03_button_power_save

This example demonstrates using the espressif/button library to drive the button on the ESP32-Touch-LCD-3.5 and uses the BOOT button to wake the system from sleep mode.


04_pcf85063_example

This example demonstrates driving the PCF85063 on the ESP32-Touch-LCD-3.5 using the sensorlib library and prints its data over the serial port.


05_tca9554_example

This example demonstrates driving the TCA9554 on the ESP32-Touch-LCD-3.5 using the espressif/esp_io_expander_tca9554 library, allowing input/output operations on the I/O expander.


06_sd_card_test

This example demonstrates testing TF card read/write functionality with the ESP32-Touch-LCD-3.5.

Hardware Connection

*Connect the board to the computer *Insert the TF card into the card slot (the TF card must be formatted as FAT32)


Code Analysis

  • SPI initialization:

    spi_bus_config_t bus_cfg = {
    .mosi_io_num = PIN_NUM_MOSI,
    .miso_io_num = PIN_NUM_MISO,
    .sclk_io_num = PIN_NUM_CLK,
    .quadwp_io_num = -1,
    .quadhd_io_num = -1,
    .max_transfer_sz = 4000,
    };

    ret = spi_bus_initialize(host.slot, &bus_cfg, SDSPI_DEFAULT_DMA);
    if (ret != ESP_OK) {
    ESP_LOGE(TAG, "Failed to initialize bus.");
    return;
    }
  • Initialize and mount the TF card:

    sdspi_device_config_t slot_config = SDSPI_DEVICE_CONFIG_DEFAULT();
    slot_config.gpio_cs = PIN_NUM_CS;
    slot_config.host_id = host.slot;

    ESP_LOGI(TAG, "Mounting filesystem");
    ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);

07_lvgl_example

This example demonstrates running an LVGL example program on the ESP32-Touch-LCD-3.5.


Code Analysis

  • Initialize LCD, screen touch, and LVGL:

    app_i2c_init();
    app_io_expander_init();

    /* LCD HW initialization */
    ESP_ERROR_CHECK(app_lcd_init());

    /* Touch initialization */
    ESP_ERROR_CHECK(app_touch_init());

    /* LVGL initialization */
    ESP_ERROR_CHECK(app_lvgl_init());

08_lvgl_audio_play

This example uses LVGL to implement an MP3 player. The example scans MP3 files in the root directory of the memory card for playback.

Hardware Connection

*Insert the TF card into the card slot (the TF card must be formatted as FAT32 and have MP3 files placed in its root directory).


Code Analysis

  • Initialize I2C, I2S, and the audio codec:

    app_i2c_init();
    app_io_expander_init();
    ESP_ERROR_CHECK(esp_board_init(16000, 2, 16));
  • Initialize the screen, memory card, and player, then scan MP3 files on the memory card and save them to an array:

    /* LCD HW initialization */
    ESP_ERROR_CHECK(app_lcd_init());
    esp_sdcard_init("/sdcard", 5);
    Audio_Play_Init();
    Search_mp3_Music();
  • Initialize touch and LVGL, and load the player interface:

    /* Touch initialization */
    ESP_ERROR_CHECK(app_touch_init());

    /* LVGL initialization */
    ESP_ERROR_CHECK(app_lvgl_init());

    lvgl_port_lock(0);

    lv_app_music_init();

    lvgl_port_unlock();

09_lvgl_image

This example uses LVGL to display images and supports switching between images by swiping left or right.


Code Analysis

  • Load the image and initialize gesture swipe events; switch images in the gesture event:

    lvgl_port_lock(0);
    image_slider_init();
    lvgl_port_unlock();


XiaoZhi AI Application Tutorial

XiaozhiAI (XiaoZhi AI) is an open-source AI voice chatbot project based on the ESP32 development board, aiming to bring the general intelligence of large language models (LLMs) to edge devices. It provides a software-hardware integrated solution supporting full-duplex voice conversations and IoT device control, dedicated to assisting developers in building highly customized physical AI agents quickly and at low cost.

This article demonstrates how to flash firmware for Waveshare ESP32 development boards that support XiaoZhi AI, covering two methods: flashing without a development environment (directly flashing precompiled firmware) and flashing with a development environment (compiling from source and flashing).

0. Firmware Flashing Process Reference

INFO

This section uses the ESP32-S3-Touch-AMOLED-1.8 development board as an example. The steps are similar for other development boards.

Please first confirm that your hardware is listed in the XiaoZhi AI Supported Products List.


1. Flashing Without a Development Environment

1.1 Download Firmware from XiaoZhi Official GitHub

  1. Visit the XiaoZhi GitHub to download the firmware file for your device. Click Assets to expand the full file list:


  2. Refer to the Flash Firmware Flashing and Erasing Tutorial to complete the firmware flashing.

1.2 Download Firmware from Waveshare GitHub

INFO

This repository aggregates firmware for Waveshare ESP32 development boards that support XiaoZhi AI. All firmware has been tested and verified on the corresponding boards, making it convenient for users to find and download. Firmware versions may be updated slightly later than the official XiaoZhi repository.

  1. Visit the Waveshare GitHub repository and download the appropriate firmware version for your needs:


  2. Refer to the Flash Firmware Flashing and Erasing Tutorial to complete the firmware flashing.

2. Flashing with ESP-IDF Environment

2.1 Download the Project from XiaoZhi GitHub

Visit the XiaoZhi AI Chatbot repository to download the complete project code:


2.2 Environment Setup

Refer to the ESP-IDF Environment Setup Tutorial to configure the development environment.

2.3 Configuration and Compilation

  1. Click VSCode Select Target Device Icon to select the target device. Choose the chip model corresponding to your development board (e.g., esp32s3):


    TIP

    When setting the target device, ESP-IDF will automatically configure the corresponding toolchain and libraries. This process may take some time, please be patient. For more details, please refer to the Official Documentation.

  2. Click VSCode Terminal Button to open the ESP-IDF terminal, then execute the command idf.py menuconfig to enter the configuration interface. Select Xiaozhi Assistant:


  3. Select Board Type to choose the development board type:


  4. Choose the product model corresponding to your development board:


  5. Press the S key to save the configuration and exit. Then click the One-click Build, Flash, and Monitor Icon to automatically complete compilation, flashing, and serial monitoring.

2.4 Start Network Provisioning

  1. Connect your phone or computer to the device's Wi-Fi hotspot: Xiaozhi-xxxxxx. After successful connection, the configuration page should automatically pop up. If not, manually open a browser and visit http://192.168.4.1.

  2. On the network configuration page, select the Wi-Fi name you want to connect to (only 2.4G band is supported; to connect to an iPhone hotspot, enable Max Compatibility in your phone's system settings). The SSID will be auto-filled. Enter the password and click Connect to start connecting:


2.5 Add a New Device to the Management Console

  1. Ensure the device has successfully connected to the Internet. The device will then broadcast a 6-digit device verification code (you can wake the device again to replay the code).

  2. Visit the XiaoZhi AI Console. If you haven't registered, complete the registration and log in:



  3. Enter the 6-digit verification code. The device will automatically activate and appear on the Device Management page, ready for normal use.



  4. Say the wake word "Hello XiaoZhi" to wake the device and start voice conversations.

  5. ESP32-S3-Touch-AMOLED-1.8 Button Instructions:

    • BOOT button: Press to wake XiaoZhi
    • PWR button: Short press to power on; long press for more than 6 seconds to power off

3. XiaoZhi Resources


Firmware Flashing and Erasing

This product provides test firmware that can be flashed directly to verify whether the onboard devices are functioning properly.

  • Firmware download: ESP32-Touch-LCD-3.5 Example. The bin file is located in the Firmware directory of the example package.
  • Flash address: 0x00

The following uses flashing the ESP32-S3-Touch-LCD-2.8 factory firmware as an example. The same steps apply when flashing other firmware.

  • Download and extract Espressif's official Flash Download Tool (Download)

  • Run flash_download_tool_3.9.7.exe and select the development board's MCU and download interface, such as ESP32-S3 and USB (most devices use USB; refer to the product's hardware design for the correct interface).


  • Parameter settings

    • Select the COM port for the development board
    • Set BAUD to the maximum value, 1152000
    • Click the "..." button in the row, select the bin file provided by Waveshare, manually enter the flash address given at the top of this page in the field to its right, and select the leftmost checkbox in the row
    • Click START to begin flashing


  • Wait for flashing to complete (this may take some time; please be patient)

  • Press the reset button and verify the result



Resources

1. Hardware Resources

Development Board Design Files

2. Technical Manuals

3. Example


Support

Monday-Friday (9:30-6:30) Saturday (9:30-5:30)

Email: services01@spotpear.com


TAG: BPI-M4 Berry Supports 6V~24V Solar Panel EPS32S3 1.8inch Round LCD Display WIFI-AIDA64-Secondary-TouchScreen/Wireless-Power/Video-Player LVGL Luckfox Pico SPI LCD Raspberry Pi Zero Pi0 2W Digital Photo Frame 7.3 inch E6 Full Color E Paper Ink Calendar Art Poster Arduino 1.54inch OLED Raspberry Pi 18.5 inch Type C/HDMI/4K Display Screen 3840×2160 Computer PC Phone Xbox/PS4/Switch Spotpear Install Espressif IDF Plugin Tutorial User Guide Core3566102032 X1202 Raspberry Pi 5 UPS Board Uninterruptible Power Supply For 18650-Li-Battery (NOT includ) 4-Ports Raspberry Pi 7inch DSI SpotPear 3key Keyboard Solar Power Manager Module (D) SpotPear Raspberry Pi Pico 2 RP2350B Industrial 8-Channel Relay IOT LAN Digital Input DIO /RS485 /RJ45 Ethernet /POE ESP32 S3 Development Board 1.91 inch AMOLED Display Screen For Arduino LVGL With SD-Port/ QMI8658C 6-Axis Sensor Raspberry Pi ST7789 ESP32 C3 Mini

[Tutorial Navigation]