• sales

    +86-0755-88291180

ESP32-C6-Touch-AMOLED-1.64 User Guide

Product Overview

The ESP32-C6-Touch-AMOLED-1.64 is a microcontroller development board that supports 2.4GHz Wi-Fi 6 and Bluetooth BLE 5. It features a 1.64inch high-definition AMOLED display, capable of smoothly running GUI programs such as LVGL. The board is equipped with an IMU, TF card slot, and lithium battery charging functionality, offering rich peripheral resources. Additionally, it exposes USB, UART, I2C, and multiple MUX_GPIO interfaces, providing flexible expansion capabilities. It is an ideal choice for rapid development of HMI applications based on the ESP32-C6.

SKUProduct
34055ESP32-C6-Touch-AMOLED-1.64
34056ESP32-C6-Touch-AMOLED-1.64-M

Features

  • Powered by the ESP32-C6 high-performance RISC-V 32-bit single-core processor, with a main frequency of up to 160 MHz
  • Onboard 320KB ROM, 512KB HP SRAM, 16KB LP SRAM, and 16MB flash
  • Supports 2.4 GHz Wi-Fi 6 (802.11 b/g/n/ax), Bluetooth® 5 (LE), and IEEE 802.15.4 (supports Thread and Zigbee protocols), with optional onboard PCB antenna or external antenna connector
  • Onboard 1.64inch AMOLED capacitive touchscreen, 280 × 456 resolution, 16.7M colors
  • AMOLED display uses QSPI interface, capacitive touch uses I2C interface
  • Onboard QMI8658 6-axis IMU (3-axis accelerometer, 3-axis gyroscope) for motion posture detection, step counting, etc.
  • Onboard side-mounted PWR and BOOT buttons; BOOT supports custom button functions for flexible development
  • Onboard 3.7V MX1.25 lithium battery charge/discharge interface
  • Onboard TF card slot for external storage of images or files
  • Onboard USB Type-C port for power supply, downloading, and debugging, facilitating development
  • Exposed I2C, UART, and USB pins for connecting external devices and debugging, allowing flexible configuration of peripheral functions
  • The screen features a CNC machined structural frame with edge bonding, offering a refined, soft texture and an overall aesthetic, durable appearance

Onboard Resources


Interface Introduction


AMOLED Display Specifications

Display PanelAMOLEDDisplay Size1.64inch
Resolution280×456 pixelsDisplay Colors16.7M
Brightness350cd/m²Contrast Ratio60000:1
Communication InterfaceQSPIDriver ICCO5300
Touch ICSupportedDriver ICFT6146

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 Development Environment

1. Installing and Configuring Arduino IDE

INFO

For the ESP32-C6-Touch-AMOLED-1.64 development board, Arduino IDE requires arduino-esp32 version v3.2.0 or later.

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

2. Installing Libraries

  • When installing Arduino libraries, there are typically two methods: Install Online and Install Offline. If the library installation requires Install Offline, you must use the provided library file.
  • For most libraries, users can easily search for and install them via the Arduino IDE's online Library Manager. However, some open-source or custom libraries are not synchronized to the Arduino Library Manager and therefore cannot be found through online search. In this case, users can only install these libraries manually via offline methods.
  • The sample program package for the ESP32-C6-Touch-AMOLED-1.64 development board can be downloaded from here. The Arduino\libraries directory within the package already contains all the library files required for this tutorial.
Library/File NameDescriptionVersionInstallation Method
LVGLGraphics Libraryv8.4.0"Install Offline”
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.

3. Arduino Project Parameter Settings


Demo

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

DemoBasic Program DescriptionDependency Library
01_ADC_TestRead the current system voltage value-
02_I2C_QMI8658Print the raw data from the IMU-
03_SD_CardLoad and display TF card information-
04_WIFI_APSet to AP mode, can obtain the MAC address of connected devices-
05_WIFI_STASet to STA mode to connect to WiFi and obtain an IP address-
06_LVGL_TestLVGL demoLVGL

01_ADC_Test

Demo Description

  • The analog voltage connected via GPIO is converted to a digital value by the ADC. The actual system voltage is then 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-shot trigger unit and configuring Channel 0 of ADC1.
  • adc_get_value(float *value,int *data): Reads the value from Channel 0 of ADC1, calculates the corresponding voltage based on the reference voltage and resolution, and stores it at the location pointed to by the passed pointer. Stores 0 if the read fails.
  • adc_example(void* parameter): After initializing ADC1, creates an ADC task. This task reads the ADC value every second and calculates the system voltage from the raw ADC reading.

Operation Result

  • After the program is compiled and downloaded, you can view the printed ADC values and voltage output by opening the Serial Monitor, as shown in the following image:

  • When connected via USB, the measured voltage is the system voltage, around 4.65V. For detailed analysis, please refer to the schematic.


02_I2C_QMI8658

Demo Description

  • Initialize the QMI8658 chip via the I2C protocol, then read the corresponding attitude information every 1 second and print it to the terminal.

Hardware Connection

  • Connect the board to the computer using a USB cable

Code Analysis

  • qmi8658c_example(void* parameter): This function initializes the QMI8658 device. In an infinite loop, it reads and prints accelerometer, gyroscope, and temperature data every 1 second. As the board rotates faster, the gyroscope data increases accordingly. The accelerometer calculates the corresponding acceleration based on its current orientation.

Operation Result

  • Open the Serial Monitor to see the printed raw data from the IMU (Euler angles need to be converted by yourself), as shown in the figure below:

  • Data is output every 1 second. For modifications or reference, you can directly access the qmi source file.


03_SD_Card

Demo Description

  • Drives the TF card via SPI, and after successfully mounting the TF card, prints the TF card information to the terminal.

Hardware Connection

  • The board must have a TF card inserted (capacity less than 64GB)
  • Connect the board to the computer using a USB cable

Operation Result

  • Click to open the Serial Monitor device. You can see the output TF card information; practical_size indicates the actual capacity of the TF card, as shown below:


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

  • Find ssid and password in the 05_WIFI_AP.ino file. Then mobile phones or other devices in STA mode can use this ssid and password to connect to the development board.

Operation Result

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


05_WIFI_STA

Demo Description

  • This example sets the development board as a station, allowing it to connect to an available AP. After successful connection, it prints the obtained IP information to the terminal.

Hardware Connection

  • Connect the board to the computer using a USB cable

Code Analysis

  • wifi_init(void): This function initializes the Wi-Fi connection of the ESP32. It sets the ESP32 to Wi-Fi station mode and attempts to connect to the specified Wi-Fi network (via ssid and password). If successful, it prints the local IP address; if it fails to connect within a certain period (20 * 500 ms), it prints a connection failure message. The function can also enable auto-connect and auto-reconnect features.

Operation Result

  • The chip successfully connects to Wi-Fi in STA mode, and after clicking on the Serial Monitor, you can see the obtained IP address, as shown in the figure.


06_LVGL_Test

Demo Description

  • Implements multifunctional GUI interfaces on the screen by porting LVGL.

Hardware Connection

  • Connect the board to the computer using a USB cable

Code Analysis

  • The display chip itself does not support hardware rotation. If rotation is required, it can be achieved through software. Find the macro definition #define EXAMPLE_Rotate_90 in the lcd_bsp.c file and uncomment it. Software rotation performance is inferior to hardware rotation.

Operation Result

  • The LVGL example has relatively high requirements for RAM and ROM, so the program must be configured according to the environment setup requirements. After flashing, the device's operation effect is as follows:



User Guide

To help users quickly understand the various functions of the product, we provide a factory test example to familiarize customers with the use of each interface. Besides the ESP32-C6-Touch-AMOLED-1.64 host and the included cables, the following items are required to run the example:

