Open-source hardware workbench / v1.0

Design the board.
See the signal.
Learn the why.

PCB Design Studio turns an eleven-part sensor board into a workbench you can orbit, route, stress, and question. It pairs a real Python toolkit with a browser-native 3D lab, a four-mission routing game, and a power-fault study you can reproduce.

11placed parts
7named nets
24illustrative routes
This browser could not start WebGL. The board details, bill of materials, and all non-3D sections of the studio still work.
Live 3D 11 parts 7 nets
Drag to orbit
Scroll to zoom · Click a part

Selected part

11 parts

Click a component in the 3D view or a row in the bill of materials. Every part carries a reference, a role, a footprint, pads, nets, and an illustrative unit cost.

  • Board size80 x 50 mm
  • Thickness1.6 mm
  • Copper layers2
  • Connections24
  • Named nets7
  • BOM total$9.96

Bill of materials

Illustrative USD
Value Footprint Qty Unit Total
Estimated material total $9.96
01 / OVERVIEW

A board is a system, not a picture.

Most beginners see a green rectangle. Engineers see a power tree, a return path, a timing budget, and a manufacturing contract. The studio makes those layers visible, then gives you a way to act on them.

Learn by doing

Orbit the board, select a part, trace a net, then route it yourself. Every interaction maps to a concept you can name and defend.

Design with constraints

A typed specification validates dimensions, references, pads, nets, and BOM before a single file is exported. Constraints are the design.

Analyze with evidence

Three-phase scenarios produce RMS, THD, severity, and a documented heuristic, not a black-box score. Every number has a method behind it.

Students

See the return path before the exam asks about it.

Hardware startups

Ship a spec, a BOM, and a review trail with the prototype.

Power teams

Turn a waveform argument into a shared, exportable summary.

Educators

Use an open board and a reproducible lab instead of slides.

02 / SIGNAL SPRINT

Route it like it matters.

Four missions on the same board. You get gold pads, keep-outs, a length budget, and one rule: every trace has a return path. Click a pad, bend the trace on empty board, then land on the matching pad.

This browser could not start WebGL. The mission briefs and routing rules are still readable in the mission panel.
Mission 01 / 04
Score 0000
Click a gold pad to start. Click empty board to bend. Click the matching pad to finish.
03 / LEARNING PATH

From first copper to controlled impedance.

Twelve cards, five tracks, and no hand-waving. Search for a term, open the detail, and mark it learned when you can explain it back without looking.

Concept map

Your knowledge graph

0 / 12

Tick a card as learned and the map lights up. Select a node to jump to its card.

0 of 12 learned 12 cards
04 / KNOWLEDGE CHECK

Ten questions. No hand-waving.

A quick check from board anatomy to return paths. Every answer gets an explanation, because a score without feedback is just noise.

05 / BUSINESS

A small tool with a real market.

The PCB industry is enormous, but the everyday pain is small and specific: a first spin that fails, a report nobody can read, a student who never sees the return path. That is the wedge.

$85.2B Global PCB output, 2025 Prismark estimate. Other trackers are close but not identical.
~$102B 2026 estimate Prismark Q4 2025 outlook. Forecasts move with the cycle.
$123B+ 2030 estimate Long-range forecast. A later Q1 2026 update was higher still.
2-4 wk Typical prototype turn Depends on fab, stackup, finish, and queue.

Who feels the pain

Four groups, one common gap: the design intent is hard to see and harder to explain.

Students and educators

Theory is abstract and EDA tools are intimidating.

Guided 3D lab, routing game, plain-language checks.

Hardware startups

A first spin is expensive and documentation is rushed.

Reproducible spec, BOM, report bundle, review checklist.

Power and reliability teams

Waveform data is hard to explain across disciplines.

Transparent three-phase scenarios and exportable summaries.

Training and maker spaces

Good curriculum is expensive to build and maintain.

Open courseware with a real board and analytics pipeline.

A realistic model

Open core, paid depth. No fake enterprise tier, no pretend revenue.

Open coreFree

MIT-licensed Python package and browser studio. Use it, fork it, teach with it.

WorkshopPer cohort

Guided PCB and power-quality sessions built around the studio and the real board.

Custom board packProject

Validated spec, simplified footprints, report templates, and a design review.

Integration supportRetainer

Bring the analytics and reporting into an existing engineering workflow.

Estimate the value

Change the assumptions. The arithmetic is intentionally simple and shown.

Hours saved / year345
Annual savings$18,975
Payback3.8 mo

