Skip to content

ESP32-C6 SuperMini — hardware reference ​

A hardware note for the "ESP32-C6 SuperMini", the second target board this firmware runs on (platformio.ini env supermini_c6, IDF_TARGET=esp32c6). Written from the Espressif ESP32-C6 datasheet (for chip-level facts), two independent vendor pinout pages (for board-level pads), and this project's own board descriptor components/board/board_supermini_c6.c, which is the authority for the pins actually used.

Scope. This documents the board as hardware: the chip inside it, its exposed pads, its strapping pins and native-USB pins, and how this firmware wires the OpenTherm shield to it. It is not a schematic — the "SuperMini" is a generic, nameless board sold by many vendors with no official schematic, so every board-level pin claim is cross-checked against at least two sources and every chip-level fact (strapping, USB, ADC) is taken only from Espressif. Secondary sources are known to be wrong on chip facts (e.g. one calls GPIO2 a strapping pin — it is not; see Strapping pins).


1. Overview ​

The ESP32-C6 SuperMini is a tiny (~22.5 × 18 mm) development board built around Espressif's ESP32-C6 RISC-V SoC. Of the chip's 22 GPIOs it brings 17 out on its two 2.54 mm pin rows and the other five (GPIO12/13, the USB pair, and GPIO21–23) only on solder pads on the board face. It is powered and programmed over a USB-C port using the chip's native USB Serial/JTAG (no USB-to-UART bridge chip), and carries an addressable WS2812 RGB LED, a plain status LED, and a BOOT and RESET button. Radios: Wi-Fi 6, Bluetooth 5 LE, and 802.15.4 (Thread/Zigbee).

The specific board this project uses is a bare ESP32-C6FH4 variant: 4 MB in-package flash, no PSRAM, a PCB ceramic antenna, and native USB Serial/JTAG only. There is no vendor-branded, versioned schematic for the SuperMini family, but an unbranded schematic sheet is available (local copy under docs/images/esp32-c6-supermini/; its title block is an empty placeholder — no vendor name or revision). The pad→GPIO layout, the LiPo charger and the LED wiring in this doc are read from that schematic; chip-level facts come from the Espressif datasheet. Clones from different sellers may still differ, so treat a single vendor page as indicative.


2. Chip / module specs (ESP32-C6) ​

All figures from the Espressif ESP32-C6 datasheet.

ItemValue
High-performance CPU32-bit RISC-V single core, up to 160 MHz
Low-power CPU32-bit RISC-V, up to 20 MHz (LP core, runs while HP core sleeps)
HP SRAM512 KB
LP SRAM16 KB
ROM320 KB
Flashin-package 4 MB or 8 MB (QFN32); off-package up to 16 MB. This board: 4 MB, no PSRAM
Wi-FiWi-Fi 6 (802.11ax) in the 2.4 GHz band (also b/g/n)
BluetoothBluetooth 5 (LE)
802.15.4Thread 1.3 and Zigbee 3.0
ADC12-bit SAR ADC, up to 7 channels (ADC1)
USBnative USB Serial/JTAG controller (CDC + JTAG), no external bridge
GPIOs30 (QFN40) or 22 (QFN32). The SuperMini's ESP32-C6FH4 is the QFN32 part: 17 of its GPIOs are on the pin rows, 5 on face pads (§4)

The ESP32-C6 has a single ADC unit (ADC1); ADC channels 0–6 map to GPIO0–GPIO6.


3. Board specs ​

ItemValueConfidence
Dimensions~22.5 × 18 mmboth vendor sources agree
Header pitch2.54 mm, dual-rowboth agree
ChipESP32-C6 (this board: ESP32-C6FH4, 4 MB flash, no PSRAM)repo-verified
AntennaPCB ceramic antennarepo-verified
USBUSB-C, native USB Serial/JTAG, no UART bridgeboth agree
RGB LEDWS2812 addressable, on GPIO8both agree
Status/user LEDplain LED on GPIO15both agree
Charge LEDgreen LED, indicates LiPo charging; not GPIO-controllableschematic-confirmed
BAT pad + LiPo chargerTP4054 (SOT23-5) LiPo charger + BAT padschematic-confirmed
BOOT buttonGPIO9 (active low, 10 kΩ pull-up)schematic-confirmed
RESET buttonresets the chip (CHIP_EN, 10 kΩ pull-up); no GPIOschematic-confirmed
Power pads5V/VBUS, GND, 3V3 (LDO output)schematic-confirmed
USB connectorUSB-C (16-pin SMD)schematic-confirmed
Logic level3.3 V, not 5 V tolerantvendor

