• sales

    +86-0755-88291180

ESP32-C6-Touch-AMOLED-1.43 User Guide

Introduction

Introduction

This product is a high-performance, highly integrated microcontroller development board designed by Waveshare, with an external high-capacity Flash. It features a 1.43inch HD AMOLED display, highly integrated RTC, IMU, TF card slot, low-power audio codec chip, dual MIC circuit, and lithium battery charging and discharging peripherals. It also reserves USB, UART, I2C, and GPIO interfaces, providing flexible expandability for development and easy integration into products.

Features

  • Equipped with ESP32-C6 high-performance 32-bit RISC-V processor, up to 160MHz main frequency
  • Integrated Wi-Fi 6, Bluetooth 5, and IEEE 802.15.4 (Zigbee 3.0 and Thread) wireless communications with excellent RF performance
  • Built-in 512KB HP SRAM, 16KB LP SRAM, and 320KB ROM, stacked with 16MB Flash
  • Built-in 1.43inch high-definition capacitive touch AMOLED screen with a resolution of 466×466, 16.7M colors for clear color pictures
  • Embedded with CO5300 driver chip and FT6146 capacitive touch chip, communicating through QSPI and I2C interfaces respectively, improving performance without occupying excessive pin resources
  • Equipped with a dual digital microphone array, supporting richer voice interaction functions, applicable for precise voice recognition and near-field/far-field voice wake-up applications
  • Onboard QMI8658 6-axis IMU (3-axis accelerometer and 3-axis gyroscope) for detecting motion gesture, step counting, etc.
  • Built-in PCF85063 RTC chip, facilitating the implementation of RTC functionality requirements
  • Onboard PWR and BOOT two side buttons with customizable functions, allowing for custom function development
  • Onboard 3.7V MX1.25 lithium battery recharge/discharge header
  • Onboard TF card slot for flexible storage expansion and fast data transfer, suitable for data recording and media playback, simplifying circuit design
  • Lead out the UART and I2C SH1.0 4PIN interface, and reserve a 2×4PIN 2.54mm pitch interface
  • The AMOLED screen offer higher contrast, wider viewing angles, richer colors, and faster response times, providing superior visual effects, and also features thin design, low power consumption, and flexibility
  • Optional CNC exquisite shell, clearly marked, beautiful and portable

Onboard Resources


1. ESP32-C6
   Integrated RISC-V single-core processor, operating frequency of 160MHz, supports 2.4GHz Wi-Fi 6 and BLE 5
2. Onboard SMD antenna
   Supports 2.4GHz Wi-Fi (802.11 b/g/n) and Bluetooth 5 (LE)
3. ES7210 ADC decoding chip
   High performance and low-power audio analog-to-digital converter, supporting multiple microphone inputs
4. MX1.25 2PIN Lithium battery interface
   For connecting lithium batteries and supporting battery power supply

5. MX1.25 2PIN speaker interface
   Audio output signal, supports external speakers
6. Dual-microphone array design
   Dual digital microphone array, supporting richer voice interaction functions
7. SH1.0 4PIN I2C port
   Standard I2C bus interface for easy expansion of sensors and other devices
8. SH1.0 4PIN UART port
   For debugging or data interaction with other modules
9. PWR power button
   In conjunction with the example program, power control can be achieved under lithium battery power supply

10. BOOT button
   Press and hold the BOOT button, power on again to enter download mode
11. PCF85063
   RTC clock chip, supporting time holding function
12. 2 × 4PIN 2.54mm pitch header
   For external module expansion, compatible with cables
13. Type-C port
   For program flashing and log printing
14. W25Q128JVSI
   16MB Flash memory
15. ES8311 DAC audio decoding chip
   High performance and low-power audio digital-to-analog converter
16. QMI8658
   3-axis accelerometer + 3-axis gyroscope, applicable to attitude perception, motion recognition, and other applications
17. TCA9554PWR
   8-bit I2C GPIO expansion chip
18. TF card slot
   Supports TF cards in FAT32 format for data expansion

Interfaces

For more details, please refer to the Schematic Diagram

Dimensions

Without Case Version


With Case Version


AMOLED Screen Parameters

Esp32c6-test-1.43-14.png

