ESP32-C5-WIFI6-KIT-NXRX

From Waveshare Wiki
Jump to: navigation, search

ESP32-C5-WIFI6-KIT-N16R4
Without header
ESP32-C5-WIFI6-KIT-N16R4

ESP32-C5, USB Type-C
ESP32-C5-WIFI6-KIT-N16R4
With pre-soldered header
ESP32-C5-WIFI6-KIT-N16R4-M

ESP32-C5, USB Type-C
{{{name3}}}

{{{name4}}}

{{{name5}}}

{{{name6}}}

Overview

Introduction

The ESP32-C5-WIFI6-KIT is a development board designed by Waveshare based on the ESP32-C5-WROOM-1 module for dual-band Wi-Fi and multi-protocol IoT gateway scenarios. The ESP32-C5 is a single-core chip by Espressif supporting Wi-Fi 6 dual-band (2.4GHz and 5GHz) RISC-V, which also integrates BLE 5, Zigbee, and Thread protocols, allowing it to be flexibly used as a smart home hub or cross-protocol communication gateway. In terms of hardware, it is equipped with a 240MHz RISC-V processor, 384KB SRAM, 16MB Flash, and 4MB or 8MB PSRAM (version optional), which can stably handle multi-stack concurrent tasks and medium-load applications. Developers can quickly prototype and implement products with the help of mature development frameworks such as ESP-IDF or Arduino, which are suitable for practical IoT scenarios such as smart gateways and multi-protocol device access.

Features

  • Adopts ESP32-C5-WROOM-1 series modules, equipped with a RISC-V 32-bit processor, with a clock speed of up to 240MHz
  • Integrates with 384KB SRAM, 320KB ROM, and 16MB Flash, and offers optional versions with 4MB or 8MB PSRAM
  • Integrates dual-band 2.4GHz and 5GHz Wi-Fi, Bluetooth 5 (LE), and IEEE 802.15.4 (supporting Zigbee 3.0 and Thread) wireless communication, featuring excellent RF performance
  • Onboard battery charging management module, with a reserved 3.7V MX1.25 lithium battery interface, allowing for external battery connection for power supply
  • Features a reversible USB Type-C interface
  • Features rich peripheral interfaces, with castellated design for easy welding and integration into the user-designed base boards
  • Supports a variety of low-power operating states, allowing flexible adjustment of the balance between communication distance, data rate and power consumption to meet the power requirements of various application scenarios

Functional Block Diagram

ESP32-C5-WIFI6-KIT-N16R4-details-11.jpg

Interfaces

ESP32-C5-WIFI6-KIT-N16R4-details-13.jpg

Pinout Definition

ESP32-C5-WIFI6-KIT-N16R4-details-inter.jpg

Dimensions

ESP32-C5-WIFI6-KIT-N16R4-details-size.jpg

Development Environment Configuration

  • The following development system is Windows by default

ESP-IDF

  • It is recommended to use the VSC plugin for development

Develop with VSCode Plugin

Install VSCode

  1. Open the download page of the official VSCode website, and select the corresponding system and system bit to download
    Esp32-vscod-01.jpg
  2. 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
    Esp32-vscod-02.jpg
    • 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

Install Espressif IDF Plugin

  • Note: Currently the latest version of the plugin is V1.6.0, users can choose the same version as us for a consistent experience
  1. Open VSCode, use Shift+Ctrl+X enter the plugin manager
    Esp32-vscod-03.jpg
  2. In the search bar, enter Espressif IDF to select the corresponding plugin and click Install
    Esp32-vscod-04.jpg
  3. Use the shortcut key F1 and enter
    esp-idf: configure esp-idf extension

    Esp32-vscod-05.jpg
  4. Select express (This tutorial is intended for first-time installation users, so only the first general installation tutorial is covered)Esp32-vscod-06.jpg
  5. After opening, it displays this interface
    Esp32-vscod-07.jpg
  6. Choose the download server, we recommend users to use Espressif as your download server
    Esp32-vscod-08.jpg
  7. Select the ESP-IDF version you want to download, we choose the latest V5.0.1 (note that ESP-IDF only supports ESP32-C5 after V4.4)
    esp32-vscod-09.jpg
  8. The following two are the installation paths respectively for the ESP-IDF container directory and the ESP-IDF Tools directory
    Esp32-vscod-10.jpg
    • Note: If you have installed ESP-IDF before, or failed to do so, please be sure to delete the file completely or create a new path without Chinese characters
  9. After configuring, click Install to download
    Esp32-vscod-11.jpg
  10. Enter the download interface, and then it will automatically install the corresponding tools and environment, just wait for a second
    Esp32-vscod-11.jpg
  11. After the installation is complete, you will enter the following interface, indicating that the installation is finished
    Esp32-vscod-13.jpg

Run Official Demos

Create Demo
  1. Using the shortcut F1, enter
    esp-idf:show examples projects

    Esp32-vscod-14.jpg
  2. Select your current IDF version
    Esp32-vscod-15.jpg
  3. Take the Hello world demo as an example:
    Esp32-vscod-16.jpg
  4. ①Select the corresponding demo
  5. ②Its readme will state what chip the demo applies to (how to use the demo and the file structure are described below, omitted here)
  6. ③Click to create the demo
  7. Select the path to save the demo, and require that the demos cannot use folders with the same name
    Esp32-vscod-17.jpg