Reliability caveats of the generic board. No vendor-branded schematic exists (an unbranded sheet does — see §8), the 3V3 LDO is small (vendor pages cite roughly a few hundred mA), the ceramic antenna's RF performance varies between clones, and silkscreen/pad layout differs slightly between sellers. Verify power rails and pad positions with a multimeter before trusting a picture.


4. Pinout table ​

Exposed pads with the USB-C port oriented up. Left/right rows and GPIO numbers are the intersection of the two cross-checked vendor sources; where the two disagree or only one lists a pad it is marked. "Trap"/"safe" is from this project's point of view (a safe pin is free of strapping, USB, UART0 and on-board LED/button duties).

Left row (USB up) ​

PadGPIOFunction / notesFor this project
TXGPIO16UART0 U0TXD (default console TX)avoid (UART0)
RXGPIO17UART0 U0RXD (default console RX)avoid (UART0)
0GPIO0ADC1_CH0, LP GPIOsafe
1GPIO1ADC1_CH1, LP GPIOsafe
2GPIO2ADC1_CH2, LP GPIO. NOT a strapping pin (see §5)safe
3GPIO3ADC1_CH3, LP GPIOsafe
4GPIO4ADC1_CH4, strapping pin (MTMS/JTAG)trap (strapping)
5GPIO5ADC1_CH5, strapping pin (MTDI/JTAG)trap (strapping)
6GPIO6ADC1_CH6, JTAG (MTCK)care (JTAG)
7GPIO7LP GPIO, JTAG (MTDO)care (JTAG)

Per the board schematic, header H1 (left row) is exactly GPIO7, 6, 5, 4, 3, 2, 1, 0, then U0RXD (GPIO17) and U0TXD (GPIO16). GPIO21, GPIO22 and GPIO23 are NOT on the pin header: the schematic draws them as "Microbit Pads (NC)", and the vendor pinout shows them as solder pads on the board face, off the pin rows.

Right row (USB up) ​

PadGPIOFunction / notesFor this project
5V—USB 5V in / outpower
GND—groundpower
3V3—3V3 LDO outputpower
20GPIO20general IO (often labelled I2C SDA)safe
19GPIO19general IO (often labelled I2C SCL)used: OpenTherm OUT
18GPIO18general IOused: OpenTherm IN
15GPIO15status LED, strapping pin (JTAG source select)on-board LED / strapping
14GPIO14general IOsafe
9GPIO9BOOT button, strapping pin (boot mode)button
8GPIO8WS2812 RGB LED, strapping pin (boot mode)on-board LED / strapping

Note on GPIO12/GPIO13 (native USB). The schematic wires GPIO12 = USB_D− and GPIO13 = USB_D+ through 22 Ω series resistors to the USB-C connector. On this board they reach only two "Microbit" solder pads on the board face, not the 2.54 mm header, and must not be repurposed (see §6).


5. Strapping pins & boot ​

Authoritative (Espressif ESP32-C6 datasheet) — the strapping pins are exactly:

GPIO4, GPIO5, GPIO8, GPIO9, GPIO15

(The datasheet lists them as GPIO8, GPIO9, MTMS, MTDI, GPIO15; on the C6, MTMS = GPIO4 and MTDI = GPIO5.)

  • GPIO8 + GPIO9 select the boot mode after reset is released. GPIO9 has an internal pull-up and is the BOOT button: holding it low at reset drops the chip into the ROM download bootloader.
  • GPIO15 selects the source of the JTAG signals during early boot. On this board it also drives the plain status LED — safe as an output because GPIO15 has no internal pull-up and the LED load does not override the pin's level at reset.
  • GPIO4, GPIO5 are strapping pins (also JTAG MTMS/MTDI).

Do NOT trust secondary sources on this. At least one popular pinout page (mischianti) labels GPIO2 a strapping pin — it is not one per Espressif; GPIO2 is a plain ADC-capable IO. Another (espboards) lists GPIO6/GPIO7 among "strapping" pins — those are JTAG (MTCK/MTDO), not strapping. The repo's board descriptor carries this exact warning in its header comment.

Entering download mode: hold BOOT (GPIO9) while pressing/releasing RESET (EN), then release BOOT. With native USB Serial/JTAG the toolchain can usually reset into the bootloader automatically, but a held BOOT is the reliable fallback — and is often needed when an external circuit holds a strapping input at reset.


6. Native USB ​

The ESP32-C6's USB Serial/JTAG peripheral is wired to the USB-C connector on:

GPIO12 = USB_D-      GPIO13 = USB_D+