Component Preparation

  • ESP32-C6-Touch-AMOLED-1.64 ×1
  • TF card ×1 (optional)
  • 3.7V Lithium Battery ×1 (optional)

Precautions

  • When using, pay attention to the PCB antenna area. Avoid having other metal or plastic parts in contact with the PCB antenna.
  • The GH1.25 lithium battery connector supports only a single-cell 3.7 V lithium battery. Do not connect multiple battery packs simultaneously for charging or discharging. A single-cell capacity of 2000 mAh or less is recommended.

⚠️ USB Download Precautions (Important)

PROGRAMMING THE DEVELOPMENT BOARD VIA USB

If the port is not recognized, please enter Boot mode:

  1. Press and hold the BOOT button
  2. Connect the USB cable to the computer
  3. Release the BOOT button

After the download is complete, restart the board to run the program.

Demo Introduction

  • The firmware uses the Brookesia component, showcasing various applications in an APP style, including Settings, Gallery, Weather, Gyroscope, etc.

Firmware Download

App Example Introduction

TIP
  • To exit an app, swipe up from the bottom of the screen
  • Swipe up from the bottom and pause in the middle of the screen to view recently used apps. Swipe up again on an app preview to close it

Settings App

  • Features Wi-Fi scanning and network configuration. Click WIFI on the interface, then wifi config to scan a QR code for network configuration

  • Adjusts the backlight

  • Displays the battery ADC voltage

  • If a TF card is inserted, the TF card capacity will be displayed

  • Product about page, where you can view the MAC address


Weather APP

  • This example demonstrates obtaining local weather data online. An internet connection is required; otherwise, weather information cannot be retrieved.

  • The current program is set to fetch weather information every 5 seconds


Gyroscope APP

  • This example demonstrates obtaining and displaying gyroscope data


  • This example demonstrates image display functionality

  • Image resources are built into the program. Swipe left or right to switch images


ESP-IDF

This chapter contains 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 Development Environment

Please refer to Install ESP-IDF Development Environment.

INFO

For the ESP32-C6-Touch-AMOLED-1.64 development board, ESP-IDF version 5.5.2 or above is required.

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.

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 choose your desired version from the filter bar.


    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.

Demo

DemoBasic DescriptionDependency Library
01_ADC_TestGet the lithium battery voltage value and display it on the screen-
02_I2C_QMI8658Print the raw data from the IMU-
03_SD_CardLoad and display TF card information, and perform read/write tests-
04_WIFI_APSet to AP mode, can obtain the MAC address of connected devices-
05_WIFI_STASet to STA mode to connect to WiFi and obtain an IP address-
06_LVGL_TestLVGL example-
07_brookesia_appBrookesia picture APP example-

01_ADC_Test

Demo Description

  • The analog voltage connected via GPIO is converted to a digital value by the ADC, then the actual system voltage is calculated and displayed on the screen.

Hardware Connection

  • Connect a 3.7V lithium battery

Code Analysis

  • bsp_display_start(): Initialize the screen, touch, and LVGL
  • bsp_display_backlight_on(): Turn on the backlight
  • bat_adc_init(): Initialize ADC1, including creating an ADC single-shot trigger unit and configuring ADC1 channel 0.

Operation Result

  • After compiling and downloading the program, connect the battery. The battery voltage will be displayed on the screen as shown in the figure below:


02_I2C_QMI8658

Demo Description

  • Initializes the QMI8658 chip via the I2C protocol, then reads and prints the corresponding attitude information to the terminal every 1 second.

Hardware Connection

  • Connect a 3.7V lithium battery

Code Analysis

  • bsp_qmi8658_drv_init(): Initialize qmi8658
  • qmi8658_is_data_ready(): Check if data is ready
  • qmi8658_read_sensor_data(): Read gyroscope data

Operation Result

  • After the program is flashed, the device operation result is as follows:

03_SD_Card

Demo Description

  • Drives the TF card via SPI. After successfully mounting the TF card, prints the TF card information and read/write file test results to the terminal.

