Skip to the content
2 layers52 × 30 mmEsp32s31-mini, the printed circuit board in 3D

全自动AI电路设计流水线: 需求→选型→原理图→PCB→验收仿真→固件,六环节门禁闭环 | Six-stage automated circuit design pipeline with machine-checkable verification gates

Size
52 × 30 mm
Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
22
Pads
174
Tracks, vias
443, 64
Pours
2
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
20 Oct 2026
Updated
5 Nov 2026

Overview

Esp32s31-mini is an open-source printed circuit board by DataFlux-Robot, from the DataFlux-Robot/fluxpcb repository on GitHub, published under the Apache-2.0 licence. It is a 2-layer board of 52 × 30 mm with 15 parts on 22 nets, routed with 443 tracks and 64 vias.

It is built around the AP2112K-3.3. Its parts include 4 resistors, 4 connectors, 3 capacitors, 1 IC and 1 diode. It belongs with the ESP32 boards of this library.

Main components

1

README

README.md
FluxPCB — AI proposes, physics disposes

License Python KiCad Gates Stars

English · 简体中文


⚡ One prompt. One command. One fab-ready board.

console
$ flux run projects/stm32n6-px4

  requirements ─▶ spec.yaml ......... ✓ 6 requirements, all mapped
  selection    ─▶ bom.csv ........... ✓ 17 lines, LCSC-verified
  schematic    ─▶ .kicad_sch ........ ✓ kicad-cli ERC: 0 violations
  pcb          ─▶ .kicad_pcb ........ ✓ auto-place + auto-route, DRC: 0
  simulation   ─▶ ngspice MC ×200+3 .. ✓ drop 2.79% ≤ 5% · ripple OK
  firmware     ─▶ ESP-IDF ........... ✓ host-C regression executed

  🟢 23/23 gates green — RELEASED
  fab → Gerber + drill + pick&place + STEP   (52×30 mm, 2-layer)

FluxPCB turns a sentence into a manufacturable PCB and its firmware — and it refuses to call anything "done" until 16 machine-checkable gates agree. No gate, no glory.

📌 状态同步(2026-11-03):上方 RELEASED 徽章为各演示项目的历史快照(2026-10-21 批次,见 DELIVERY_STATUS 的撤销与未完成项——含 drc_zero 未绿等待办)。当前主战场 h743-fc 飞控处于收敛中:8 断线 / 8 间距残差 / 0 短路,未达 RELEASED——实况见 projects/h743-fc/DESIGN_PROGRESS.md,里程碑与工件哈希见 projects/h743-fc/MILESTONES.md。发布判定已按复审修复:必需阶段全集+证据哈希+导出校验三者齐备才计 RELEASED(局部运行不再冒充发布)。


🧠 AI proposes. Physics disposes.

LLMs write beautiful netlists — and occasionally invent pin numbers. FluxPCB's rule: the LLM generates; deterministic solvers and real EDA tools decide. A failed gate emits structured feedback, the pipeline regenerates, retries are bounded. "Complete" is a physical verdict, not a vibe.

mermaid
%%{init: {'theme': 'neutral'}}%%
flowchart LR
    A["🗣️ Natural<br/>language"] --> B["📋 spec.yaml"]
    B --> C["🔩 Verified<br/>BOM"]
    C --> D["📐 Schematic<br/>ERC = 0"]
    D --> E["🟩 PCB<br/>auto place<br/>+ route"]
    E --> F["🧪 Simulation<br/>SPICE MC · IR-drop<br/>thermal · PDN"]
    F --> G["💾 Firmware<br/>ESP-IDF +<br/>host-C regression"]
    G --> H["📦 Fab package<br/>Gerber · drill<br/>CPL · STEP"]
    H -. "gate red → structured<br/>feedback → regenerate" .-> B

🚦 16 gates. Zero opinions.

Every artifact is SHA256-stamped. Every verdict links to evidence on disk. A missing tool means BLOCKED — never a fake pass.

StageGatesWhat they actually check
📋 Requirementsspec_schema requirement_coverageevery requirement maps to a design element
🔩 Selectionbom_completeness bom_lcsc_verifiedplaceholder part numbers fail; JLC online verify + snapshot fallback
📐 Schematicerc_zero netlist_topologyreal kicad-cli ERC · pin-by-pin readback of spec-mandated nets
🟩 PCBplacement_quality drc_zero impedance_sioverlap/decap/connector rules · real kicad-cli DRC · IPC-2141 + length match
🧪 Acceptance simirdrop thermal emc_precompliance spice_functionalFDM field solvers · PDN target impedance · ngspice Monte-Carlo (20 runs, ±20% cap/ESR)
💾 Firmwarefirmware_build firmware_spi_loopback firmware_regressionreal idf.py build when present · the same fw_logic.c compiled & executed on host

🖥️ Grounding Map — traceability you can click

Every requirement FR-xxx → the elements covering it → the gates that judged it. Uncovered requirements glow red; every verdict traces back to a hashed artifact.

Grounding Map dashboard
bash
flux dashboard projects    # → http://127.0.0.1:8765 · zero-dependency · offline

🏆 From prompt to fab package


stm32h743-px4 · H743 PX4 flight controller
36×36 mm · 6-layer · TFBGA240 from ST XML
23/23 🟢 RELEASED
⬇ fab package · the prompt

stm32n6-px4 · PX4 flight controller
55×28 mm · 6-layer · TFBGA264 from ST XML
23/23 🟢 RELEASED
⬇ fab package · the prompt

esp32s31-mini · fully autonomous
52×30 mm · 2-layer · auto place + route
16/16 🟢 RELEASED
⬇ fab package · the prompt

esp32s31-dev · Pi-Zero-size flagship
65×30 mm · 99 pins from the official Espressif datasheet
23/23 🟢 ERC=0 · DRC=0
⬇ KiCad project · the prompt

🤖 Drive it from Claude Code

The repo ships the /fluxpcb skill (.claude/commands/fluxpcb.md):

text
/fluxpcb ESP32-S31 mini dev board, USB-C power, 2×8 header, 1 button, 1 LED

One sentence → project scaffold → six stages → bounded gate repair (≤5 rounds) → fab package → evidence-linked report. Hard rules baked in: never invent pins beyond the datasheet, never loosen a gate threshold to force green.

Honest scope: today's pipeline generates parameterized variants of the ESP32-S31 dev-board family — module + USB-C + LDO + headers (1–2 rows × 4–14 pins) + 1–2 buttons + 1–2 LEDs + programming header, with adjustable size/layers. Outside that family, the skill says so instead of pretending.


🚀 Quick start

Only Python ≥ 3.10 is required. Everything else degrades gracefully — absent tools flip their gates to BLOCKED, not green.

bash
pip install -e .

flux run      projects/esp32s31-mini   # full pipeline → RELEASED
flux report   projects/esp32s31-mini   # audit report, evidence-linked
flux gate     projects/esp32s31-dev --only impedance_si,irdrop
flux verify   projects/esp32s31-mini   # re-check gates, no regeneration
flux dashboard projects                # Grounding Map UI
Optional toolUnlocks
KiCad 10+ (kicad-cli)real ERC / DRC verdicts, Gerber/drill/CPL/STEP export
Freeroutingbatch auto-routing (DSN/SES)
ngspice (KiCad-bundled DLL)LDO transient Monte-Carlo
openEMS + gerber2emsEM-field / S-parameter sign-off (adapter ready, wiring in progress)
ESP-IDF / hpm-sdkon-target firmware compile gate
LCSC / JLC APIlive part & price verification (snapshot fallback)

Pure-Python physics core, always on: IPC-2141 impedance (<5% vs textbook), FDM IR-drop & thermal, PDN target impedance.


📍 Status

  • ✅ Phase A — engine + gate framework + physics core + CLI · 26 unit tests green
  • ✅ Phase B1 — ESP32-S31 dev board · ERC=0 · DRC=0 · 12/12 gates · Gerber out
  • 🔲 Phase B2 — HPM6E80 core board (BGA ball map pending FAE datasheet)
  • 🧭 Phase D — see ROADMAP.md: board families, SA/NSGA-II placement, openEMS sign-off, MCP-server form factor, and the 7th stage (system-level co-simulation)

🕊️ Engineering honesty

  • New 2025 parts not yet indexed by LCSC → BOM says "verify before ordering". Placeholders never pass.
  • Dense-board "last-mile" routing gaps stay visible in reports (unconnected=ignore), never silently closed.
  • JLC's API has bot protection (HTTP 460) → automatic fallback to the checked-in parts snapshot.

If FluxPCB saved you a board respin — leave a ⭐. It funds the next gate.

Report a bug · Roadmap · Apache-2.0 © FluxPCB contributors

Star history

Parts

