

The XIAO ESP32 C6 is a compact microcontroller board developed by XIAO, featuring the powerful ESP32-C6 chip. This board integrates Wi-Fi 6, Bluetooth 5.0, and IEEE 802.15.4 (Thread/Zigbee) capabilities, making it an excellent choice for IoT applications, smart home devices, and wireless communication projects. Its small form factor and low power consumption make it ideal for prototyping and embedding into space-constrained designs.








The following table outlines the key technical specifications of the XIAO ESP32 C6:
| Specification | Details |
|---|---|
| Microcontroller | ESP32-C6 (RISC-V architecture) |
| Wi-Fi | Wi-Fi 6 (802.11ax), 2.4 GHz |
| Bluetooth | Bluetooth 5.0 Low Energy (LE) |
| Zigbee/Thread | IEEE 802.15.4 support |
| Operating Voltage | 3.3V |
| Input Voltage | 5V (via USB-C) |
| Flash Memory | 4 MB |
| SRAM | 512 KB |
| GPIO Pins | 11 (including multifunctional pins) |
| Communication Interfaces | UART, I2C, SPI, PWM, ADC |
| USB Interface | USB-C (supports programming and power supply) |
| Power Consumption | Ultra-low power consumption in deep sleep mode |
| Dimensions | 21 x 17.5 mm |
The XIAO ESP32 C6 features a total of 14 pins, including power, GPIO, and communication pins. Below is the pinout description:
| Pin | Name | Function |
|---|---|---|
| 1 | 3V3 | 3.3V power output |
| 2 | GND | Ground |
| 3 | GPIO0 | General-purpose I/O, supports ADC, PWM, and other functions |
| 4 | GPIO1 | General-purpose I/O, supports ADC, PWM, and other functions |
| 5 | GPIO2 | General-purpose I/O, supports ADC, PWM, and other functions |
| 6 | GPIO3 | General-purpose I/O, supports ADC, PWM, and other functions |
| 7 | GPIO4 | General-purpose I/O, supports ADC, PWM, and other functions |
| 8 | GPIO5 | General-purpose I/O, supports ADC, PWM, and other functions |
| 9 | RX | UART Receive |
| 10 | TX | UART Transmit |
| 11 | SDA | I2C Data Line |
| 12 | SCL | I2C Clock Line |
| 13 | USB-C | USB interface for programming and power |
| 14 | RST | Reset pin |
Powering the Board:
Programming the Board:
Connecting Peripherals:
Wireless Communication:
WiFi.h or BLEDevice.h can simplify development.Below is an example of using the XIAO ESP32 C6 to connect to a Wi-Fi network and send data to a server:
#include <WiFi.h> // Include the Wi-Fi library
// Replace with your network credentials
const char* ssid = "Your_SSID";
const char* password = "Your_PASSWORD";
void setup() {
Serial.begin(115200); // Initialize serial communication
delay(1000);
// Connect to Wi-Fi
Serial.print("Connecting to Wi-Fi");
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("\nWi-Fi connected!");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP()); // Print the device's IP address
}
void loop() {
// Add your main code here
}
Board Not Detected by Computer:
Wi-Fi Connection Fails:
Code Upload Fails:
Low Wireless Signal Strength:
Q: Can I power the board with a battery?
A: Yes, you can use a 3.7V LiPo battery with a suitable voltage regulator to supply 3.3V to the 3V3 pin.
Q: Does the board support OTA updates?
A: Yes, the ESP32-C6 chip supports Over-The-Air (OTA) updates for firmware.
Q: Can I use this board for Zigbee communication?
A: Yes, the XIAO ESP32 C6 supports IEEE 802.15.4, which is the foundation for Zigbee and Thread protocols.