Seeed Studio XIAO ESP32-C5

Contents

Seeed Studio XIAO ESP32-C5 IoT Development Board

Model: XIAO ESP32-C5 | Brand: Seeed Studio

1. Introduction

The Seeed Studio XIAO ESP32-C5 is a compact and powerful IoT development board designed for a wide range of applications requiring advanced wireless connectivity and low-power operation. It integrates a 32-bit RISC-V single-core processor and supports dual-band Wi-Fi 6, Bluetooth 5 LE, Thread, and Zigbee protocols.

Key Features:

  • First Seeed Studio XIAO with 5 GHz Wi‑Fi: Provides dual‑band Wi‑Fi 6 for cleaner spectrum access and higher throughput in 5 GHz, while maintaining 2.4 GHz compatibility.
  • Comprehensive Connectivity: Dual‑band Wi‑Fi 6, Bluetooth 5 LE, and IEEE 802.15.4 provide comprehensive IoT protocol coverage, with full support for Matter, HomeKit, and MQTT.
  • High‑Performance Core: Equipped with a 32‑bit RISC‑V single‑core processor running up to 240 MHz, the XIAO ESP32‑C5 integrates 384 KB on‑chip SRAM, 320 KB ROM, 8MB Flash, and 8MB PSRAM. This combination ensures smooth protocol handling, multitasking, and application scalability.
  • Enhanced Security: Secure boot, flash encryption, and hardware cryptographic accelerators to protect firmware and data integrity.
  • Built‑in Battery Interface for Low‑Power Designs: Integrated battery management supporting ultra‑low‑power operation, with deep‑sleep current as low as 15 µA.
Seeed Studio XIAO ESP32-C5 product features summary
Figure 1: Seeed Studio XIAO ESP32-C5 Product Features Summary
Video 1: Overview of the Seeed Studio XIAO ESP32-C5 development board, showcasing its features and compact size.

2. Package Contents

The Seeed Studio XIAO ESP32-C5 is available in different package options:

Option 1: ESP32-C5 1Pc

  • 1x Seeed Studio XIAO ESP32-C5
  • 1x FPC Antenna
  • 2x Pin Header

Option 2: ESP32-C5 3Pcs

  • 3x Seeed Studio XIAO ESP32-C5
  • 3x FPC Antenna
  • 6x Pin Header
Seeed Studio XIAO ESP32-C5 development board with included FPC antenna and pin headers
Figure 2: Seeed Studio XIAO ESP32-C5 with FPC antenna and pin headers

3. Hardware Overview

The XIAO ESP32-C5 features a compact design with essential components for IoT development.

Labeled diagram of the XIAO ESP32-C5 hardware components
Figure 3: XIAO ESP32-C5 Hardware Components (Front View)
  • USB Type-C Port: For power supply and data communication.
  • Charge LED: Indicates battery charging status.
  • User LED: Programmable LED for user feedback.
  • Reset Button: Resets the microcontroller.
  • IPEX Antenna Connector: For connecting an external antenna.
  • User Button: Programmable button for user input.

Pin Definition:

The XIAO ESP32-C5 offers a variety of pins for different functionalities. Refer to the diagram and table below for detailed pin definitions.

Detailed pin definition diagram for XIAO ESP32-C5 (front and back)
Figure 4: XIAO ESP32-C5 Pin Definition (Front and Back)
Table 1: XIAO ESP32-C5 Pin Map
XIAO Pin Function Chip Pin Alternative Functions Description
5VVBUSPower Input/Output
GNDGround
3V33V3_OUTPower Output
D0AnalogGPIO1LP_UART_DSRN, LP_GPIO1GPIO, ADC
D1GPIO0LP_UART_DTRN, LP_GPIO0GPIO
D2GPIO25GPIO
D3GPIO7SDIO_DATA1GPIO
D4SDAGPIO23GPIO, I2C Data
D5SCLGPIO24GPIO, I2C Clock
D6TXGPIO11GPIO, UART Transmit
D7RXGPIO12GPIO, UART Receive
D8SCKGPIO8TOUCH7GPIO, SPI Clock
D9MISOGPIO9TOUCH8GPIO, SPI Data
D10MOSIGPIO10TOUCH9GPIO, SPI Data
MTDOGPIO5LP_UART_TXD, LP_GPIO5JTAG
MTDIGPIO3LP_I2C_SCL, LP_GPIO3JTAG, ADC
MTCKGPIO4LP_UART_RXD, LP_GPIO4JTAG, ADC
MTMSGPIO2LP_I2C_SDA, LP_GPIO2JTAG, ADC
ADC_BATGPIO6Read battery voltage
ADC_CRLGPIO26Controls (enables/disables) the measurement circuit to save power.
ResetCHIP_ENEnable
BootGPIO28Enter Boot mode
U.FL-R-SMT1LNA_INUFL Antenna
CHARGE_LEDVCC_3V3CHG-LED_Red
USER_LEDGPIO27Yellow User LED

