

The XIAO ESP32C3 by Seeed Studio is a compact and powerful microcontroller board based on the ESP32-C3 chip. It features built-in Wi-Fi and Bluetooth Low Energy (BLE) capabilities, making it an excellent choice for Internet of Things (IoT) projects, smart devices, and wireless communication applications. Its small form factor and low power consumption make it ideal for portable and space-constrained designs.








Below are the key technical details of the XIAO ESP32C3:
| Specification | Details |
|---|---|
| Microcontroller | ESP32-C3 RISC-V single-core processor |
| Clock Speed | Up to 160 MHz |
| Flash Memory | 4 MB |
| SRAM | 400 KB |
| Wireless Connectivity | Wi-Fi 802.11 b/g/n (2.4 GHz), Bluetooth 5.0 BLE |
| Operating Voltage | 3.3V |
| Input Voltage Range | 5V (via USB-C) |
| GPIO Pins | 11 (including ADC, PWM, I2C, SPI, UART) |
| USB Interface | USB-C (supports programming and power supply) |
| Dimensions | 21 x 17.5 mm |
| Power Consumption | Ultra-low power consumption in deep sleep mode |
| Operating Temperature | -40°C to 85°C |
The XIAO ESP32C3 has 11 GPIO pins, which are multifunctional and can be configured for various purposes. Below is the pinout description:
| Pin | Function | Description |
|---|---|---|
| 0 | GPIO0, ADC, PWM | General-purpose I/O, Analog-to-Digital Converter, Pulse Width Modulation |
| 1 | GPIO1, ADC, PWM | General-purpose I/O, Analog-to-Digital Converter, Pulse Width Modulation |
| 2 | GPIO2, ADC, PWM | General-purpose I/O, Analog-to-Digital Converter, Pulse Width Modulation |
| 3 | GPIO3, ADC, PWM | General-purpose I/O, Analog-to-Digital Converter, Pulse Width Modulation |
| 4 | GPIO4, ADC, PWM | General-purpose I/O, Analog-to-Digital Converter, Pulse Width Modulation |
| 5 | GPIO5, UART TX, PWM | General-purpose I/O, UART Transmit, Pulse Width Modulation |
| 6 | GPIO6, UART RX, PWM | General-purpose I/O, UART Receive, Pulse Width Modulation |
| 7 | GPIO7, I2C SDA, PWM | General-purpose I/O, I2C Data Line, Pulse Width Modulation |
| 8 | GPIO8, I2C SCL, PWM | General-purpose I/O, I2C Clock Line, Pulse Width Modulation |
| 9 | GPIO9, SPI MOSI, PWM | General-purpose I/O, SPI Master Out Slave In, Pulse Width Modulation |
| 10 | GPIO10, SPI MISO, PWM | General-purpose I/O, SPI Master In Slave Out, Pulse Width Modulation |
Powering the Board:
Programming the Board:
Connecting Peripherals:
Wireless Communication:
WiFi.h and BLEDevice.h can simplify development.Below is an example of using the XIAO ESP32C3 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("\nConnected to Wi-Fi!");
}
void loop() {
// Check Wi-Fi connection status
if (WiFi.status() == WL_CONNECTED) {
Serial.println("Wi-Fi is connected!");
} else {
Serial.println("Wi-Fi is not connected!");
}
delay(5000); // Wait for 5 seconds before checking again
}
The board is not detected by the computer:
Wi-Fi connection fails:
Code upload fails:
GPIO pins not working as expected:
pinMode(pin, OUTPUT)). Can the XIAO ESP32C3 be powered by a battery?
Yes, it can be powered by a 3.7V LiPo battery connected to the 3.3V and GND pins.
Does the board support OTA (Over-The-Air) updates?
Yes, the ESP32-C3 chip supports OTA updates, which can be implemented using the appropriate libraries.
What is the maximum range of the Wi-Fi and BLE?
The range depends on environmental factors but typically reaches up to 30 meters indoors and 100 meters outdoors.
Can I use the XIAO ESP32C3 with MicroPython?
Yes, the board supports MicroPython, and you can flash the firmware to use it.