Skip to the content
2 layers63 × 71.5 mmESC PCB V1, the printed circuit board in 3D

An AI PCB Generator. Completely automated.

Size
63 × 71.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
79
Nets
65
Pads
277
Tracks, vias
776, 174
Pours
6
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
27 Oct 2026
Updated
27 Oct 2026

Overview

ESC PCB V1 is an open-source printed circuit board by SurajShivakumar, from the SurajShivakumar/AIPCB repository on GitHub. It is a 2-layer board of 63 × 71.5 mm with 79 parts on 65 nets, routed with 776 tracks and 174 vias.

It is built around the STM32G431CBT6, CSD18532NQ5B and AMS1117-3.3, with the CC0603KRX7R9BB104, CL21A226MAQNNNE and TAXM8M4RDBCCT2T among its other parts. Its parts include 30 resistors, 22 capacitors, 9 ICs, 2 diodes and 1 connector. It belongs with the robots and motor control boards and the STM32 boards of this library.

Main components

9

README

README.md

AI PCB Copilot

Prompt an LLM to read, review, simulate and edit KiCad projects while you watch the changes in a browser.

It has two parts, both MCP servers, so any MCP client can use them (Claude Code, Claude Desktop, Cursor, opencode + a local model):

ServerWhat it does
kicadThe editing engine: mixelpixx/KiCAD-MCP-Server v2.8.2 (MIT). ~240 tools: place, wire and label symbols; footprints; routing; exports; JLCPCB parts.
copilotThis repo. Checkpoints and undo, pin-level netlist diff, verify_edit, measured design review, SPICE on LTspice and ngspice, and a live browser view.

See PLAN.md for the design and roadmap.

Setup (Windows)

You need KiCad 9 or 10, Node 18+, Python 3.11+ and git. LTspice is optional; ngspice comes with KiCad.

powershell
powershell -ExecutionPolicy Bypass -File setup.ps1

The script clones the engine at its pinned tag, builds it against KiCad's Python, installs the copilot and runs the tests.

Use it with Claude Code

powershell
cd "AI PCB Generator"
claude          # approve the 'kicad' and 'copilot' servers the first time

Example prompts:

  • "Open workspace/fc and start the live view."
  • "Review this board." (uses the review-schematic skill)
  • "Add a 10k pull-up from nFAULT to 3.3V." (uses edit-schematic: checkpoint → edit → verify → keep or undo)
  • "Simulate the BEMF dividers at 25.2 V and check the ADC pins stay under 3.3 V, on both LTspice and ngspice." (uses simulate)
  • "Undo that."

Work on copies. sample_boards/ holds the originals; copy a board into workspace/ and point the agent there.

Seeing changes live

  • Browser (always): start_live_view serves http://127.0.0.1:8765. It re-renders through kicad-cli within about a second of every save, circles the parts changed since the last checkpoint, and lists diffs, ERC counts, checkpoints and review findings. Clicking a finding jumps to its parts. The "Interactive" tab uses KiCanvas (alpha).
    • You can also run it without an agent: .venv\Scripts\python -m copilot.viewer workspace\fc
  • KiCad schematic editor: KiCad 9/10 has no API for editing an open schematic, so the agent edits the file. .mcp.json turns on KICAD_INTERACTIVE_SCHEMATIC, which makes eeschema reload after each write. Save your own edits before asking the agent to edit. It will never auto-confirm a "discard changes" dialog.
  • KiCad PCB editor: truly live (undoable) when the board is open in pcbnew with Preferences → Plugins → Enable IPC API server on.

Copilot tools