4. Setup and Programming

To get started quickly with your XIAO ESP32-C5, follow these steps for hardware and software preparation.

4.1. Hardware Requirements:

  • 1x Seeed Studio XIAO ESP32-C5
  • 1x Computer
  • 1x USB Type-C Cable
Seeed Studio XIAO ESP32-C5 with dimensions
Figure 5: XIAO ESP32-C5 Dimensions (17.8mm x 21mm x 4mm)

Tip: Some USB cables can only supply power and cannot transfer data. If you don't have a data-capable USB cable or are unsure, consult the Seeed USB Type-C support documentation.

4.2. Software Setup (Arduino IDE):

The recommended programming tool for the XIAO ESP32-C5 is the Arduino IDE. Follow these steps to prepare your software environment:

  1. Download and Install Arduino IDE: Download the stable version of the Arduino IDE from the official website and install it according to your operating system.
  2. Launch Arduino Application: Open the Arduino IDE.
  3. Install ESP32 Board Package:
    • Go to Tools > Board > Boards Manager...
    • Search for "esp32".
    • Install version 3.3.5 or a higher version of the "ESP32 by Espressif Systems" package.

Let's use a simple blinking program to demonstrate the upload process:

  1. Select Board and Port:
    • Go to Tools > Board > ESP32 Arduino > XIAO_ESP32C5.
    • Go to Tools > Port and select the correct COM port for your XIAO ESP32-C5. If you are unsure, unplug and re-plug the board to identify the new port that appears.
    Arduino IDE screenshot showing board selection for XIAO ESP32-C5
    Figure 6: Arduino IDE Board and Port Selection
  2. Paste the Code: Copy and paste the following blinking code into your Arduino Sketch. The LED_BUILTIN refers to the 'L' LED on the development board.
    
    void setup() {
      pinMode(LED_BUILTIN, OUTPUT);
      Serial.begin(9600);
    }
    
    void loop() {
      digitalWrite(LED_BUILTIN, LOW);
      Serial.print("LED ON \n");
      delay(1000);
      digitalWrite(LED_BUILTIN, HIGH);
      Serial.print("LED OFF \n");
      delay(1000);
    }
              
  3. Upload the Program: Click the "Upload" button (right arrow icon) in the Arduino IDE toolbar.
    Arduino IDE screenshot showing code upload process
    Figure 7: Arduino IDE Upload Button

4.4. Effect Demonstration:

After successfully uploading the program, you will observe the 'L' indicator LED on the board blinking at 1-second intervals. Simultaneously, if you open the Serial Monitor (Tools > Serial Monitor) in the Arduino IDE, you will see "LED ON" and "LED OFF" messages printed alternately.

5. Operating Instructions

5.1. Deep Sleep Mode:

The XIAO ESP32-C5 supports deep sleep and wake-up functionalities, crucial for low-power applications. An example might use a high-level trigger on pin D0 to wake the device from deep sleep. This is a configurable option, as the hardware supports both high and low-level triggers to adapt to different circuit designs.

Caution: The XIAO ESP32-C5 supports activation by GPIO and by timer. To avoid loss of hardware debugging capabilities and increased difficulty in firmware burning during low-power development, it is strongly recommended that JTAG pins (MTMS, MTDI, MTCK, MTDO) be reserved for exclusive use and not used as wake-up sources for deep sleep mode.

5.2. Battery Usage:

The XIAO ESP32-C5 can be powered by a 3.7V lithium battery. Refer to the wiring diagram below for proper connection.

Battery wiring diagram for XIAO ESP32-C5
Figure 8: Battery Wiring Diagram

Caution: Be careful not to short-circuit the positive and negative terminals when soldering to prevent damage to the battery and the equipment.

Battery Usage Instructions:

  1. Use qualified batteries that meet the specified requirements.
  2. The XIAO can be connected to your computer via a data cable while using the battery. The XIAO has a built-in circuit protection chip for safety.
  3. When the XIAO ESP32-C5 is powered by a battery, the 'C' LED will illuminate, indicating that charge management is active.

Checking Battery Voltage:

The XIAO ESP32-C5 is equipped with the SGM40567 battery charging chip and the TPS22916CYFPR battery voltage acquisition chip. You can enable BAT_VOLT_PIN_EN to activate the voltage acquisition function and read the battery voltage via BAT_VOLT_PIN.

Tip: On the XIAO ESP32-C5, BAT_VOLT_PIN corresponds to GPIO6, and BAT_VOLT_PIN_EN corresponds to GPIO26.

The analogReadMilliVolts() function is used to read the current analog voltage from the BAT_VOLT_PIN and return a calibrated voltage value in millivolts (mV). Unlike the conventional analogRead() function, which provides a raw ADC value, analogReadMilliVolts() automatically applies factory-integrated calibration parameters, resulting in higher accuracy and better linearity. During voltage sampling, repeated sampling (16 times) is performed using a for loop to suppress transient noise and discrete errors, improving measurement stability. The accumulated value is then divided by 16 to obtain a smoother and more reliable average voltage.

According to the datasheet, the effective measurement range of the ESP32-C5 is 0~3300 mV. The built-in battery voltage acquisition circuit uses two 100K resistors for voltage division, allowing for accurate readings.

6. Specifications

Table 2: Seeed Studio XIAO ESP32-C5 Technical Specifications
Item Specification
ProductXIAO ESP32-C5
ChipsetESP32-C5HR8
ProcessorHigh-performance 32-bit RISC-V single-core microprocessor, up to 240MHz and a low-power 32-bit RISC-V core at up to 48MHz (according to Datasheet, up to 20MHz p.69 of Technical Reference Manual v0.2)
SRAM384KB
PSRAM8MB
Flash8MB
GPIO Pins11x GPIO Pin
Analog Pins1x Analog Pin + 4x Analog Pad on the reverse side
I2C Interface1x I2C
UART Interface1x UART
SPI Interface1x SPI
JTAG Interface1x JTAG (Pads on the reverse side)
User LED1x User LED (Green)
Charge LED1x Charge LED (Battery Charging Indicator)
Reset Button1x Reset Button
Boot Button1x Boot Button
Antenna Connector1x UFL Connector
Antenna Type2.4GHz FPC (2.9dBi) (same as used on XIAO ESP32-C3), Optional: 2.4GHz Rod Antenna (2.81dBi)
Wireless Connectivity2.4 and 5 GHz dual-band Wi-Fi 6 (802.11ax), Bluetooth® 5 (LE), Zigbee, Thread (802.15.4)
Power InputType-C: 5V/DC, Battery: 3.7V
Deep Sleep (USB Power)375 µA
Deep Sleep (Battery Power)15 µA
Working Temperature0°C ~ 85°C
Dimensions21 x 17.8mm

6.1. XIAO ESP32 Series Comparison:

Specification comparison table for XIAO ESP32 series
Figure 9: Comparison of XIAO ESP32 Series Boards

7. User Tips

  • Consider using an external high-gain antenna for extended wireless range in applications like wardriving or remote sensing.
  • The XIAO ESP32-C5 boards are highly recommended for DIY IoT enthusiasts and are compatible with platforms like Home Assistant using ESPHome.
  • Explore the official Seeed Studio developer page for extensive firmware development information and resources.
  • These mini boards are versatile and can be used for various purposes, including DIY sensors, controllers, and smart home devices.

8. Troubleshooting

  • USB Connection Issues: Ensure you are using a USB Type-C cable that supports data transfer, not just power. Some cables are charge-only and will not allow programming or serial communication.
  • Port Disappears After Deep Sleep: If the XIAO's serial port disappears after entering deep sleep mode, you will need to physically wake up the board (e.g., by pressing the reset button or triggering a wake-up pin) to re-establish the connection and see its port number in the Arduino IDE.
  • JTAG Pins as Wake-up Sources: Avoid using JTAG pins (MTMS, MTDI, MTCK, MTDO) as wake-up sources for deep sleep mode. This can interfere with hardware debugging and firmware uploading, especially during low-power development.
  • Battery Short Circuit: When connecting a battery, exercise extreme caution to avoid short-circuiting the positive and negative terminals, which can damage the battery and the board.

9. Maintenance

To ensure the longevity and optimal performance of your Seeed Studio XIAO ESP32-C5, follow these general maintenance guidelines:

  • Storage: Store the board in a dry, cool environment, away from direct sunlight and extreme temperatures.
  • Handling: Handle the board with care to avoid physical damage to components or pins. Avoid touching the electronic components directly to prevent electrostatic discharge.
  • Cleaning: If necessary, gently clean the board with a soft, dry brush or a lint-free cloth. Do not use liquids or abrasive cleaners.
  • Power Supply: Always use a stable and appropriate power supply (5V via USB-C or 3.7V via battery) to prevent damage.

10. Warranty and Support

Thank you for choosing Seeed Studio products. We are committed to providing comprehensive support to ensure a smooth experience with our products. We offer various communication channels to meet different preferences and needs.

For technical assistance, product discussions, and further documentation, please refer to the official Seeed Studio Wiki and support forums. The latest information and resources can be found on the product's dedicated wiki page:

Seeed Studio XIAO ESP32-C5 Getting Started Wiki

Additionally, a user manual in PDF format is available for download, providing detailed guides and documents:

User Manual (PDF)

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.