Usage Guide

ESP32-C6-Touch-AMOLED-1.43 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 Tool


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.


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-C6-Touch-AMOLED-1.43 x1
  • TF card (FAT32 format) x1
  • USB cable (Type-A male to Type-C male) x1
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

  • 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-C6-Touch-AMOLED-1.43 required development board installation description
Board nameBoard installation requirementVersion number requirement
esp32 by Espressif Systems"Install Offline" / "Install Online"≥3.2.1

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-C6-Touch-AMOLED-1.43 library file path:
    ..\'ESP32-C6-Touch-AMOLED-1.43\Arduino\libraries
  • ESP32-C6-Touch-AMOLED-1.43 library file installation instructions
Library NameDescriptionVersionLibrary Installation Requirement
LVGLGraphical libraryv8.3.11/v9.3.0"Install Offline"
SensorLibSensor control libraryv0.3.1"Install Online" or "Install Offline"

Run the First Arduino Demo

Collapse
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

  • 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

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.

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


  • Compile and upload the program:

①. Compile the program; ②. Compile and download the program; ③. Download successful.

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


Demo

Demo-flow-01.png

  • ESP32-C6-Touch-AMOLED-1.43 Demo
DemoBasic DescriptionDependency Library
01_ADC_TestGet the voltage value of the lithium battery-
02_I2C_PCF85063Print the real time of the RTC chipSensorLib
03_I2C_QMI8658Print the raw data from IMUSensorLib
04_SD_CardLoad and display the information of the TF card-
05_WIFI_APSet to AP mode to obtain the IP address of the access device-
06_WIFI_STASet to STA mode to connect to WiFi and obtain an IP address-
07_BATT_PWR_TestWhen powered by a lithium battery alone, control the power using the PWR button-
08_Audio_TestPlay the sound recorded by the microphone through the speaker---
09_LVGL_V8_TestLVGLV8 demoLVGL V8.3.11
10_LVGL_V9_TestLVGLV9 demoLVGL V9.3.0

Arduino Project Parameter Setting


Collapse

01_ADC_Test

Demo description

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

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • adc_bsp_init(void) : Initializes ADC1, including creating an ADC one-time trigger unit and configuring channel 0 for ADC1.
  • adc_get_value(float *value,int *data) : Reads the value of ADC1 channel 0 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:


Collapse

02_I2C_PCF85063

Demo description

  • Through the I2C protocol, initialize the PCF85063 chip, set the time, and then periodically read the time and print it to the terminal

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • void i2c_rtc_loop_task(void *arg) : Create an RTC task to implement RTC functionality, read the clock of the RTC chip every 1 seconds and then output it to the terminal

Result demonstration


  • Open the serial port monitoring, you can see the RTC time of the printout, as shown in the figure below:


Collapse

03_I2C_QMI8658

Demo description

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

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • void i2c_qmi_loop_task(void *arg) : Create a QMI task to obtain attitude information. In the task, read and print the accelerometer and gyroscope data, and output the obtained results to the serial port console at an interval of 200 milliseconds.

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:


Collapse

04_SD_Card

Demo description

  • Drive the TF card through SDSPI, and print the TF card information to the terminal after successfully mounting.

Hardware connection


  • Install TF card in FatFs format on the board before powering on

Code analysis


  • sdcard_init(void) : Initialize the TF card using the SDSPI method.
  • loop(): To test the read and write function of the TF card, you need to uncomment the #define sdcard_write_Test macro definition.
//#define sdcard_write_Test

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:


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
Collapse

05_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

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: 


Collapse

06_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

Code analysis


  • In the file 05_WIFI_STA.ino, find ssid and password, then modify them to the SSID and Password of the available router in your current environment.
const char *ssid = "you_ssid"; 
const char *password = "you_password";

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: 


Collapse

07_BATT_PWR_Test

Demo description

  • Demonstrate how to control the power supply of the system through the PWR button when powered by a lithium battery.

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • setup_ui(lv_ui *ui) : Initialize the UI interface to visualize control.
  • esp_io_expander_new_i2c_tca9554() : Initialize the lithium battery control IO port.
  • user_button_init(): Initialize buttons and various trigger events.
  • example_button_task(void* parmeter): A task triggered by a button event.

