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.
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
3. Hardware Overview
The XIAO ESP32-C5 features a compact design with essential components for IoT development.
- 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.
| XIAO Pin | Function | Chip Pin | Alternative Functions | Description |
|---|---|---|---|---|
| 5V | VBUS | Power Input/Output | ||
| GND | Ground | |||
| 3V3 | 3V3_OUT | Power Output | ||
| D0 | Analog | GPIO1 | LP_UART_DSRN, LP_GPIO1 | GPIO, ADC |
| D1 | GPIO0 | LP_UART_DTRN, LP_GPIO0 | GPIO | |
| D2 | GPIO25 | GPIO | ||
| D3 | GPIO7 | SDIO_DATA1 | GPIO | |
| D4 | SDA | GPIO23 | GPIO, I2C Data | |
| D5 | SCL | GPIO24 | GPIO, I2C Clock | |
| D6 | TX | GPIO11 | GPIO, UART Transmit | |
| D7 | RX | GPIO12 | GPIO, UART Receive | |
| D8 | SCK | GPIO8 | TOUCH7 | GPIO, SPI Clock |
| D9 | MISO | GPIO9 | TOUCH8 | GPIO, SPI Data |
| D10 | MOSI | GPIO10 | TOUCH9 | GPIO, SPI Data |
| MTDO | GPIO5 | LP_UART_TXD, LP_GPIO5 | JTAG | |
| MTDI | GPIO3 | LP_I2C_SCL, LP_GPIO3 | JTAG, ADC | |
| MTCK | GPIO4 | LP_UART_RXD, LP_GPIO4 | JTAG, ADC | |
| MTMS | GPIO2 | LP_I2C_SDA, LP_GPIO2 | JTAG, ADC | |
| ADC_BAT | GPIO6 | Read battery voltage | ||
| ADC_CRL | GPIO26 | Controls (enables/disables) the measurement circuit to save power. | ||
| Reset | CHIP_EN | Enable | ||
| Boot | GPIO28 | Enter Boot mode | ||
| U.FL-R-SMT1 | LNA_IN | UFL Antenna | ||
| CHARGE_LED | VCC_3V3 | CHG-LED_Red | ||
| USER_LED | GPIO27 | Yellow 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
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:
- 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.
- Launch Arduino Application: Open the Arduino IDE.
- 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.
- Go to
4.3. Uploading a Program (Blink Example):
Let's use a simple blinking program to demonstrate the upload process:
- Select Board and Port:
- Go to
Tools > Board > ESP32 Arduino > XIAO_ESP32C5. - Go to
Tools > Portand 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.
Figure 6: Arduino IDE Board and Port Selection - Go to
- Paste the Code: Copy and paste the following blinking code into your Arduino Sketch. The
LED_BUILTINrefers 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); } - Upload the Program: Click the "Upload" button (right arrow icon) in the Arduino IDE toolbar.
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.
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:
- Use qualified batteries that meet the specified requirements.
- 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.
- 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
| Item | Specification |
|---|---|
| Product | XIAO ESP32-C5 |
| Chipset | ESP32-C5HR8 |
| Processor | High-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) |
| SRAM | 384KB |
| PSRAM | 8MB |
| Flash | 8MB |
| GPIO Pins | 11x GPIO Pin |
| Analog Pins | 1x Analog Pin + 4x Analog Pad on the reverse side |
| I2C Interface | 1x I2C |
| UART Interface | 1x UART |
| SPI Interface | 1x SPI |
| JTAG Interface | 1x JTAG (Pads on the reverse side) |
| User LED | 1x User LED (Green) |
| Charge LED | 1x Charge LED (Battery Charging Indicator) |
| Reset Button | 1x Reset Button |
| Boot Button | 1x Boot Button |
| Antenna Connector | 1x UFL Connector |
| Antenna Type | 2.4GHz FPC (2.9dBi) (same as used on XIAO ESP32-C3), Optional: 2.4GHz Rod Antenna (2.81dBi) |
| Wireless Connectivity | 2.4 and 5 GHz dual-band Wi-Fi 6 (802.11ax), Bluetooth® 5 (LE), Zigbee, Thread (802.15.4) |
| Power Input | Type-C: 5V/DC, Battery: 3.7V |
| Deep Sleep (USB Power) | 375 µA |
| Deep Sleep (Battery Power) | 15 µA |
| Working Temperature | 0°C ~ 85°C |
| Dimensions | 21 x 17.8mm |
6.1. XIAO ESP32 Series Comparison:
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: