Guide
ESP32-C2 (ESPC2-02) Pinout
The complete pin reference for the ESPC2-02 module: Espressif’s smallest, lowest-cost Wi-Fi and Bluetooth chip, and the exact pins you can safely reuse.
- Single-core RISC-V
- Wi-Fi + Bluetooth LE
- 9 exposed GPIOs
- 2–4 MB flash
Overview
This guide covers the ESPC2-02 module, built around Espressif’s ESP32-C2 chip. The chip itself is manufactured and marked as ESP8684, ESP32-C2 is Espressif’s marketing name for the same silicon. It’s Espressif’s smallest and lowest-cost Wi-Fi chip, aimed at simple connected devices rather than complex projects, so this compact module only exposes a subset of the chip’s GPIOs.
No 802.15.4 radio on this chip, so Thread and Zigbee aren’t possible here. (Only badges for protocols this exact chip actually supports are shown, no Wi-Fi 6/7 either: this is 802.11 b/g/n.)
Getting started
This module is usually wired up directly rather than plugged into a ready-made development board, so the three steps below assume you have a USB-to-serial adapter (or a carrier board that includes one). See “Flashing pins” further down for exactly which pins that adapter needs.
Hello World: blink an LED
The microcontroller equivalent of “Hello World”: GPIO18 toggles once a second, shown here in two different environments. Wire an LED (with a resistor) to GPIO18, a plain general-purpose pin with no other job on this module.
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/gpio.h"
#define LED_PIN GPIO_NUM_18
void app_main(void)
{
gpio_reset_pin(LED_PIN);
gpio_set_direction(LED_PIN, GPIO_MODE_OUTPUT);
while (1) {
gpio_set_level(LED_PIN, 1);
vTaskDelay(pdMS_TO_TICKS(1000));
gpio_set_level(LED_PIN, 0);
vTaskDelay(pdMS_TO_TICKS(1000));
}
}
#define LED_PIN 18
void setup() {
pinMode(LED_PIN, OUTPUT);
}
void loop() {
digitalWrite(LED_PIN, HIGH);
delay(1000);
digitalWrite(LED_PIN, LOW);
delay(1000);
}
ESP-IDF: build and flash with idf.py build flash monitor. Arduino IDE: install ESP32 board support first, see “Getting started” above.
Specifications
Official Espressif specifications for the ESP32-C2 (ESP8684) chip.
Compute
| Chip | ESP8684 (ESP32-C2) |
| CPU | Single-core RISC-V, up to 120 MHz |
| SRAM | 272 KB (16 KB reserved for cache) |
| Flash | 2 or 4 MB, embedded in the chip package |
Radio
| Wi-Fi | 802.11 b/g/n, 2.4 GHz |
| Bluetooth | 5.3 LE |
| Antenna | On-board PCB (module-dependent) |
Physical
| Operating voltage | 3.0V – 3.6V |
| Module size | 15.0 × 17.3 × 2.8 mm |
| Operating temperature | −40°C – +105°C |
| GPIOs | 14 on the chip, 9 exposed on this module |
Pinout diagram
The 12-pad layout of the ESPC2-02 module. This is a compact breakout, not every GPIO on the underlying chip is brought out to a pad.
GPIO quick reference
This chip only has ADC1, no ADC2, DAC or capacitive touch peripheral.
| GPIO | Special function | ADC | Boot state |
|---|---|---|---|
| 4 | JTAG MTMS, ADC1_4, SPI FSPIHD | ADC1 | Free |
| 5 | JTAG MTDI, SPI FSPIWP | — | Free |
| 6 | JTAG MTCK, SPI FSPICLK | — | Free |
| 7 | JTAG MTDO, SPI FSPID | — | Free |
| 9 | — | — | Strapping |
| 10 | SPI FSPICS0 | — | Free |
| 18 | — | — | Free |
| 19 | UART0 RX (default) | — | Free |
| 20 | UART0 TX (default) | — | Free |
Flashing pins (UART0)
Used by a USB-to-serial adapter to upload firmware, this module has no onboard one.
| Function | Pin | Description |
|---|---|---|
| TXD0 | GPIO20 | ESP32-C2 → PC (output) |
| RXD0 | GPIO19 | PC → ESP32-C2 (input) |
| EN | EN pin | Resets the chip |
| BOOT | GPIO9 | Hold low at reset to enter UART download mode |
Safety notes
Before you wire anything up
- GPIO9 is a strapping pin that sets the boot mode, check its state before using it as an output.
- GPIO4–GPIO7 double as the JTAG interface, fine to use as plain GPIOs, but avoid them if you ever need hardware debugging.
- The flash memory is embedded inside the chip package, none of the exposed GPIOs are reserved for it.
- This module runs at 3.3V logic, a 5V signal on any pin can damage the chip.
More guides
Keep building.
From ESP32 HomeKit accessories to Arduino and ATtiny reference guides, there’s more where this came from.
All guides