Assumption: savings = engineers x hours x 46 working weeks x reduction. Payback = tool cost / annual savings x 12. Planning estimate, not a promise.

What could go wrong

Stated early, because a business case without risks is a pitch, not a plan.

  • KiCad's Python API varies by release; the export path is optional and tested separately.
  • The fault model is a teaching approximation, not a protection-coordination study.
  • The PCB market is crowded; the differentiation is the learning-to-report workflow, not raw EDA features.
  • Forecast figures are third-party estimates and should be quoted with their date and scope.
06 / RESEARCH

Transparent by design.

The analytics model is small enough to inspect and reproducible enough to test. The goal is not a black box; it is a shared language between layout, power, and manufacturing.

Method

A balanced three-phase voltage is generated at 10 kHz, 50 Hz, and 311 V peak. A fault is applied after a configurable instant. The detector compares the weakest short window in each phase against the nominal RMS.

Balanced phase voltage v_a(t) = V_p sin(2πft), v_b(t) = V_p sin(2πft - 120°), v_c(t) = V_p sin(2πft + 120°)
RMS V_rms = sqrt((1/N) Σ v[n]²)
Total harmonic distortion THD = sqrt(Σ H₂..H₁₀²) / H₁
Windowed severity severity = 1 - min_w(V_rms,w / V_rms,nominal)

Validation and limits

Synthetic tests cover nominal, open-phase, short-circuit, late-fault, and invalid-input cases. The demo bundle builds in CI without KiCad.

  • Round-trip tests preserve board specifications through JSON and regenerate the BOM.
  • Next: hardware-in-the-loop validation with a relay test set and a calibrated power-quality recorder.
  • Next: expert review against IEC 61000-4-30 measurement classes.
  • No electromagnetic, thermal, or mechanical solver is included.
  • Footprints and traces are simplified reference geometry, not fabrication-ready artwork.
  • Fault detection is a transparent RMS heuristic, not a trained classifier or a certified relay.
  • The game teaches routing intuition; it is not a substitute for DRC, DFM, or expert review.
  • Market figures are third-party estimates, quoted with dates and caveats.

References

Standards, tooling, and market sources used to frame the work.

KiCad documentationBoard editor, Python API, and fabrication outputs.
IPC-2221 and IPC-2152Generic PCB design and current-carrying capacity references.
IEC 61000-4-30Power-quality measurement methods and classes.
Prismark PCB market outlookIndustry output estimates; figures vary by report date.
Three.js documentationWebGL rendering and controls used by the studio.

Market figures are quoted to show scale, not to imply a specific addressable market for this project. Always cite the report date and scope.

Reproduce the study

The same seed, window, and fault timing produce the same report.

One command pcb-design analyze --fault short --phase B --seed 7 --output analysis.xlsx --report report.md
Full demo pcb-design demo --out-dir demo-output
  • Inputs: 10 kHz, 50 Hz, 311 V peak, fault at 40 ms, seed 7.
  • Outputs: waveform sheets, summary, field reference, Markdown report.
  • Tests: 40+ automated checks, including late-fault detection and JSON round-tripping.
07 / START

Run it in under a minute.

Clone, install, and build the full demo. KiCad is optional; the core workflow is not. The browser studio is static and deploys on GitHub Pages.

bash / zsh
# 1. clone the repository
$ git clone https://github.com/M0-AR/pcb_design.git
$ cd pcb_design

# 2. install the package and development tools
$ python -m pip install -e ".[dev]"

# 3. build the KiCad-free demo bundle
$ pcb-design demo --out-dir demo-output

# 4. optional: export a .kicad_pcb with KiCad's Python
$ pcb-design board --output board.kicad_pcb
python -m pip install -e ".[dev]"
01

Clone

Get the Python package, tests, examples, and the static studio.

02

Install

NumPy, pandas, and openpyxl are the core dependencies. Development extras add pytest and ruff.

03

Run the demo

Write a board spec, BOM, three fault scenarios, an Excel workbook, and a Markdown report.

04

Open KiCad

Install KiCad 8+, run the board command with its Python, then perform a full DRC and DFM review.

What is real today

Honest status, because trust is a feature.

  • Validated 11-part board specification with 24 connections and 7 nets.
  • Three-phase nominal, open, and short scenarios with Excel and Markdown output.
  • 40+ automated tests, a one-command demo, and a KiCad-optional workflow.
  • 3D lab, routing game, concept library, and quiz in the static studio.
  • Fabrication-ready artwork and full DRC/DFM sign-off.
  • Hardware-in-the-loop validation and a trained fault classifier.
  • Stackup impedance and thermal solvers.