ToolPurpose
project_status, start_live_viewSession setup
checkpoint, list_checkpoints, undo, restore_checkpointSnapshots in a shadow git repo at <project>/.copilot/git. This never touches your own git.
netlist_diff, verify_editPin-level diff (name-independent), ERC new/resolved, flags parts touched outside the plan and unplanned net merges
get_netlistGround-truth connectivity from kicad-cli
review_designERC, optional DRC with schematic parity, netlist rules, fab-rule checks. Writes .copilot/review.md
spice_check, spice_build_deck, spice_run, spice_simulatorsDecks from the schematic; LTspice / ngspice / both with a cross-check; pass/fail assertions
pin_positions, connect_power, draw_wire, tidy_schematicEdits in hand-drawn style: power symbols instead of text labels; straight on-grid wires with junction dots; grid snap and text de-overlap; saves byte-identical to KiCad's own file format

Build + route the V2 ESC in one go (repo root, PowerShell):

powershell
.\autopcb_run                 # build, route, finish, stitch, clean up, DRC - live progress dashboard in this window
.\autopcb_run --skip-build    # keep the current placement, just re-route
.\autopcb_logs                # watch a run from a second window (stays open; Ctrl+C to close; --once / --log)
.\autopcb_run --docker        # same run inside the autopcb-kicad container: nothing opens on the desktop

Everything is also logged to logs/autopcb.log.

Each run ends with design checks and a commit. After DRC, the pipeline:

  1. runs tools/esc_checks.py. This covers what DRC can't see:
    • switching-loop cap distance
    • charge-pump caps
    • gate-drive length
    • signals crossing a phase pour
    • vias in pads
    • ground return under the crystal/MCU
    • mounting holes
    • 3D models
  2. renders every copper layer and the 3D top and bottom views into workspace/esc_v2/review/.
  3. commits the KiCad project and the review folder to the esc-v2 branch of Autonomous-Flight-Team/ESC_PCB, using tools/publish_branch.py. Pass --no-publish to skip the commit.

No windows.

  • Every tool starts its child processes hidden (tools/_quiet.py).
  • --docker runs the whole build and route in Linux. The image is docker/Dockerfile: KiCad 9.0.6, numpy, numba and Pillow. It is built on first use, and the Docker engine is started headless with docker desktop start.
  • The image has no 3D model library, so the 3D views and the git push run on Windows afterwards, also hidden.
  • KiCad paths come from tools/_env.py. Override them with AUTOPCB_KPY, KICAD_CLI and KICAD_SHARE.