15
QtyValueFootprintReferences
210uFCapacitor_SMD:C_0805_2012MetricC1, C2
25.1kResistor_SMD:R_0603_1608MetricR5, R6
1100nFCapacitor_SMD:C_0603_1608MetricC3
110kResistor_SMD:R_0603_1608MetricR2
11kResistor_SMD:R_0603_1608MetricR1
1AP2112K-3.3Package_TO_SOT_Smd:SOT-23-5U1
1ESP32-S31-WROOM-3UEspressif:ESP32-S31-WROOM-3MOD1
1HDR-1Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ1
1HDR-2Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ2
1HDR-PROGConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1REDLED_SMD:LED_0603_1608MetricD1
1RESETButton_Switch_SMD:SW_Push_1P1T_NO_CK_KMR2SW1
1USB-CConnector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J4

More from DataFlux-Robot/fluxpcb

4
  • 6 layers50 × 50 mmH743-fc, the printed circuit board in 3D

    H743-fc

    DataFlux-Robot/fluxpcb

    全自动AI电路设计流水线: 需求→选型→原理图→PCB→验收仿真→固件,六环节门禁闭环 | Six-stage automated circuit design pipeline with machine-checkable verification gates

    33 parts1Apache-2.0
  • 6 layers36 × 36 mmStm32h743-px4, the printed circuit board in 3D

    Stm32h743-px4

    DataFlux-Robot/fluxpcb

    全自动AI电路设计流水线: 需求→选型→原理图→PCB→验收仿真→固件,六环节门禁闭环 | Six-stage automated circuit design pipeline with machine-checkable verification gates

    22 parts1Apache-2.0
  • 6 layers55 × 28 mmStm32n6-px4, the printed circuit board in 3D

    Stm32n6-px4

    DataFlux-Robot/fluxpcb

    全自动AI电路设计流水线: 需求→选型→原理图→PCB→验收仿真→固件,六环节门禁闭环 | Six-stage automated circuit design pipeline with machine-checkable verification gates

    21 parts1Apache-2.0
  • 2 layers90 × 55 mmHpm6e80-carrier, the printed circuit board in 3D

    Hpm6e80-carrier

    DataFlux-Robot/fluxpcb

    全自动AI电路设计流水线: 需求→选型→原理图→PCB→验收仿真→固件,六环节门禁闭环 | Six-stage automated circuit design pipeline with machine-checkable verification gates

    12 parts1Apache-2.0

Similar boards

  • 2 layers26 × 30 mmMicrocontroller, the printed circuit board in 3D

    Microcontroller

    FrameworkComputer/ExpansionCards

    Reference designs and documentation to create Expansion Cards for the Framework Laptop

    34 parts1.1kCC-BY-4.0
  • 2 layers53.2 × 24.8 mmPicoLink, the printed circuit board in 3D

    PicoLink

    ErichStyger/mcuoneclipse

    McuOnEclipse projects and examples

    46 parts765
  • 2 layers36 × 20 mmCombined, the printed circuit board in 3D

    Combined

    adamb314/ServoProject

    Getting the most out of your hobby servo

    24 parts545
  • 2 layers25 × 25 mmSmallEncoder, the printed circuit board in 3D

    SmallEncoder

    DDeGonge/OS-ARM

    This arm is not industrial and it will not be fast, but that is not my goal. But it will hopefully be a very nice looking arm fully capable of 6dof motion, cheap enough to keep it accessable but capable enough to…

    17 parts498MIT
  • 4 layers70 × 72 mmSPINC AA Charger, the printed circuit board in 3D

    SPINC AA Charger

    CoretechR/SPINC

    DIY Automatic Battery Charger Using RP2040

    101 parts467GPL-3.0
  • 4 layers60.8 × 61.3 mmOS3M Mouse, the printed circuit board in 3D

    OS3M Mouse

    spoter368/os3m-hardware

    All the hardware needed to build your own OS3M Mouse!

    51 parts399
  • 4 layers74 × 104 mmBeepy, the printed circuit board in 3D

    Beepy

    sqfmi/beepy-hardware

    Beepy Hardware

    160 parts348MIT

Questions

How big is the Esp32s31-mini PCB?

It measures 52 × 30 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Esp32s31-mini use?

15 parts, built around the AP2112K-3.3. 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 Esp32s31-mini KiCad files?

From the DataFlux-Robot/fluxpcb repository on GitHub, at the commit this page was made from: the board is projects/esp32s31-mini/pcb/board/esp32s31-mini.kicad_pcb and its schematic projects/esp32s31-dev/schematic/board/esp32s31-dev.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Esp32s31-mini design in my own project?

Its repository publishes it under the Apache-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).