

The XIAO ESP32 C3 is a compact and powerful microcontroller board developed by Seeed Studio, featuring the ESP32-C3 chip. This board is designed for IoT (Internet of Things) applications, offering built-in Wi-Fi and Bluetooth Low Energy (BLE) capabilities. Its small form factor and robust performance make it ideal for projects requiring wireless connectivity, such as smart home devices, wearables, and remote monitoring systems.








The following table outlines the key technical details of the XIAO ESP32 C3:
| Parameter | Specification |
|---|---|
| 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), BLE 5.0 |
| Operating Voltage | 3.3 V |
| Input Voltage Range | 5 V (via USB-C) |
| GPIO Pins | 11 (including ADC, PWM, I2C, SPI, UART) |
| ADC Resolution | 12-bit |
| Dimensions | 21 x 17.5 mm |
| USB Interface | USB-C |
| Power Consumption | Ultra-low power modes supported |
The XIAO ESP32 C3 features a total of 11 GPIO pins, which are multifunctional and can be configured for various purposes. Below is the pinout description:
| Pin | Name | Function |
|---|---|---|
| 1 | 3V3 | 3.3V power output |
| 2 | GND | Ground |
| 3 | D0 | GPIO0, ADC, UART RX |
| 4 | D1 | GPIO1, ADC, UART TX |
| 5 | D2 | GPIO2, ADC, PWM |
| 6 | D3 | GPIO3, ADC, PWM |
| 7 | D4 | GPIO4, ADC, PWM |
| 8 | D5 | GPIO5, ADC, PWM |
| 9 | D6 | GPIO6, I2C SDA |
| 10 | D7 | GPIO7, I2C SCL |
| 11 | RST | Reset pin |
Powering the Board:
Connecting Peripherals:
Programming the Board:
Below is an example of using the XIAO ESP32 C3 to read an analog sensor and send data over Wi-Fi:
#include <WiFi.h> // Include the Wi-Fi library
// Replace with your Wi-Fi credentials
const char* ssid = "Your_SSID";
const char* password = "Your_PASSWORD";
void setup() {
Serial.begin(115200); // Initialize serial communication
pinMode(2, INPUT); // Set GPIO2 (D2) as input for the sensor
// 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() {
int sensorValue = analogRead(2); // Read analog value from GPIO2
Serial.print("Sensor Value: ");
Serial.println(sensorValue);
delay(1000); // Wait for 1 second before the next reading
}
The board is not detected by the computer:
Wi-Fi connection fails:
Code upload fails:
Q: Can I power the XIAO ESP32 C3 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 (Over-The-Air) updates?
A: Yes, the ESP32-C3 chip supports OTA updates, which can be implemented in your code.
Q: What is the maximum range of the Wi-Fi and BLE?
A: The range depends on environmental factors, but typically Wi-Fi can reach up to 50 meters indoors and BLE up to 10 meters.
This concludes the documentation for the XIAO ESP32 C3.