AI-Assisted Schematic and PCB Design: A Hands-On Tutorial

    This tutorial documents a hands-on test of using general-purpose large language models to generate hardware schematics and PCBs. It covers the observed output quality on a four-layer FOC motor control board, the environment setup and context-feeding workflow, a reusable three-round prompt pattern, the engineering criteria engineers must verify manually, and a review checklist for common AI output defects. Readers will learn a practical method for collaborating with AI models while keeping engineering judgment with the human designer.

    1. Background: Why This Tutorial Comes Now

    A little over a month ago, we tried having an intelligent coding tool directly produce hardware schematics and PCBs. The results were not encouraging: for anything beyond a simple circuit, the output was only at a beginner level in terms of module partitioning, net completeness, and layout constraints, so we did not turn it into a methodology at the time. Recently, we retested with more capable general-purpose large models and noticed a perceptible jump in output quality, which led us to organize the entire workflow into an executable tutorial.

    Two premises need to be stated up front. First, models are still iterating quickly. The value of this tutorial is not tied to any specific version, but to the method of “how to collaborate with a model”; different tools and versions will behave differently, and engineering judgment must remain with the human. Second, AI is good at turning clear requirements into structured output, not at making tradeoffs for you. The vaguer the requirements, the more rework you will face.

    2. Results Overview: A Four-Layer FOC Control Board in Practice

    The test target was a single-axis three-phase motor FOC control board built around a general-purpose Cortex-M4 core microcontroller, using a four-layer stackup, with M3 mounting holes, a reserved connector for Hall sensors, and broken-out CAN communication, UART debug, and SWD programming interfaces.

    The current level is roughly comparable to a junior hardware engineer’s first revision draft: manufacturable and reviewable, but still requiring a human to converge the details. A few points deserve credit:

    • Clear layout partitioning: the inverter bridge power section is on the left, and the main controller and signal section is on the right; the motor terminal block sits at the left edge, the power stage is placed close to the terminals, and the power input is at the top, achieving physical separation between high-power and low-power areas.
    • Deliberate current-carrying design: the three-phase output main traces are placed on the bottom layer and widened to about 2.6 mm, with multiple vias connected in parallel per phase at the top-to-layer transitions to share the current, and the “neck-down” areas where the power device pads fan out are also widened.
    • Sensible layer allocation: the top layer carries components and signals, the first inner layer is largely a ground pour to provide nearby return paths, the second inner layer handles power distribution, and the bottom layer routes the motor outputs, reducing the chance of high current and small signals crowding each other.

    On the schematic side, the module partitioning is basically reasonable with no obvious structural flaws, but there are still several debatable design choices—which is exactly where human review is needed. A review checklist is provided later in this article.

    3. Environment Setup and Configuration

    1) Toolchain preparation: install a mainstream open-source EDA suite, confirm the library management strategy for schematics and PCBs (separate management of symbol libraries, footprint libraries, and 3D models), and initialize a version control repository to bring the project files under Git so you can compare multiple AI outputs.
    2) Context feeding: write the project constraints into a “design conventions” document (stackup, board material, impedance, connector model series, common component library paths, naming conventions) and provide it to the model at the start of every session.
    3) Session management: split the work into separate stages—“requirement clarification,” “schematic generation,” “PCB layout,” “routing optimization,” and “DRC convergence”—to avoid losing context by asking for everything at once.
    4) Verifiability: require the model to output a netlist checklist, a pin assignment table, and a power tree alongside its proposal, so you can verify item by item rather than reading through the whole text.

    4. Three-Round Prompt Pattern (Reusable)

    Round one establishes the task and the clarification mechanism:

    1. Use your EDA design capability to help me design an FOC motor control board:
    2. the main controller is a general-purpose M4-core MCU, input is 24V,
    3. peak current is 15A, and it needs CAN, UART, and SWD, with a reserved Hall interface.
    4. Where requirements are unclear, first compile a list of questions and ask me; do not produce the design directly.

    Round two makes technical tradeoffs based on the options the model provides, for example: current sampling scheme (low-side shunt / high-side amplifier / current transformer), bus voltage divider ratio, whether the gate driver should be integrated, and whether a braking resistor is needed. When answering, state the “selected option + rationale + constraints” explicitly.

    Round three moves into implementation and self-checking:

    1. Output the schematic according to the confirmed plan, and generate:
    2. 1) a pin assignment table; 2) a power tree and decoupling list; 3) a critical nets list;
    3. 4) four-layer stackup and layout constraints; 5) a list of doubts found during self-checking.

    5. Engineering Criteria for Layout and Routing (Manual Review Required)

    • Current capacity and temperature rise: with 1oz copper, a 2.6 mm trace width is a reasonable starting point in the tens-of-amps range, but the final value must be calculated against the allowed temperature rise and trace length, widening the trace or switching to a copper bar if necessary.
    • Via sharing: connecting multiple vias in parallel at layer transitions is standard practice, but the connection method between vias and pads (thermal relief vs. solid connection) also affects current capacity and must be considered.
    • Return paths: the inner-layer ground plane should remain as intact as possible and not be cut by signal slots; whether small-signal ground and power ground are joined at a single point depends on measured sampling accuracy and noise.
    • Manufacturability: check whether silkscreen is covered, footprint spacing, polarity markings, panelization and process edges, and test point accessibility.

    6. Common AI Output Defects and a Review Checklist

    1) Decoupling capacitor count or placement that “looks right but is not close enough”; 2) missing Kelvin routing for the sampling resistor; 3) excessive gate drive loop area; 4) interfaces lacking TVS or common-mode suppression; 5) debug ports without isolation or current limiting; 6) duplicate net labels causing hidden shorts. It is advisable to turn this list into a review template and check off each item after every round of output.

    7. Standardizing a Two-Hour Workflow

    Turn the “design conventions document + three-round prompts + review checklist” into a team template; for a new project, you only need to replace the requirements and constraints sections. What AI compresses is the time from idea to a reviewable first draft; the real convergence still depends on the engineer’s tradeoffs across electrical, thermal, EMC, and manufacturing concerns. Treat it as an efficient subordinate rather than a replacement, and the output quality will be stable.