Hardware Connection

  • The board must have a TF card inserted (capacity less than 64GB)
  • Connect the board to the computer using a USB cable

Code Analysis

  • bsp_sdcard_mount(): Initialize the TF card via the SPI interface
  • tf_card_test(): Read/write file test

Operation Result

  • Click on the Serial Monitor to see the output TF card information:


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

  • Find SSID and PASSWORD in the softap_example_main.c file. Then mobile phones or other devices in STA mode can use this SSID and PASSWORD to connect to the development board.

Operation Result

  • Click on the Serial Monitor. If a device successfully connects to the hotspot, the IP address of that device will be output:


05_WIFI_STA

Demo Description

  • This example configures the development board as a STA device to connect to a router, thereby accessing the system network.

Hardware Connection

  • Connect the board to the computer using a USB cable

Code Analysis

  • Find SSID and PASSWORD in the station_example_main.c file, and modify them to the SSID and Password of an available router in the current environment.

Operation Result

  • After flashing the program, open the Serial Terminal. If the device successfully connects to the hotspot, the obtained IP address will be output, as shown in the figure:


06_LVGL_Test

Demo Description

  • Implements multifunctional GUI interfaces on the screen by porting LVGL.

Hardware Connection

  • Connect the board to the computer using a USB cable

Code Analysis

  • bsp_display_start(): Initialize the screen, touch, and LVGL
  • bsp_display_backlight_on(): Turn on the backlight
  • lv_demo_widgets(): Load the LVGL demo program

Operation Result

  • After the program is flashed, the device operation result is as follows:


07_brookesia_app

Demo Description

  • Implements APP-like functionality by porting LVGL and Espressif's brookesia component. This example only loads the picture APP.

Hardware Connection

  • Connect the board to the computer using a USB cable

Code Analysis

  • Configure the LVGL lock for Brookesia

    LvLock::registerCallbacks([](int timeout_ms) {
    esp_err_t ret = bsp_display_lock(timeout_ms);
    ESP_UTILS_CHECK_FALSE_RETURN(ret == ESP_OK, false, "Lock failed (timeout_ms: %d)", timeout_ms);

    return true;
    }, []() {
    bsp_display_unlock();
    return true;
    });
  • Install the APP

    auto app4 = esp_brookesia::apps::Photos::requestInstance();
    ESP_UTILS_CHECK_FALSE_EXIT(phone->installApp(app4),"start Drawpanel failed");

Operation Result

  • After flashing the program, click the photo album icon. Swipe left or right to switch pictures. The device operation effect is as follows:


Resources

1. Hardware Resources

Development Board Design Files

2. Technical Manuals

3. Demo

Support

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

Email: services01@spotpear.com

TAG: RS485 to RJ45 DeepSeek XiaoZhi AI Voice Chat Robot BOX ESP32-S3 Development Board 1.85 inch Round LCD N16R8 Program ESP-IDF download and installation RV1103 10-Axis DOF ROS IMU (A) Sensor UART ARM 32 DSP Processor BLE 5.3 Bluetooth / Accelerometer / Gyroscope / Magnetometer / Temperature & Pressure Raspberry Pi Raspberry Pi 5 IR Camera Spotpear EchoEar 1.85 inch Round TouchScreen 1.85inch QSPI LCD 360*360 CST816T ST77916 Raspberry Pi ZERO JETSON-NANO-MINI ESP32-S3 QMI8658A Raspberry Pi 5 Official Original PCIe to M.2 NVMe SSD Raspberry Pi M.2 HAT+ Board For Pi5 Core3566004000 Raspberry Pi ESP32 P4 Development Board 7-inch LCD Display 1024×600 7inch Touchscreen ESP32-C6 WiFi6 AI Deepseek AURORA AI Laser Radar And Dual Eye Camera IMU Integrated Positioning Map For Android/ROS+RoboStudio Tang Nano Series FPGA FAQ UART Serial Server