Engineering AI-Assisted Schematic and PCB Design into a Repeatable Workflow
After model updates, the same AI hardware-design experiment produced a usable four-layer FOC motor-control board in about two hours. This article explains where AI now handles rule-checkable work, how to constrain the toolchain and prompts, which layout judgments to review, and which decisions still require an engineer.
1. A capability jump: from a beginner toy to junior-engineer quality
A similar experiment a little over a month earlier was not encouraging. Asking a coding assistant to generate hardware design files directly failed even a beginner bar on anything beyond a simple schematic and PCB: net names were messy, footprints were chosen casually, and routing had no coherent structure. Repeating the same tests after continued model iteration produced a visible jump in quality. Placement started to follow engineering logic, layer roles were distinct, and high-current paths were widened on purpose.
The point is not that AI replaces hardware engineers. It is that AI can now take on the structured work that rules can check. In hardware design, drawing footprints, organizing nets, filling constraints, and cleaning DRC violations are highly patterned tasks—the range where current tools are strongest. System architecture, EMC strategy, and the final calls on cost and safety margin still belong to a person. Understanding that boundary is a prerequisite for using these tools.
The artifact in this experiment is a single-channel three-phase motor field-oriented control (FOC) board built around a 32-bit mixed-signal microcontroller: a four-layer stackup, M3 mounting holes, a reserved Hall-sensor interface, and brought-out CAN, UART debug, and SWD programming connectors. From a one-sentence requirement to a complete project took about two hours, with only three rounds of prompt refinement.
2. Environment setup: from “can it generate” to “can it be reused”
Generating files in a free-form chat is neither reproducible nor versionable. The first engineering step is to put the AI inside a controlled project environment.
- Pin the toolchain version. EDA project formats differ across versions. Lock the version and record it in the repository notes so generated files can still be opened locally.
- Use a versioned project tree. Put schematics, the PCB, footprint libraries, symbol libraries, and design-rule files under version control. Treat each AI output as its own commit so it can be traced and diffed.
- Capture organization-level design rules. Do not restate trace width, minimum clearance, via drill size, silkscreen text size, or pad expansion verbally every time. Write them into rule files and constraint tables so the tool reads them instead of guessing.
- Prepare reusable skills or templates. Wrap “draw the schematic,” “finish placement and routing,” and “generate manufacturing outputs” as capability units with fixed inputs and outputs that the model can call when needed. This is what turns a one-off result into a repeatable process.
- Define validation gates. After generation, electrical rules check (ERC) and design rules check (DRC) must run automatically. A failed check must not proceed to the next stage.
An illustrative constraint fragment (actual values must follow the process and the device datasheets):
# net_class: POWERclearance = 0.30 mmtrack_width = 2.60 mmvia_count_min = 8 # paralleled vias at layer changes# net_class: SIGNALclearance = 0.20 mmtrack_width = 0.25 mm
3. Prompt method: three iterations, not one wish
An effective prompt strategy is to converge the requirements first, then the approach, then the constraints.
Round 1: state only the intent and ask for questions back.
Using the electronics design skill, design an FOC motor-control boardwith a 32-bit mixed-signal controller as the main MCU.For anything unclear in the requirements, list the options first,then ask me to confirm.
The key move is to require the model to organize its understanding before asking. Have it list the inputs it thinks it needs—bus voltage class, peak and continuous current, sensing method, communication needs, board size, and mounting—so hidden assumptions become explicit.
Round 2: decide on the options. Resolve each branch the model presents. Examples: 24 V or 48 V bus; low-side shunt or single bus resistor for phase-current sensing; an integrated half-bridge or discrete MOSFETs with a separate gate driver; whether to keep a Hall interface as a reference against a sensorless scheme. The output of this round is a reviewable design-decision record, not files.
Round 3: inject hard constraints and acceptance criteria. Specify the four-layer stackup, the width and via count of high-current paths, the physical boundary between high- and low-voltage regions, and the debug interfaces that must be brought out. Also require the model to self-check ERC/DRC after generation and list items that did not converge.
After three rounds, the model shifts from a drafter guessing the requirements to an implementer executing a clear specification, and rework drops sharply.
4. Placement and stackup: four engineering judgments worth reusing
What actually shows the quality of the result is four judgments. They also work as a checklist when reviewing similar AI output.
Component placement and high/low-voltage partitioning. Place the inverter bridge near the motor terminals, put the power entry at the top edge of the board, and keep the controller and low-voltage sensing on the other side. Treat power ground and signal ground with a single-point or partitioned strategy, and keep silkscreen orientation consistent with no overlaps. Partitioning is not an aesthetic choice. It sets loop area and the coupling path for switching noise.
Width of the main current path and removal of bottlenecks. Route the three-phase outputs on the bottom layer at about 2.6 mm each. At each top-to-bottom layer change, parallel eight vias per phase to share current. Pay special attention to the narrowest short segment after a MOSFET pad exit. Widening the main trace while leaving the bottleneck unchanged is the most common hidden beginner defect. Current capacity should be judged by the narrowest cross-section on the path, not by the average.
Role separation in a four-layer stackup. Place components and signal routing on the top layer. Use a large ground pour on the first inner layer so signal current has a nearby return. Use local copper on the second inner layer to feed the three-phase bridge. Use the bottom layer for the motor outputs. High current and weak signals are separated vertically, and return paths are kept short.
Complete interface breakout. Bring out and label debug and programming, communication, and sensor interfaces in one pass so later flying wires are unnecessary. This kind of serviceability is often skipped during requirements, yet it is among the most expensive parts of production and debug.
5. What still needs a human safety net
AI output still has typical hard failures. Review these first: missing decoupling, or decoupling capacitors too far from power pins; an oversized gate-drive loop; Kelvin routing of a sense resistor cut by the ground plane; an ambiguous connection between digital ground and power ground; pads that do not match the land pattern recommended in the device datasheet; and critical nets left without width and clearance constraints.
The recommended flow is: AI generation → automatic ERC/DRC → human review of the decision record → fix and recheck → manufacturing outputs. Before those outputs, also check minimum drill, minimum clearance, solder mask, and stencil openings against the board fabricator’s capability, and run a manufacturability review.
6. Conclusion
The real gain in this round is handing the rule-describable part of hardware design to the tool. How far that pays off depends on engineering discipline. With rule files, version control, and automatic checks in place, a four-layer board at junior-engineer level in about two hours is reachable. Without them, chat-style generation only produces a diagram that cannot be reproduced. Models are still improving quickly, and the next generation’s boundary will be wider, but converging requirements, deciding the approach, and judging safety margin remain core engineer responsibilities for the near term.