Result demonstration


  • After the demo is flashed, disconnect the USB power supply, connect the lithium battery, and power on by pressing and holding the PWR button, as shown in the figure:


1. Press and hold the PWR button, wait for the screen to display "Power on succeeded", which means that the startup is successful, and release the button
2. Press and hold the PWR button again, wait for the screen to display "Power on failed", which means that the power is turned off successfully, and release the button
Collapse

08_Audio_Test

Demo description

  • Demonstrates how to get data from the microphone and then play it through the speaker

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • i2c_master_Init() : Initialize I2C bus.
  • esp_io_expander_new_i2c_tca9554() : Initialize the power amplifier CTRL control IO port.
  • esp_codec_dev_set_out_vol(): Set the sound volume during playback.
  • esp_codec_dev_set_in_gain(): Set the recording gain.

Result demonstration


  • After the demo is flashed, speak into the microphone, and the speaker will automatically play the recorded sound
1. If you find the playback volume to be too low, prioritize using "esp_codec_dev_set_out_vol" to increase the playback volume
2. If the sound is still not loud enough after increasing the playback volume, you can use "esp_codec_dev_set_in_gain" to increase the gain during recording
Collapse

09_LVGL_V8_Test

Demo description

  • Implement some multi-functional GUI interfaces on the screen by porting LVGL V8.

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis

  • If you need to rotate the display by 90 degrees, you can find the macro definition of #define EXAMPLE_Rotate_90 in the user_config.h file, and uncomment it.
  • If backlight testing is needed, you can find the macro definition of #define Backlight_Testing in the user_config.h file, and uncomment it.
//#define Backlight_Testing
//#define EXAMPLE_Rotate_90

Result demonstration


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


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

10_LVGL_V9_Test

Demo description

  • Implement some multi-functional GUI interfaces on the screen by porting LVGL V9.

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis

  • If you need to rotate the display by 90 degrees, you can find the macro definition of #define EXAMPLE_Rotate_90 in the user_config.h file, and uncomment it.
  • If backlight testing is needed, you can find the macro definition of #define Backlight_Testing in the user_config.h file, and uncomment it.
//#define Backlight_Testing
//#define EXAMPLE_Rotate_90

Result demonstration


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


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

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

  • 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 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

Collapse
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




Create Demo

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


  • Select your current IDF version


  • 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

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


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


Modify Driver Object

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


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


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"


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


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


  • 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


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


  • 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-C6-Touch-AMOLED-1.43 Demo
DemoBasic DescriptionDependency Library
01_ADC_TestGet the voltage value of the lithium battery-
02_I2C_PCF85063Print the real time of the RTC chipSensorLib
03_I2C_QMI8658Print the raw data from IMUSensorLib
04_SD_CardLoad and display the information of the TF card-
05_WIFI_APSet to AP mode to obtain the IP address of the access device-
06_WIFI_STASet to STA mode to connect to WiFi and obtain an IP address-
07_BATT_PWR_TestWhen powered by a lithium battery alone, control the power using the PWR button-
08_Audio_TestPlay the sound recorded by the microphone through the speaker---
09_LVGL_V8_TestLVGLV8 demoLVGL V8.3.11
10_LVGL_V9_TestLVGLV9 demoLVGL V9.3.0
11_FactoryProgramComprehensive demoLVGL V8.3.11


Collapse

01_ADC_Test

Demo description

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

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • adc_bsp_init(void) : Initializes ADC1, including creating an ADC one-time trigger unit and configuring channel 0 for ADC1.
  • adc_get_value(float *value,int *data) : Reads the value of ADC1 channel 0 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-LCD-3.16-19.png

Collapse

02_I2C_PCF85063

Demo description

  • Through the I2C protocol, initialize the PCF85063 chip, set the time, and then periodically read the time and print it to the terminal

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • void i2c_rtc_loop_task(void *arg) : Create an RTC task to implement RTC functionality, read the clock of the RTC chip every 1 seconds and then output it to the terminal

Result demonstration


  • After the program is compiled and downloaded, open the serial port monitoring to see the RTC time of the printout, as shown in the following figure:

ESP32-S3-LCD-3.16-20.png