Modify COM Port
  1. The corresponding COM ports are shown here, click to modify them
    Esp32-vscod-18.jpg
  2. The COM of our CH343 is COM5, so we choose COM5. Please choose the COM port corresponding to your CH343
    Esp32-vscod-19.jpg
  3. Select the project or demo to use
    Esp32-vscod-20.jpg
  4. Then we finish the modification of the COM ports
Modify Driver Object
  1. The driver object used is displayed here, and you can click it to modify the corresponding driver object
    Esp32-vscod-21.jpg
  2. Select the project or demo to use
    Esp32-vscod-20.jpg
  3. Click and wait for a moment
    Esp32-vscod-22.jpg
  4. Select the object we need to drive, which is our main chip ESP32S3
    Esp32-vscod-23.jpg
  5. Choose the openocd path, it doesn't affect us here, so let's just choose one
    Esp32-vscod-24.jpg
Other Status Bars

Esp32-vscod-25.jpg

  • ①SDK configuration editor, supports modifying many features and configurations of ESP-IDF
  • ②All cleanup, and clear all compiled files
  • ③Compile
  • ④Current download mode, the default is UART
  • ⑤Flash the current firmware, please do it after compiling
  • ⑥Open the serial port monitor, used to view the serial port information
  • ⑦Compile, flash,open the serial monitor, all-in-one button (most commonly used for debugging)
Compile, Flash and Serial Port Monitor
  1. Click on the all-in-one button we described before to compile, flash and open the serial port monitor
    Esp32-vscod-29.jpg
  2. It may take a long time to compile especially for the first time
    Esp32-vscod-26.jpg
    • During this process, the ESP-IDF may take up a lot of CPU resources, so it may cause the system to lag
  3. Because we are using CH343 as a USB to serial port chip, and there is an automatic download circuit on board, it can be automatically downloaded without manual operation
    Esp32-vscod-27.jpg
  4. 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-vscod-28.jpg

Arduino

Install Arduino IDE

  1. Open the software download page of the official website, and select the corresponding system and system bit to download
    ESP32-S3-Pico-Ar-01.jpg
  2. You can choose to download directly or donate and download
    ESP32-S3-Pico-Ar-02.jpg
  3. Run the installer and install all by default

Install Arduino-esp32 Online

  1. Open Preferences
    ESP32-S3-Pico-Ar-03.jpg
  2. Add the corresponding board management link, click the button
    ESP32-S3-Pico-Ar-04.jpg
  3. Add the following text in the first blank
    https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

    ESP32-S3-Pico-Ar-05.jpg
  4. Save settings
  5. Open the board manager and input ESP32 to search
    ESP32-S3-Pico-Ar-06.jpg
  6. Wait for the download
    ESP32-S3-Pico-Ar-07.jpg
  7. The arduino-esp32 download is complete
    ESP32-S3-Pico-Ar-08.jpg

Install Arduino-esp32 Offline

  1. You can choose a package from the Arduino-ESP32 offline component packages based on your device model
  2. Unzip the compressed file
    ESP32-S3-Pico-Ar-18.jpg
  3. Place the unzipped files in the Arduino components package directory of the corresponding user
    C:\Users\{username}\AppData\Local\Arduino15\packages\
    Take the username waveshare as an example
    C:\Users\waveshare\AppData\Local\Arduino15\packages\
  4. Close all arduino windows to make sure Arduino is turned off
  5. Open Arduino, then open the board manager, you can see that esp32-arduino has been installed
    ESP32-S3-Pico-Ar-19.jpg

Run Arduino Demos

  1. Select the demo, here we choose the demo to get the chip ID
    ESP32-S3-Pico-Ar-09.jpg
  2. Choose our board as ESP32S3 Dev Module
    ESP32-S3-Pico-Ar-12.jpg
  3. Choose our port number, here we choose COM5 for CH343
    ESP32-S3-Pico-Ar-13.jpg
  4. Click the download button, and it will automatically compile and download
    ESP32-S3-Pico-Ar-14.jpg
  5. The download is complete
    ESP32-S3-Pico-Ar-15.jpg
  6. Open the serial port monitor
    ESP32-S3-Pico-Ar-16.jpg
  7. See the chip ID of the loop output
    ESP32-S3-Pico-Ar-17.jpg

Flash Firmware Flashing and Erasing

Resources

Schematic Diagram

Demo

Software

Arduino

CH343

Serial Port

Datasheets

ESP32-C5

CH343

Official Documents

ESP32 Official Documents

Project Resources

This section features third - party project resources. We merely provide links and bear no responsibility for content updates or maintenance. Thank you for your understanding.


UAgain Shadow-How to Flash Bruce Firmware on ESP32-C5 (Waveshare Dual-Band Chip Only)

FAQ

 Answer:

Check if the power voltage of the USB port is less than 5V. Generally, the power voltage of the USB port is above 4.9V, and both USB ports of the module can be used normally. If it is below 4.9V, there may be a power supply shortage and USB disconnection issue. In this case, a USB port with sufficient voltage should be used.


 Answer:

Long press the BOOT button, press RESET at the same time, then release RESET, then release the BOOT button, at this time the module can enter the download mode, which can solve most of the problems that can not be downloaded.


Support



Technical Support

If you need technical support or have any feedback/review, please click the Submit Now button to submit a ticket, Our support team will check and reply to you within 1 to 2 working days. Please be patient as we make every effort to help you to resolve the issue.
Working Time: 9 AM - 6 PM GMT+8 (Monday to Friday)