Board scripts (tools/, run with KiCad's Python at vendor/KiCAD-MCP-Server/venv/Scripts/python.exe):

ScriptPurpose
sync_board.py"Update PCB from Schematic", scripted: adds and moves footprints, reloads changed library footprints, renames nets on existing copper, locks existing routing
route_board.pyFreerouting autoroute. Plane nets are left to pours. --keep adds routes without touching existing ones. Picks a Java new enough for Freerouting.
finish_route.py + maze_route.pyRoutes exactly what KiCad's ratsnest still reports missing, with a clearance-aware 2-layer maze router that respects edge and top-layer keep-outs
prune_tracks.py, stitch_islands.py, silk_fix.pyRemove dangling stubs and vias; stitch pour islands; move reference designators off pads and other silkscreen
build_esc_v2.pyGenerates the 4-layer V2 ESC board: placement, stackup, zones, via fields, top-layer signal keep-out
drc_summary.py, jlc_lookup.pyCompact DRC report; JLCPCB/LCSC part lookup (basic/extended, stock, price)

Review rules:

  • Errors:
    • capacitors wired only to each other (a missing supply label)
    • missing decoupling on IC supply pins
    • USB-C CC pins without pull-downs
    • unannotated parts, missing footprints
    • schematic/PCB disagreement
    • tracks or vias below the fab's limits
  • Warnings:
    • missing pull-ups on I2C / open-drain lines
    • crystals without load caps
    • LEDs without a resistor
    • look-alike net names that aren't connected
    • single-pin labelled nets
    • sheets pointing at missing files
    • symbols off the page
    • project DRC limits looser than the fab
  • Fab profiles live in fab-profiles/.

Other clients

Point any MCP client at the same two commands. The paths are relative to this folder; use absolute paths if the client starts elsewhere.

  • engine: node vendor/KiCAD-MCP-Server/dist/index.js
  • copilot: .venv/Scripts/python.exe -m copilot.server

Free / local: opencode with Ollama or LM Studio. Use a model with solid tool calling (Qwen3-Coder class or bigger); small models struggle with long edit chains. The engine ships setup-windows-opencode.ps1 for its half.

Tests

powershell
.venv\Scripts\python -m pytest

The tests cover the netlist diff, value parsing, an RC transient on both simulators with a cross-check, and the review rules against netlists from the sample boards.

Known limits

  • Schematic edits are file edits. "Live" in eeschema means it reloads after each write.
  • The engine's own net listing misses power-symbol nets. The copilot uses kicad-cli as ground truth.
  • The engine can report a connection as done when it isn't. verify_edit catches this, which is why the edit loop always verifies.
  • SPICE models R/C/L/ferrite/diode/zener/LED automatically. ICs need a loads stand-in or a models line.
  • DRC takes about 1 minute on a 4-layer board, so it's opt-in.

Parts

79
QtyValueFootprintReferences
7100nCapacitor_SMD:C_0603_1608MetricC2, C3, C4, C5, C6, C9, C15
710kResistor_SMD:R_0603_1608MetricR3, R6, R9, R10, R26, R27, R28
610kResistor_SMD:R_0805_2012MetricR1, R5, R8, R13, R15, R17
65.1Resistor_SMD:R_0805_2012MetricR2, R4, R7, R12, R14, R16
6CSD18532NQ5BMosFet:DNK8_TEXU1, U2, U3, U6, U7, U8
51uCapacitor_SMD:C_0603_1608MetricC7, C8, C10, C14, C18
4MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3, H4
32.2kResistor_SMD:R_0603_1608MetricR23, R24, R25
320kResistor_SMD:R_0603_1608MetricR20, R21, R22
212pCapacitor_SMD:C_0603_1608MetricC17, C19
2TestPointConnector_Wire:SolderWirePad_1x01_SMD_5x10mmBat-1, Bat+1
1100kResistor_SMD:R_0603_1608MetricR29
1100n 50VCapacitor_SMD:C_0603_1608MetricC13
1100u 50VCapacitor_SMD:CP_Elec_10x10.5C11
110kΩResistor_SMD:R_0603_1608MetricR11
110uCapacitor_SMD:C_0603_1608MetricC20
110u 25VCapacitor_SMD:C_0603_1608MetricC21
110u 50VCapacitor_SMD:C_1210_3225MetricC12
1120RInductor_SMD:L_0603_1608MetricFB1
11kResistor_SMD:R_0603_1608MetricR18
1220Resistor_SMD:R_0603_1608MetricR19
122u 25VCapacitor_SMD:C_0805_2012MetricC22
13V3Connector_Wire:SolderWirePad_1x01_SMD_2x4mm3V3
14.7uCapacitor_SMD:C_0603_1608MetricC1
147n 50VCapacitor_SMD:C_0603_1608MetricC16
15VConnector_Wire:SolderWirePad_1x01_SMD_2x4mm5V1
175kResistor_SMD:R_0603_1608MetricR30
18MHzCrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U9
1Conn_01x04_PinConnector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_HorizontalJ1
1DRV8320HRTVTGate Driver:RTV0032EU5
1GNDConnector_Wire:SolderWirePad_1x01_SMD_2x4mmGND1
1Motor_AConnector_Wire:SolderWirePad_1x01_SMD_5x10mmMotA1
1Motor_BConnector_Wire:SolderWirePad_1x01_SMD_5x10mmMotB1
1Motor_CConnector_Wire:SolderWirePad_1x01_SMD_5x10mmMotC1
1RedLED_SMD:LED_0603_1608MetricD1
1SIGConnector_Wire:SolderWirePad_1x01_SMD_2x4mmSIG1
1SMBJ28CADiode Footprint for ESC:SMBJSeries_LTFD2
1STM32G431CBTxPackage_QFP:LQFP-48_7x7mm_P0.5mmU4

More from SurajShivakumar/AIPCB

1
  • 4 layers71.2 × 80.6 mmFlight controller, the printed circuit board in 3D

    Flight controller

    SurajShivakumar/AIPCB

    An AI PCB Generator. Completely automated.

    107 parts

Similar boards

  • 2 layers63 × 71.5 mmESC PCB V1, the printed circuit board in 3D

    ESC PCB V1

    gavint-52/drone-esc-pcb

    Custom three-phase drone ESC PCB design using KiCad, an STM32 microcontroller, and a DRV8320 gate driver.

    73 parts
  • 4 layers84 × 66 mmSpinner, the printed circuit board in 3D

    Spinner

    enkhbold470/spinner

    12-24 V FOC BLDC motor controller: STM32G431, three IR2104 half bridges with 60 V MOSFETs, MT6701 encoder, CAN FD. 4-layer KiCad 10 board.

    87 partsCERN-OHL-S-2.0
  • 4 layers80 × 80 mm03-导入EasyEDA, the printed circuit board in 3D

    03-导入EasyEDA

    superfansizhe-beep/tscircuit-stm32f302-board

    STM32F302R8T6 考核板 —— 用 tscircuit 以 TypeScript 描述原理图与 PCB,9 页分页、4 层板、含完整交付物

    84 parts
  • 2 layers100 × 100 mmHour meter board microfit can handroute, the printed circuit board in 3D

    Hour meter board microfit can handroute

    ilomon10/embedded-totalizer-hour-meter

    ESP32 engine hour meter & totalizer: firmware, SensorFrame protocol, Node host tools, KiCad PCB and a Deno device simulator

    152 parts
  • 4 layers100 × 90 mmOpentouch s3, the printed circuit board in 3D

    Opentouch s3

    JoeMighty/opentouch-s3

    A modern remake of the Bare Conductive Touch Board: 12 capacitive touch electrodes, MP3/WAV/MIDI audio, and now WiFi, Bluetooth LE, USB-C, a proper LiPo power path, a fuel gauge, line-in, MIDI out, Qwiic and an RGB LED.

    185 parts
  • 6 layers40 × 40 mmKestrel fc, the printed circuit board in 3D

    Kestrel fc

    HeyPCB/kestrel-fc

    Kestrel H7: STM32H743 FPV flight controller with ICM-20602 + BMI088, MS5611, 16 MB blackbox, 5 V and switchable 10 V BECs.

    114 partsCERN-OHL-S-2.0
  • 6 layers37 × 37 mmFc f405 2026-10-16 1025, the printed circuit board in 3D

    Fc f405 2026-10-16 1025

    ara-mkr/f405-flight-controller

    This is a flight controller I designed as a side project. It was fun and pretty challenging, and I'm planning to build a drone with it at some point!

    122 partsCERN-OHL-P-2.0
  • 2 layers110.1 × 110.4 mmMini, the printed circuit board in 3D

    Mini

    makerspet/oomwoo-esp32s3-cm

    Pi CM4/CM5-compatible Compute Module using ESP32-S3 instead of CPU

    116 parts1Apache-2.0

Questions

How big is the ESC PCB V1 PCB?

It measures 63 × 71.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ESC PCB V1 use?

79 parts, built around the STM32G431CBT6, CSD18532NQ5B, AMS1117-3.3 and CC0603KRX7R9BB104. 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 ESC PCB V1 KiCad files?

From the SurajShivakumar/AIPCB repository on GitHub, at the commit this page was made from: the board is workspace/esc/ESC PCB V1.kicad_pcb and its schematic sample_boards/ESC PCB V1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ESC PCB V1 design in my own project?

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