

ESC PCB V1
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
9STM32G431CBT6
LQFP-48(7x7)-40℃~+85℃ 1.71V~3.6V 128KB 12bit 12bit 170MHz 32 Bit 32KB 38 ARM Cortex-M4F Built-in FLASH LQFP-48(7x7) Microcontrollers (MCU/MPU/SOC) ROHSSTMicroelectronicsMicrocontrollers (MCU/MPU/SOC)CSD18532NQ5B
SON-8(5x6)-55℃~+150℃ 1 N-channel 151A 156W 16pF 2.7mΩ@10V 2.8V 4.1nF 495pF 49nC@10V 60V N-Channel SON-8(5x6) MOSFETs ROHSTexas InstrumentsMOSFETsAMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsCC0603KRX7R9BB104
0603100nF 50V X7R ±10% 0603 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSYAGEOMultilayer Ceramic Capacitors MLCC - SMD/SMTCL21A226MAQNNNE
080522uF 25V X5R ±20% 0805 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSSamsung Electro-MechanicsMultilayer Ceramic Capacitors MLCC - SMD/SMTTAXM8M4RDBCCT2T
SMD3225-4P-40℃~+85℃ 10pF 250Ω 8MHz SMD crystal oscillator ±10ppm ±15ppm SMD3225-4P Crystals ROHSYajingxinCrystalsSM04B-SRSS-TB(LF)(SN)
SMD,P=1mm,卧贴-25℃~+85℃ 1 1A 1mm 1x4P 2.9mm 4 4.32mm 4P 50V 6mm Auxiliary Solder Pin Copper alloy PA SH Surface Mount, Right Angle Tin UL94V-0 White SMD,P=1mm,卧贴 Wire To Board Connector ROHSJSTWire To Board ConnectorKT-0603R
0603-40℃~+85℃ 1.6mm x 0.8mm square LED 1.8V~2.4V 120° 20mA 300mcd 40mW 615nm~630nm 645nm Discrete Diode Red Water Clear 0603 LED Indication - Discrete ROHSHubei KENTO ElecLED Indication - DiscreteSMBJ28CA
DO-214AA(SMB)ESD And Surge Protection (TVS/ESD)hongjiacheng
README
README.mdAI 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):
| Server | What it does |
|---|---|
kicad | The editing engine: mixelpixx/KiCAD-MCP-Server v2.8.2 (MIT). ~240 tools: place, wire and label symbols; footprints; routing; exports; JLCPCB parts. |
copilot | This 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 -ExecutionPolicy Bypass -File setup.ps1The 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
cd "AI PCB Generator"
claude # approve the 'kicad' and 'copilot' servers the first timeExample prompts:
- "Open workspace/fc and start the live view."
- "Review this board." (uses the
review-schematicskill) - "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_viewserveshttp://127.0.0.1:8765. It re-renders throughkicad-cliwithin 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
- You can also run it without an agent:
- KiCad schematic editor: KiCad 9/10 has no API for editing an open schematic, so the agent edits the file.
.mcp.jsonturns onKICAD_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
| Tool | Purpose |
|---|---|
project_status, start_live_view | Session setup |
checkpoint, list_checkpoints, undo, restore_checkpoint | Snapshots in a shadow git repo at <project>/.copilot/git. This never touches your own git. |
netlist_diff, verify_edit | Pin-level diff (name-independent), ERC new/resolved, flags parts touched outside the plan and unplanned net merges |
get_netlist | Ground-truth connectivity from kicad-cli |
review_design | ERC, optional DRC with schematic parity, netlist rules, fab-rule checks. Writes .copilot/review.md |
spice_check, spice_build_deck, spice_run, spice_simulators | Decks from the schematic; LTspice / ngspice / both with a cross-check; pass/fail assertions |
pin_positions, connect_power, draw_wire, tidy_schematic | Edits 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):
.\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 desktopEverything is also logged to logs/autopcb.log.
Each run ends with design checks and a commit. After DRC, the pipeline:
- 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
- renders every copper layer and the 3D top and bottom views into
workspace/esc_v2/review/. - commits the KiCad project and the review folder to the
esc-v2branch of Autonomous-Flight-Team/ESC_PCB, usingtools/publish_branch.py. Pass--no-publishto skip the commit.
No windows.
- Every tool starts its child processes hidden (
tools/_quiet.py). --dockerruns the whole build and route in Linux. The image isdocker/Dockerfile: KiCad 9.0.6, numpy, numba and Pillow. It is built on first use, and the Docker engine is started headless withdocker 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 withAUTOPCB_KPY,KICAD_CLIandKICAD_SHARE.
Board scripts (tools/, run with KiCad's Python at vendor/KiCAD-MCP-Server/venv/Scripts/python.exe):
| Script | Purpose |
|---|---|
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.py | Freerouting 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.py | Routes 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.py | Remove dangling stubs and vias; stitch pour islands; move reference designators off pads and other silkscreen |
build_esc_v2.py | Generates the 4-layer V2 ESC board: placement, stackup, zones, via fields, top-layer signal keep-out |
drc_summary.py, jlc_lookup.py | Compact 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
.venv\Scripts\python -m pytestThe 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-clias ground truth. - The engine can report a connection as done when it isn't.
verify_editcatches this, which is why the edit loop always verifies. - SPICE models R/C/L/ferrite/diode/zener/LED automatically. ICs need a
loadsstand-in or amodelsline. - DRC takes about 1 minute on a 4-layer board, so it's opt-in.
Parts
79| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 100n | Capacitor_SMD:C_0603_1608Metric | C2, C3, C4, C5, C6, C9, C15 |
| 7 | 10k | Resistor_SMD:R_0603_1608Metric | R3, R6, R9, R10, R26, R27, R28 |
| 6 | 10k | Resistor_SMD:R_0805_2012Metric | R1, R5, R8, R13, R15, R17 |
| 6 | 5.1 | Resistor_SMD:R_0805_2012Metric | R2, R4, R7, R12, R14, R16 |
| 6 | CSD18532NQ5B | MosFet:DNK8_TEX | U1, U2, U3, U6, U7, U8 |
| 5 | 1u | Capacitor_SMD:C_0603_1608Metric | C7, C8, C10, C14, C18 |
| 4 | MountingHole | MountingHole:MountingHole_3.2mm_M3 | H1, H2, H3, H4 |
| 3 | 2.2k | Resistor_SMD:R_0603_1608Metric | R23, R24, R25 |
| 3 | 20k | Resistor_SMD:R_0603_1608Metric | R20, R21, R22 |
| 2 | 12p | Capacitor_SMD:C_0603_1608Metric | C17, C19 |
| 2 | TestPoint | Connector_Wire:SolderWirePad_1x01_SMD_5x10mm | Bat-1, Bat+1 |
| 1 | 100k | Resistor_SMD:R_0603_1608Metric | R29 |
| 1 | 100n 50V | Capacitor_SMD:C_0603_1608Metric | C13 |
| 1 | 100u 50V | Capacitor_SMD:CP_Elec_10x10.5 | C11 |
| 1 | 10kΩ | Resistor_SMD:R_0603_1608Metric | R11 |
| 1 | 10u | Capacitor_SMD:C_0603_1608Metric | C20 |
| 1 | 10u 25V | Capacitor_SMD:C_0603_1608Metric | C21 |
| 1 | 10u 50V | Capacitor_SMD:C_1210_3225Metric | C12 |
| 1 | 120R | Inductor_SMD:L_0603_1608Metric | FB1 |
| 1 | 1k | Resistor_SMD:R_0603_1608Metric | R18 |
| 1 | 220 | Resistor_SMD:R_0603_1608Metric | R19 |
| 1 | 22u 25V | Capacitor_SMD:C_0805_2012Metric | C22 |
| 1 | 3V3 | Connector_Wire:SolderWirePad_1x01_SMD_2x4mm | 3V3 |
| 1 | 4.7u | Capacitor_SMD:C_0603_1608Metric | C1 |
| 1 | 47n 50V | Capacitor_SMD:C_0603_1608Metric | C16 |
| 1 | 5V | Connector_Wire:SolderWirePad_1x01_SMD_2x4mm | 5V1 |
| 1 | 75k | Resistor_SMD:R_0603_1608Metric | R30 |
| 1 | 8MHz | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U9 |
| 1 | Conn_01x04_Pin | Connector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_Horizontal | J1 |
| 1 | DRV8320HRTVT | Gate Driver:RTV0032E | U5 |
| 1 | GND | Connector_Wire:SolderWirePad_1x01_SMD_2x4mm | GND1 |
| 1 | Motor_A | Connector_Wire:SolderWirePad_1x01_SMD_5x10mm | MotA1 |
| 1 | Motor_B | Connector_Wire:SolderWirePad_1x01_SMD_5x10mm | MotB1 |
| 1 | Motor_C | Connector_Wire:SolderWirePad_1x01_SMD_5x10mm | MotC1 |
| 1 | Red | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | SIG | Connector_Wire:SolderWirePad_1x01_SMD_2x4mm | SIG1 |
| 1 | SMBJ28CA | Diode Footprint for ESC:SMBJSeries_LTF | D2 |
| 1 | STM32G431CBTx | Package_QFP:LQFP-48_7x7mm_P0.5mm | U4 |
More from SurajShivakumar/AIPCB
1- 4 layers71.2 × 80.6 mm

Similar boards
- 2 layers63 × 71.5 mm

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 mm

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 mm

03-导入EasyEDA
superfansizhe-beep/tscircuit-stm32f302-board
STM32F302R8T6 考核板 —— 用 tscircuit 以 TypeScript 描述原理图与 PCB,9 页分页、4 层板、含完整交付物
84 parts - 2 layers100 × 100 mm

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 mm

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 mm

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 mm

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 mm

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.