Skip to the content
2 layers76.6 × 141.1 mmOniondao badge, the printed circuit board in 3D

An open-source, hacker-conference-style electronic badge built around the ESP32-S3-WROOM-1-N8R8 (8 MB flash + 8 MB Octal PSRAM), with swappable RF / audio / storage modules, an e-paper (or TFT) display socket, a secure…

Size
76.6 × 141.1 mm
Copper layers
2
Thickness
1.6 mm
Parts
190
Nets
129
Pads
474
Tracks, vias
965, 575
Pours
529
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
1 Apr 2026
Updated
16 Jun 2026

Overview

Oniondao badge is an open-source printed circuit board by OnionDAO-git, from the OnionDAO-git/oniondao-badge repository on GitHub. It is a 2-layer board of 76.6 × 141.1 mm with 190 parts on 129 nets, routed with 965 tracks and 575 vias.

It is built around the CC1101RGP, CH340C and ESP32-S3-WROOM-1-N8, with the ME6211C33M5G-N, ATECC608B-SSHDA-T and MBR0540 among its other parts. Its parts include 45 capacitors, 22 resistors, 8 connectors, 7 ICs and 5 inductors. It belongs with the lEDs and displays boards and the ESP32 boards of this library.

Main components

9

README

README.md

OnionDAO Badge

An open-source, hacker-conference-style electronic badge built around the ESP32-S3-WROOM-1-N8R8 (8 MB flash + 8 MB Octal PSRAM), with swappable RF / audio / storage modules, an e-paper (or TFT) display socket, a secure element, an I²C IO expander for the button matrix, and dual side-mounted expansion ports for hardware mods.

Designed in KiCad 9.0.3. The hardware (schematics, PCB, BOM, fabrication outputs, STEP model) lives in pcb/. The software lives in software/ and is community-driven — PRs welcome.

Top Bottom


Table of Contents


At a Glance

MCUEspressif ESP32-S3-WROOM-1-N8R8 (Wi-Fi + BT 5.0 LE, dual-core Xtensa LX7)
Memory8 MB quad-SPI flash (N8) + 8 MB Octal-SPI (OPI) PSRAM (R8)
USB / SerialWCH CH340C USB-UART bridge w/ DTR/RTS auto-reset
Secure ElementMicrochip ATECC608B-SSHDA (I²C, power-gated)
IO ExpanderTI TCA9534 (I²C, addr 0x20) driving the 6-button matrix (PB1–PB6)
Display24-pin socket (J4) — E-Ink / TFT SPI with BUSY, RST, DC, CS, SCK, MOSI
Audio (mod)NS4168 I²S amplifier + SPH0641 PDM mic (Sound Module)
Sub-GHz (mod)TI CC1101 SPI radio (315/433/868/915 MHz)
ExpansionLeft port J8 (10 pin) + Right port J10 (10 pin) — VCC / GND + GPIO
GPIO Used28 of the available ESP32-S3 GPIOs
Power GateQ5 (SS8050) on GPIO18 enables the peripheral PWR rail

Block Diagram

text
                              ┌────────────────────────┐
        USB-C ── CH340C ──────│ UART0  GPIO43/44       │
                              │                        │
   ┌── BOOT btn ── GPIO0 ─────│ STRAP                  │
   │                          │                        │
   │   ATECC608B ──┬─ SCL G9 ─│ I²C0                   │
   │   TCA9534  ──┘  SDA G10  │   ◄── INT G1 (PBINT)   │
   │                          │                        │
   │   J4 Display ─SPI──── G11/12/13/14/17/21          │
   │                          │                        │
   │   J8 Left   ── G48/47/19/42/41/40                  │  ESP32-S3-WROOM-1
   │   J10 Right ── G38/39/16/15/7/6/5/4                │
   │                          │                        │
   │   GPIO18 ──── Q5 ────────│ PWR rail to gated peripherals
   │   GPIO8  ──── SE_EN  ────│ ATECC608B power gate
   │                          └────────────────────────┘
   │
   └── PB1..PB6 ── TCA9534 P0..P5 ──► INT line ── GPIO1

Repository Layout