Consequences for this board:

  • No USB-to-UART bridge chip. The console (CDC) and flashing both run over native USB directly to the chip. There is no CP2102/CH340; the console is ESP-IDF's USB Serial/JTAG console (CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y in sdkconfig.defaults), with no TinyUSB stack.
  • GPIO12 and GPIO13 are reserved for USB. Repurposing either kills the USB console and flashing.
  • UART0 (GPIO16/GPIO17) is still available as a secondary serial console on the TX/RX header pads if wired to an external adapter, but it is not the primary path.

7. This project's usage ​

The DIYLess OpenTherm Master Shield (D1-mini form factor) does not plug into the SuperMini — the board has a different header. It is connected with four flying wires to the shield's D1 (OUT), D2 (IN), 3V3 and GND pads, so the GPIOs are chosen freely rather than dictated by a header.

Assignments, from components/board/board_supermini_c6.c (the single source of truth):

FunctionGPIODescriptor fieldNotes
OpenTherm OUT (master → boiler)GPIO19ot_out, ot_out_inverted = trueonly the OUT line is inverted
OpenTherm IN (boiler → master)GPIO18ot_in, ot_in_inverted = falseread as-is
BOOT buttonGPIO9button, button_inverted = true, button_is_download_strap = truestrapping pin, active low
Status LED (plain)GPIO15status_ledstrapping pin, safe as output (no pull-up)
WS2812 RGB LEDGPIO8rgb.gpio, brightness = 16draws current even when "off" → lower brightness than the C3
DS18B20 1-Wirenoneonewire_gpio = -1not wired; -1 makes app_main skip the 1-Wire task
Net transportWi-Finet_transport = BOARD_NET_WIFI

Why GPIO18 / GPIO19 for OpenTherm:

  • adjacent pads on the right-hand row — two wires side by side, less chance of a mistake;
  • neither is a strapping pin (those are 4, 5, 8, 9, 15);
  • neither is USB (USB Serial/JTAG is GPIO12/GPIO13);
  • neither is UART0 (GPIO16/GPIO17), nor an on-board LED (GPIO8/GPIO15), nor the button (GPIO9).

The C3 ⇄ C6 pin trap — do NOT copy pin numbers between boards. On the LOLIN C3 mini, GPIO18 and GPIO19 are the native USB pins; on the ESP32-C6 they are free general IO, and the C6's USB moved to GPIO12/GPIO13. Copying 18/19 from this C6 descriptor into the C3 descriptor would kill the C3 console and flashing. Equally, do not carry the C3's shield-dictated GPIO8/GPIO10 here — on the C6, GPIO8 is at once a strapping pin and the WS2812 LED. The inversion (ot_out_inverted) is a property of the adapter, not the board, so it matches the C3.

All GPIO numbers live only in components/board/. Every other component reaches these pins through board_get(). To change wiring, edit the descriptor — nothing else.

Cross-references:

  • components/board/board_supermini_c6.c — the authoritative descriptor (with the same warnings inline).
  • DIYLESS OpenTherm master shield — the shield this board drives (the flying-wire adaptation is documented there too), the OpenTherm line behaviour, and the inversion rationale.
  • components/board/README.md — the board-descriptor contract.

8. Sources ​

Authoritative (chip-level facts — strapping, USB, ADC, memory, radios):

Secondary — board-level pads (cross-checked against each other; treated as unreliable on chip-level strapping/USB claims):

Local reference files (checked into docs/images/esp32-c6-supermini/, the primary source for the pad layout, the charger and the LED wiring):

  • esp32-c6-supermini-schematic.jpg — the board schematic (ESP32-C6FH4, USB-C, TP4054 LiPo charger, LDO, WS2812, buttons, antenna matching, headers H1/H2). Unbranded — the title block is a blank placeholder, so there is no vendor name or revision.
  • esp32-c6-supermini-pinout.jpg — the vendor pinout diagram.

ESP32-C6 SuperMini schematic

ESP32-C6 SuperMini vendor pinout

In-repo (the authority for pins actually used):


What the local schematic settles (docs/images/esp32-c6-supermini/): H1 (left) = GPIO7…0 + U0RXD/U0TXD; H2 (right) = 5V, GND, 3V3, GPIO20, 19, 18, 15, 14, 9, 8. GPIO12/13 (native USB) and GPIO21/22/23 are "Microbit" solder pads, not header pins. The BAT pad, the TP4054 LiPo charger and the green charge LED are on the board. The schematic's title block is a blank placeholder (unbranded, no revision), so SuperMini clones from other sellers may differ; verify with a multimeter. The four pads this project uses (GPIO18, GPIO19, 3V3, GND) are schematic-confirmed and repo-verified.