Collapse

03_I2C_QMI8658

Demo description

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

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • void i2c_qmi_loop_task(void *arg) : Create a QMI task to obtain attitude information. In the task, read and print the accelerometer and gyroscope data, and output the obtained results to the serial port console at an interval of 200 milliseconds.

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-LCD-3.16-21.png

Collapse

04_SD_Card

Demo description

  • Drive the TF card through SDSPI, and print the TF card information to the terminal after successfully mounting.

Hardware connection


  • Install TF card in FatFs format on the board before powering on

Code analysis


  • sdcard_init(void) : Initialize the TF card using the SDSPI method.
  • sdcard_loop_task(void *arg): A task to test TF card read and write functionality. You need to uncomment the #define sdcard_write_Test macro definition.
//#define sdcard_write_Test

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-LCD-3.16-22.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
Collapse

05_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.

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: ESP32-S3-LCD-1.3-1008.png

Collapse

06_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.

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: ESP32-S3-LCD-1.3-1009.png

Collapse

07_BATT_PWR_Test

Demo description

  • Demonstrate how to control the power supply of the system through the PWR button when powered by a lithium battery.

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • setup_ui(lv_ui *ui) : Initialize the UI interface to visualize control.
  • esp_io_expander_new_i2c_tca9554() : Initialize the lithium battery control IO port.
  • user_button_init(): Initialize buttons and various trigger events.
  • example_button_task(void* parmeter): A task triggered by a button event.

Result demonstration


  • After the demo is flashed, disconnect the USB power supply, connect the lithium battery, and power on by pressing and holding the PWR button, as shown in the figure:

1000px-Esp32c6-test-1.43-17.png

1. Press and hold the PWR button, wait for the screen to display "Power on succeeded", which means that the startup is successful, and release the button
2. Press and hold the PWR button again, wait for the screen to display "Power on failed", which means that the power is turned off successfully, and release the button
Collapse

08_Audio_Test

Demo description

  • Demonstrates how to get data from the microphone and then play it through the speaker

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis


  • i2c_master_Init() : Initialize I2C bus.
  • esp_io_expander_new_i2c_tca9554() : Initialize the power amplifier CTRL control IO port.
  • esp_codec_dev_set_out_vol(): Set the sound volume during playback.
  • esp_codec_dev_set_in_gain(): Set the recording gain.

Result demonstration


  • After the demo is flashed, speak into the microphone, and the speaker will automatically play the recorded sound
1. If you find the playback volume to be too low, prioritize using "esp_codec_dev_set_out_vol" to increase the playback volume
2. If the sound is still not loud enough after increasing the playback volume, you can use "esp_codec_dev_set_in_gain" to increase the gain during recording
Collapse

09_LVGL_V8_Test

Demo description

  • Implement some multi-functional GUI interfaces on the screen by porting LVGL V8.

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis

  • If you need to rotate the display by 90 degrees, you can find the macro definition of #define EXAMPLE_Rotate_90 in the user_config.h file, and uncomment it.
  • If backlight testing is needed, you can find the macro definition of #define Backlight_Testing in the user_config.h file, and uncomment it.
//#define Backlight_Testing
//#define EXAMPLE_Rotate_90

Result demonstration


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

500px-Esp32c6-test-1.43-19.png

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

10_LVGL_V9_Test

Demo description

  • Implement some multi-functional GUI interfaces on the screen by porting LVGL V9.

Hardware connection


  • Connect the board to the computer using a USB cable

Code analysis

  • If you need to rotate the display by 90 degrees, you can find the macro definition of #define EXAMPLE_Rotate_90 in the user_config.h file, and uncomment it.
  • If backlight testing is needed, you can find the macro definition of #define Backlight_Testing in the user_config.h file, and uncomment it.
//#define Backlight_Testing
//#define EXAMPLE_Rotate_90

Result demonstration


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

500px-Esp32c6-test-1.43-19.png

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

11_FactoryProgram

Demo description

  • Comprehensive project, you can simply test the onboard hardware functions, or directly use the BIN firmware we provide for flashing.

Hardware connection


  • Connect the board to the computer using a USB cable

Result demonstration


  • The display screen transitions through red, green, and blue colors (with a transition interval of 1.5 seconds), as shown in the figure:

1000px-Esp32c6-test-1.43-2.png

  • After the system finishes displaying the above colors, it will automatically enter the onboard hardware information interface, as shown in the figure:

400px-Esp32c6-test-1.43-3.png

1. Display the Flash stacked in the ESP32C6
2. Display the actual capacity of the inserted TF card
3. Display the voltage of the connected lithium battery
4. Real-time display of RTC time and QMI gesture data
5. Scan the surrounding Bluetooth and Wi-Fi devices
  • Click the BOOT button on the onboard hardware information interface to enter the Touch function interface, as shown in the figure:

400px-Esp32c6-test-1.43-20.png

  • Press the BOOT button again to exit the Touch function interface, and perform microphone recording and speaker music playback functions:
1. Speak into the microphone, and the speaker will automatically play the recorded sound
2. Hold down the BOOT button to play music, and release it to stop
  • Test the TF card read and write functions, as shown in the figure:

400px-Esp32c6-test-1.43-6.png

1. Double-click the BOOT button to verify
  • Swipe left to enter the AMOLED backlight settings interface, as shown in the image:

800px-Esp32c6-test-1.43-7.png

1. Control the backlight through the slider
  • Powered separately by a lithium battery, with the PWR button controlling power:
1. Press and hold the PWR button to turn on the system power, and press and hold again to turn off the system power

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-C6-Touch-AMOLED-1.43-Demo\Firmware

Resources

Schematic Diagram

Demo

3D File

Datasheets

ESP32-C6

Other Components

Software Tools

Arduino

VScode

Firmware Flashing Tool

Other Resource Links

FAQ

Question: What should I do if I get an error when using the touch function?

 Answer:
  • This is due to the underlying reasons of the official I2C driver, which can be solved by lowering the idf version to below 5.1.6 and above 5.0.0.


Question: After the module downloads the demo and re-downloads it, why sometimes it can't connect to the serial port or the flashing fails?

 Answer:
  • You can press and hold the BOOT button to power on again, and the module can enter the download mode at this time, which can solve most of the problems that cannot be downloaded.


Question: Failed to set up the VSCode environment?

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


Question: Error when compiling an Arduino program?

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


Question: Is it stuck when sliding pictures displayed?

 Answer:
  • Modify LVGL display cache to the full screen size
  • Modify the LV_IMG_CACHE_DEF_SIZE option in the configuration to 1000 to achieve some optimization


Question: Can't display Chinese?

 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


Question: How to deal with the first compilation of the program being extremely slow?

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


Question: What should I do if I can't find the AppData folder?

 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"


Question: How do I check the COM port I use?

 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.


Question: Why does the program flashing fail when using a MAC device?

 Answer:


Question: How to choose lithium batteries?

 Answer:
  • Normal 3.7V-4.2V positive PH1.25 terminal lithium battery


Question: How to use SquareLine Studio to design interfaces?

 Answer:

Support

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

Email: services01@spotpear.com

TAG: PoE-M.2-HAT+B User Guide ESP32-P4 Smart 86 TV Box Development Board 4 inch 720x720 Display TouchScreen RS485 Relay Camera RJ45 ETH USB to UART Milk-V Duo S eMMC version firmware burning ESP32 LVGL Core3566004032 Serial UART Bus Servo ST3215-HS 20KG.CM High Speed Magnetic Encoder 360° Large Torque ESP32 ST7789 tutorial LuckFox Pi 5 PCIe to M.2 NVMe SSD Board Raspberry Pi Pico rp2040 Display image 1.3inch LCD ST7789 change bmp to hex Arduino Thermal imaging camera Raspberry Pi 7.5 inch e-Paper link (H) RYBW 800x480 For Arduino / Jetson Nano / STM32 RS485 to CAN Raspberry Pi 5 8mp Camera RISC-V Raspberry Pi 5 inch DSI MIPI Display LCD (D) Capacitive TouchScreen 720x1280 CSI-to-HDMI Raspberry Pi 5 Raspberry Pi Compute Module 5 CM5 Cortex A76 BCM2712 With/Without Wi-Fi RAM 2/4/8/16GB eMMC Lite/8/16/32/64GB