text
oniondao-badge/
├── README.md                   ← you are here
├── pcb/                        ← KiCad 9.0.3 hardware sources
│   ├── oniondao-badge.kicad_pro
│   ├── oniondao-badge.kicad_sch         (top-level schematic)
│   ├── oniondao-badge.kicad_pcb         (board layout)
│   ├── CC1101_MOD.kicad_sch              (Sub-GHz RF module)
│   ├── SOUND_MOD.kicad_sch               (I²S amp + PDM mic)
│   ├── oniondao-badge.step              (full 3D model)
│   ├── 3d/                               (additional STEP assets)
│   ├── production/                       (gerbers, BOMs, netlist)
│   ├── oniondao-badge_top.png           (board render — top)
│   ├── oniondao-badge_btm.png           (board render — bottom)
│   └── oniondao badge.html                   (interactive IO reference)
├── docs/
│   ├── HARDWARE.md             ← deep dive on every subsystem
│   ├── PINOUT.md               ← full GPIO ↔ net ↔ peripheral table
│   ├── MODULES.md              ← swappable modules & their pinmaps
│   └── CONTRIBUTING.md         ← how to PR a mod / guide / example
└── software/
    ├── README.md
    ├── examples/               ← minimal, single-feature firmware
    ├── guides/                 ← end-to-end how-tos
    └── mods/                   ← community firmware mods & forks

Tip: open pcb/oniondao badge.html in a browser for a colour-coded, searchable, filterable view of the IO table. It is the source of truth that docs/PINOUT.md mirrors in markdown.

Hardware Documentation

The docs are split so you can read just what you need:

  • docs/HARDWARE.md — overview of every subsystem on the board: power, USB/UART, boot circuit, I²C bus, display socket, secure element, button matrix, expansion ports.
  • docs/PINOUT.md — the complete GPIO map: every used pin, its net, direction, interface, and the peripheral it connects to.
  • docs/MODULES.md — the swappable modules (CC1101 / Sound) and the shared-GPIO assignments. Read this first if you are writing firmware that touches the side ports.

Manufacturing

  • Gerbers, drill files, and pick-and-place are zipped in pcb/production/oniondao-badge.zip.
  • BOMs per variant: bom-list_cc1101.xlsx, bom-list_sound.xlsx, bom-list_lanyard_new.xlsx.
  • IPC-D-356 netlist: pcb/production/netlist.ipc.

Quick Start (Software)

The badge enumerates as a standard CH340 serial port, so any ESP32-S3 toolchain works at the hardware level — ESP-IDF, Arduino-ESP32, PlatformIO, MicroPython, CircuitPython.

Building the firmware in this repo? The projects under software/ are ESP-IDF v5.5.x projects (with the Arduino core as a component). Follow the step-by-step VS Code + ESP-IDF setup guide to install the toolchain and flash a badge.

Memory configuration (N8R8)

The populated module is an ESP32-S3-WROOM-1-N8R8: 8 MB flash + 8 MB PSRAM in Octal (OPI) mode. PSRAM will not initialise unless you select Octal mode explicitly — quad-mode defaults silently disable it. Set per toolchain:

ToolchainFlashPSRAM
ESP-IDF (sdkconfig)CONFIG_ESPTOOLPY_FLASHSIZE_8MB=yCONFIG_SPIRAM=y, CONFIG_SPIRAM_MODE_OCT=y, CONFIG_SPIRAM_SPEED_80M=y
Arduino-ESP32 (boards menu)Flash Size = 8MBPSRAM = OPI PSRAM
PlatformIOboard_build.flash_size = 8MBboard_build.arduino.memory_type = qio_opi + -DBOARD_HAS_PSRAM

The firmware projects under software/ already carry these settings in their sdkconfig.defaults — see the VS Code + ESP-IDF setup guide.

Programming

  1. Plug in USB-C. The CH340C + DTR/RTS auto-reset circuit (Q1/Q2 on GPIO0/EN) means you do not need to hold BOOT — the toolchain strobes it for you.
  2. If auto-reset ever fails: hold BOOT (the SW button tied to GPIO0), tap RESET, release BOOT, then flash.

Minimal Arduino example

cpp
// Blink the peripheral power rail and read the BOOT button.
#define PWR_EN   18    // Q5 base — enables peripheral VCC
#define BOOT_BTN 0     // strapping pin, doubles as user button after boot

void setup() {
  Serial.begin(115200);          // CH340C on UART0 (GPIO43/44)
  pinMode(PWR_EN, OUTPUT);
  pinMode(BOOT_BTN, INPUT_PULLUP);
  digitalWrite(PWR_EN, HIGH);    // power-up peripherals
}

void loop() {
  Serial.printf("BOOT btn: %d\n", digitalRead(BOOT_BTN));
  delay(250);
}

Reading the 6 user buttons

The PB1–PB6 buttons are wired to the TCA9534 IO expander (I²C addr 0x20), not directly to the ESP32. A button press pulls PBINT (GPIO1) low; read the expander register over I²C to find which one.

cpp
#include <Wire.h>
#define SCL_PIN 9
#define SDA_PIN 10
#define PBINT   1
#define TCA9534 0x20

void buttonISR();

void setup() {
  Wire.begin(SDA_PIN, SCL_PIN, 400000);   // I²C Fast Mode
  pinMode(PBINT, INPUT_PULLUP);
  attachInterrupt(PBINT, buttonISR, FALLING);
}

void buttonISR() {
  Wire.beginTransmission(TCA9534);
  Wire.write(0x00);                       // Input port register
  Wire.endTransmission(false);
  Wire.requestFrom(TCA9534, 1);
  uint8_t state = Wire.read();            // bit N low = PB(N+1) pressed
  // ... dispatch on `state`
}

See software/examples/ for working firmware covering display, audio, RF, and the secure element.

Pinout Cheat Sheet

Source of truth: pcb/oniondao badge.html — open it in a browser for the filterable view. The markdown mirror is docs/PINOUT.md.

Core / UART / Boot

GPIONetDirPeripheralNotes
GPIO0IO0INBOOT button + auto-reset Q1/Q2Strapping — LOW at power-on → download mode
GPIO43TX0OUTCH340C RXD (via R1 220Ω)UART0 TX
GPIO44RX0INCH340C TXDUART0 RX
GPIO18PWROUTQ5 SS8050 → peripheral VCCHIGH = enable power gate

I²C Bus (Security Chip + IO Expander)

GPIONetDirPeripheralNotes
GPIO9SCLOUTTCA9534 + ATECC608B400 kHz max (Fast Mode)
GPIO10SDAI/OTCA9534 + ATECC608BTCA9534 @ 0x20
GPIO1PBINTINTCA9534 INT → PB1..PB6Active LOW, attachInterrupt(FALLING)
GPIO8SE_ENOUTATECC608B enableHIGH = active — power-gate when idle

Display Socket J4 (E-Ink / TFT SPI)

GPIONetDirJ4 PinFunction
GPIO14RSOUT3Display RESET — LOW ≥10 ms during init
GPIO13DCOUT11Data / Command select (HIGH = data)
GPIO12CSOUT12SPI Chip Select (active LOW)
GPIO11SCKOUT13SPI Clock
GPIO21BUSYIN9Busy — wait LOW before next refresh
GPIO17SDIOUT23SPI MOSI

Expansion Ports

PinLeft (J8)Right (J10)
1GNDGND
2VCCVCC
3GPIO48GPIO38
4GPIO47GPIO39
5GPIO19GPIO16
6GPIO42GPIO15
7GPIO41GPIO7
8GPIO40GPIO6
9VCCGPIO5
10GNDGPIO4

Heads-up: the Sound Module and CC1101 Module both reuse the same set of side-port GPIOs. Only one module's firmware can drive those pins at a time. See docs/MODULES.md for the exact overlap and how to choose at compile time.

Contributing Software Mods & Guides

We want this badge to be a playground. If you wrote a synth, a CC1101 replay tool, an OLED demo, a CTF challenge, a CircuitPython port — open a PR into software/.

  1. Pick the right folder:
    • software/examples/ — one feature, minimal code, no story.
    • software/guides/ — step-by-step tutorials (markdown + code).
    • software/mods/ — full firmware projects / forks / variants.
  2. Add a folder named after your mod, with a README.md describing what it does, which GPIOs / modules it requires, and how to build & flash.
  3. Open a PR. Use the template in .github/PULL_REQUEST_TEMPLATE.md.

Full guidelines: docs/CONTRIBUTING.md.

License

Hardware sources (KiCad files under pcb/) are released under CERN-OHL-S v2 unless a file header states otherwise. Software in software/ defaults to MIT — individual mods may override in their own folder's LICENSE file.

Parts

190
QtyValueFootprintReferences
141UCapacitor_SMD:C_0402_1005MetricC1, C3, C6, C7, C9, C11, C12, C13, C14, C15, C16, C17, C18, C19
11100nCapacitor_SMD:C_0402_1005MetricC2, C10, C21, C23, C24, C27, C28, C35, C41, C43, C44
1110KResistor_SMD:R_0402_1005MetricR2, R3, R6, R9, R10, R13, R14, R15, R16, R17, R18
910UCapacitor_SMD:C_0402_1005MetricC4, C5, C8, C25, C26, C30, C31, C40, C42
6SW_PushButton_Switch_SMD:SW_Push_1TS009xxxx-xxxx-xxxx_6x6x5mmPB1, PB2, PB3, PB4, PB5, PB6
5G***kibuzzard-69D663C6kibuzzard-69D663C6, kibuzzard-69D663C6, kibuzzard-69D663C6, kibuzzard-69D663C6, kibuzzard-69D663C6
31KResistor_SMD:R_0402_1005MetricR7, R22, R24
327nHInductor_SMD:L_0402_1005MetricL5, L6, L7
3G***kibuzzard-69D66565kibuzzard-69D66565, kibuzzard-69D66565, kibuzzard-69D66565
3G***kibuzzard-69D70112kibuzzard-69D70112, kibuzzard-69D70112, kibuzzard-69D70112
3G***kibuzzard-69D66580kibuzzard-69D66580, kibuzzard-69D66580, kibuzzard-69D66580
3MBR0540Diode_SMD:D_SOD-123D6, D7, D8
3ME6211C33M5Package_TO_SOT_SMD:SOT-23-5U5, U6, U14
3SS8050Package_TO_SOT_SMD:SOT-23Q1, Q2, Q5
2220pCapacitor_SMD:C_0402_1005MetricC48, C53
222KResistor_SMD:R_0402_1005MetricR21, R23
227pCapacitor_SMD:C_0402_1005MetricC45, C46
22U2Capacitor_SMD:C_0402_1005MetricC20, C22
23.9pCapacitor_SMD:C_0402_1005MetricC49, C50
256KResistor_SMD:R_0402_1005MetricR8, R29
25K1Resistor_SMD:R_0402_1005MetricR4, R5
2Conn_01x07_PinConnector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_VerticalJ6, J12
2G***kibuzzard-69D7A28Ckibuzzard-69D7A28C, kibuzzard-69D7A28C
2G***kibuzzard-69D7A287kibuzzard-69D7A287, kibuzzard-69D7A287
2G***kibuzzard-69D7A626kibuzzard-69D7A626, kibuzzard-69D7A626
2G***kibuzzard-69D7A260kibuzzard-69D7A260, kibuzzard-69D7A260
2G***kibuzzard-69D7A640kibuzzard-69D7A640, kibuzzard-69D7A640
2G***kibuzzard-69D7A5F4kibuzzard-69D7A5F4, kibuzzard-69D7A5F4
2G***kibuzzard-69D7A630kibuzzard-69D7A630, kibuzzard-69D7A630
2G***kibuzzard-69D7A638kibuzzard-69D7A638, kibuzzard-69D7A638
2LOGONIP_LOGO:S_LOGO_6G***, G***
2LOGONIP_LOGO:ONIONDAO_15G***, G***
2SW_PushButton_Switch_SMD:SW_SPST_B3U-1000PBOOT1, RST1
1220Resistor_SMD:R_0402_1005MetricR1
122UCapacitor_SMD:C_0402_1005MetricC29
122nHInductor_SMD:L_0402_1005MetricL4
126MhzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY2
12R2Resistor_SMD:R_0603_1608MetricR20
147UHInductor_SMD:L_APV_ANR4020L1
15.6pCapacitor_SMD:C_0402_1005MetricC52
18.2pCapacitor_SMD:C_0402_1005MetricC51
1AO3401APCM_JLCPCB:Q_SOT-23Q4
1ATECC608B-SSHDAPackage_SO:SOIC-8_3.9x4.9mm_P1.27mmU16
1BAT60ADiode_SMD:D_SOD-323D4
1CC1101RGPNIP_MOD:QFN50P400X400X100-21NU13
1CH340CPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU15
1Conn_01x02_PinConnector_JST:JST_GH_SM02B-GHS-TB_1x02-1MP_P1.25mm_HorizontalJ2
1Conn_01x04_PinConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1Conn_01x06_PinConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ8
1Conn_01x10_PinConnector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ10
1Conn_01x24_SocketConnector_FFC-FPC:Hirose_FH12-24S-0.5SH_1x24-1MP_P0.50mm_HorizontalJ4
1Conn_Coaxial_SmallConnector_Coaxial:SMA_Amphenol_901-143_HorizontalJ11
1ESP32-S3-WROOM-1RF_Module:ESP32-S3-WROOM-1U1
1G***kibuzzard-69D70186kibuzzard-69D70186
1G***kibuzzard-69D70130kibuzzard-69D70130
1G***kibuzzard-69D663ADkibuzzard-69D663AD
1G***kibuzzard-69E6D610kibuzzard-69E6D610
1G***kibuzzard-69D673C1kibuzzard-69D673C1
1G***kibuzzard-69E6D61Ckibuzzard-69E6D61C
1G***kibuzzard-69D665E3kibuzzard-69D665E3
1G***kibuzzard-69D673D2kibuzzard-69D673D2
1G***kibuzzard-69D7D7ADkibuzzard-69D7D7AD
1G***kibuzzard-69D7D873kibuzzard-69D7D873
1G***kibuzzard-69D66408kibuzzard-69D66408
1G***kibuzzard-69D665EFkibuzzard-69D665EF
1G***kibuzzard-69D70126kibuzzard-69D70126
1G***kibuzzard-69D665BBkibuzzard-69D665BB
1G***kibuzzard-69D70134kibuzzard-69D70134
1G***kibuzzard-69E6D626kibuzzard-69E6D626
1G***kibuzzard-69D6643Fkibuzzard-69D6643F
1G***kibuzzard-69D66624kibuzzard-69D66624
1G***kibuzzard-69D7A5EFkibuzzard-69D7A5EF
1G***kibuzzard-69D7012Bkibuzzard-69D7012B
1G***kibuzzard-69D66402kibuzzard-69D66402
1G***kibuzzard-69E6D5DEkibuzzard-69E6D5DE
1G***kibuzzard-69E6D63Bkibuzzard-69E6D63B
1G***kibuzzard-69D7A2FAkibuzzard-69D7A2FA
1G***kibuzzard-69D665FAkibuzzard-69D665FA
1G***kibuzzard-69D66453kibuzzard-69D66453
1G***kibuzzard-69D6645Fkibuzzard-69D6645F

The 165 most common of 190 parts.

Similar boards

  • 2 layers77.6 × 116.3 mmSolana badge, the printed circuit board in 3D

    Solana badge

    spacemandev-git/solana-defcon-badge-26

    2026 Solana Defcon Badge

    113 parts2
  • 2 layersSkyRizz ESPSOL, the printed circuit board in 3D

    SkyRizz ESPSOL

    SkyRizzAI/SkyRizz-ESPSOL

    An open-hardware, coin-sized ESP32-S3 development board with an on-board secure element, 6-axis IMU, PDM microphone, buzzer, USB-C, and Li-Po charging — all on a 40.6 mm (1.6") round, 2-layer PCB.

    101 partsCERN-OHL-S-2.0
  • 4 layers138.1 × 104.6 mmV7-kaleido, the printed circuit board in 3D

    V7-kaleido

    vroland/epdiy-hardware

    Hardware design files for EPDiy: https://github.com/vroland/epdiy.

    140 parts75CC-BY-SA-4.0
  • 4 layers136.4 × 77.8 mmMother, the printed circuit board in 3D

    Mother

    emiirkaya/ThermovitalSync-PCB

    A PCB project for a vital monitoring-cooling device with GUI

    99 parts2MIT
  • 2 layers98 × 56.3 mmESP32 HUB, the printed circuit board in 3D

    ESP32 HUB

    ANSHUMANDOCX/ESP32-Touch-Hub

    This is a Esp32 Hub that has a 3.5 inch tft touch screen

    77 parts
  • 4 layers92 × 56 mmREIN R1, the printed circuit board in 3D

    REIN R1

    rein-baremetal/REIN_R1_KiCad

    Dual-MCU baremetal embedded development board featuring high-speed QSPI storage, hardware USB hub, and flexible power management. Open for PCB trace routing collaboration

    177 parts2
  • 2 layers56.8 × 90 mmAdapter1, the printed circuit board in 3D

    Adapter1

    BBBSnowball/fw16

    E-Paper module for Framework 16

    40 parts3

Questions

How big is the Oniondao badge PCB?

It measures 76.6 × 141.1 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Oniondao badge use?

190 parts, built around the CC1101RGP, CH340C, ESP32-S3-WROOM-1-N8 and ME6211C33M5G-N. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Oniondao badge KiCad files?

From the OnionDAO-git/oniondao-badge repository on GitHub, at the commit this page was made from: the board is pcb/oniondao-badge.kicad_pcb and its schematic pcb/CC1101_MOD.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Oniondao badge design in my own project?

Its repository states no licence, so its author keeps all rights: ask OnionDAO-git before reusing the design.