How I used an AI coding agent to turn a conventional electronic schematic into a professionally manufactured PCB, without becoming an expert in PCB layout.
Beyond asking AI for adviceI’ve been experimenting with artificial intelligence in my electronics workshop for some time, but a recent project introduced me to something quite different: agentic AI.
Most of us are familiar with asking an AI chatbot a question. We might ask it to explain a circuit, calculate a resistor value, interpret a datasheet or help diagnose a problem. But what if, instead of telling us how to operate a piece of software, AI could actually operate that software on our behalf?
That was the idea behind my latest experiment.
I had developed a linear power supply based on the familiar LM723 regulator IC, with a TIP3055 external pass transistor producing a regulated 5 V output. The circuit also incorporated 9 V and 3.3 V auxiliary regulators.
I already had the schematic drawn in KiCad, but my experience of PCB layout was limited. I understood the circuit, but selecting footprints, positioning components, routing copper tracks and preparing manufacturing files were less familiar territory. I decided to find out whether agentic AI could bridge that gap.
The result was a fully routed, two-layer, 120 × 100 mm PCB, manufactured in China and delivered to the UK just five calendar days after ordering. The interesting part, however, was how we got there.
The software involved
Three applications formed the core of the system.
KiCad 10 was the electronic design environment. It contained the schematic and PCB files, provided component libraries and performed electrical and physical design checks.
OpenAI Codex was the AI agent. It can access tools, inspect files, execute supported operations and make changes to projects.
Konnect-EDA, developed by Orchis.ai, provided the connection between Codex and KiCad, exposing PCB design and verification operations that an agent can invoke.
The Model Context Protocol (MCP) lets Codex discover and invoke tools provided by Konnect. KiCad’s Inter-Process Communication (IPC) interface lets Konnect interact with the running PCB Editor.
The practical arrangement was:
ChatGPT → Codex → Konnect-EDA → KiCad
I used ChatGPT as the engineering and planning assistant, discussing the circuit, identifying risks and developing prompts. I copied those prompts into Codex, which used Konnect’s tools to inspect and modify the actual project. KiCad remained the authoritative design environment.
This distinction is important. ChatGPT was not remotely controlling my desktop, and Codex was not generating pictures of PCBs. It was interacting with an editable KiCad design.
Getting everything connectedMy desktop runs Linux Mint. I initially had KiCad 7, so I upgraded to KiCad 10, as required by the Konnect version used. I installed Konnect through KiCad’s Plugin and Content Manager, and installed Codex separately as a command-line application.
Versions used in this experiment:
- KiCad 10.0.8
- Codex CLI 0.170.0
- Konnect-EDA 0.14.1
After authenticating Codex with my ChatGPT account, I registered Konnect as an MCP server. The registration command has the form:
codex mcp add konnect -- /path/to/konnect --client codex
To inspect registrations:
codex mcp list
I enabled the KiCad IPC API in its main Plugins preferences. The running PCB Editor then created the Unix domain socket:
/tmp/kicad/api.sock
It wasn’t all seamless. Initially Codex could communicate with Konnect but could not expose some dynamically loaded tools. We configured Konnect to load its toolsets at startup using eager_toolsets = true. We also found that KiCad needed to be open for live operations, that starting a fresh Codex session sometimes restored the connection, and that file-locking required care when distinguishing saved-file edits from live IPC edits.
These were real integration difficulties, not an entirely effortless installation. Once communication was established, though, the design work became remarkably straightforward.
The key to success: controlled promptingI deliberately avoided asking Codex to simply take the schematic and produce Gerber files. That would surrender too many engineering decisions in one step.
Instead, ChatGPT helped me write a series of prompts. Each specified an objective, constraints, changes that were forbidden, and verification steps. After each operation, I examined Codex’s report and inspected the result in KiCad.
The following extracts are shortened examples from the actual prompts. Our complete instructions included further checks and safeguards.
Prompt example 1: Audit the schematicUsing the Konnect MCP tools, inspect the KiCad project currently open in the PCB Editor, including its associated schematic.
This is an inspection and planning exercise only. Do not modify the schematic, PCB or project files.
Our objective is to manufacture a professional, entirely through-hole PCB for an LM723-based linear power supply.
Component requirements:
- All components must be through-hole. No SMD.
- Standard 0.25 W axial resistors, except the current-sense resistor.
- Radial electrolytic capacitors rated at least 25 V.
- Two-lead through-hole ceramic capacitors.
- DIP package for the LM723.
- TIP3055 transistor may be chassis-mounted.
Enumerate every component, identify missing footprints, recommend suitable KiCad footprints and run an electrical rules check. Return a structured report and clearly identify any assumptions.
Codex identified missing footprints, package questions and ERC warnings. This wasn’t generic advice about LM723 circuits: the agent had interrogated the actual KiCad schematic.
Creating a custom footprintOne useful example concerned the 0.47 Ω, 3 W current-sense resistor. I had a physical resistor but did not know which footprint to select. I measured it:
- Body length: 15.75 mm
- Body diameter: 5.0 mm
- Lead diameter: 0.62 mm
We selected horizontal mounting with 22.86 mm pad spacing and 0.9 mm finished holes.
Prompt example 2: Custom footprintUsing Konnect and the KiCad footprint tools, prepare a custom through-hole footprint for R6 in the Discrete PSU working project.
Component: 0.47 ohm, 3 W axial metal oxide resistor.
Measured dimensions: body length 15.75 mm, maximum body diameter 5.00 mm, lead diameter 0.62 mm.
Use horizontal mounting, 22.86 mm pad spacing, 0.9 mm plated holes and 1.8 mm copper pads. Create fabrication, silkscreen and courtyard outlines.
Save the footprint in a project-local library named Discrete_PSU.pretty. Verify pad numbering, drill sizes and library loading. Do not modify the PCB layout.
Codex created the footprint, registered the local library and assigned R6. When the PCB arrived, the physical resistor fitted its custom footprint correctly.
Component placementOnce the schematic and footprints were ready, I used KiCad’s native Update PCB from Schematic command to transfer the components to the PCB Editor.
Codex then arranged 26 electrical footprints, leaving space for accessible connectors, heatsinks and four mounting holes. The main power connectors were grouped together; LM723 control parts were clustered centrally; and the auxiliary regulators were placed near an edge with room for heatsinking.
We deliberately chose a generous 120 × 100 mm board, favouring ease of assembly over minimum area.
Routing in controlled passesRouting was perhaps the most impressive part of the exercise. We split it into stages: high-current paths, LM723 current sensing, remaining supply rails, feedback and control circuitry, and finally the back-copper ground plane.
Prompt example 3: Power routingUsing Konnect’s live KiCad IPC tools, perform the first controlled power-routing pass.
Route only these connections:
- J1 pad 2 to J5 pad 2: 13V8_PROTECTED.
- J5 pad 3 to R6 pad 2: Q1_EMITTER.
- R6 pad 1 to J2 pad 2: 5V_MAIN.
- J1 pad 1 to J2 pad 1: GND.
Use 1.5 mm tracks for the designated high-current connections where DRC permits.
Preserve access for separate LM723 current-sense traces directly to both R6 pads.
Do not route other connections, modify components, add copper zones or generate Gerbers.
If a connection cannot be routed safely, leave it unrouted and explain why. After routing, save the PCB, run DRC and report widths, vias, unrouted connections and violations.
Codex routed the three positive-supply connections and deliberately deferred the ground return, recognising that it could be better served by a copper plane.
Prompt example 4: Current-sense routingRead the live pad-to-net assignments for U1 pins 2 and 3 and R6 pads 1 and 2.
Verify the connections against the schematic and LM723 pin functions. Route the verified sensing connections directly to the appropriate R6 pads.
Use 0.30 mm tracks, preferably on F.Cu, with no vias where practical.
Join the sensing traces at R6’s pads rather than at arbitrary points on the 1.5 mm current-carrying tracks. Preserve the existing power routes.
If the schematic topology prevents two direct connections, stop and explain why rather than inventing connections.
This mattered because the regulator measures voltage across R6 to limit current. A trace picking up voltage along a high-current copper track could include an unwanted resistive drop. The agent completed both pad-end sensing paths.
We subsequently reviewed the feedback pickup too and routed a dedicated voltage-sensing trace from the 5 V output connector.
Ground plane and checkingCodex added a GND copper zone on the reverse side of the PCB and reported one connected copper region, with no isolated islands. The final design had no unrouted connections and no electrical design-rule errors.
A later read-only interrogation of the live board confirmed 30 footprints, including four mounting holes, 102 copper track segments and one via.
DRC is invaluable, but it doesn’t establish that every engineering choice is sound. We still had to check packages, current-carrying conductors, feedback topology, physical clearances and thermal performance.
When the agent decided not to change somethingI noticed a tight-looking trace between two LM723 pads and proposed a route through a more open area beneath a nearby resistor.
Codex measured 0.32 mm clearance on either side of the existing 0.30 mm trace and a total route length of 24.72 mm. Its proposed alternative was around 45 mm and risked introducing a different constriction in the ground plane.
It recommended leaving the track alone. I agreed.
A useful agent isn’t necessarily one that makes every change suggested to it. Sometimes the best result is a measured explanation for retaining the original design.
What still needed human intervention?Konnect couldn’t perform every operation. I used KiCad manually to transfer the schematic to the PCB and to finish some silkscreen adjustments. We also dealt with file locks, connection failures and missing model references.
The 3D Viewer originally showed a bare board because several footprints still referenced older KiCad 6 model paths. After verifying the correct KiCad 10 STEP model, Codex updated 24 obsolete references without disturbing the routing.
This was a productive partnership rather than a hands-off automation exercise.
ManufacturingKiCad generated Gerbers for the copper, solder masks, silkscreen and board outline, along with Excellon plated and non-plated drill files. I zipped them and submitted the job to PCBWay.
The order was placed 18 November 2026. The boards arrived from China on 23 November, five calendar days later, including manufacture and international delivery. That was the result of this order, not a guaranteed turnaround.
The real board provided the ultimate check: components fitted the selected footprints, and the completed supply operated correctly.
Did AI make a better power supply?
I built the same circuit using traditional dead-bug construction on copper-clad board. That version took less than 40 minutes to build and worked at first power-up.
Both supplies later produced the same voltage readings to the displayed resolution during a 0–1 A load test: a fall of just 5 mV across the range.
Noise was also very close. With the same oscilloscope settings at 1 A, the dead-bug version measured approximately 87 µV AC RMS, compared with 81 µV AC RMS for the manufactured board. The difference was too small to establish a meaningful electrical advantage.
The PCB did not magically improve a circuit that already worked well. Its benefits lay in predictable construction, robustness, repeatability and the ability to produce multiple identical boards.
What made the prompting effective?The most useful prompts shared four characteristics:
- An objective: exactly what the agent should accomplish.
- Constraints: component packages, track widths, spacing, electrical requirements and limits.
- Restrictions: which files, nets and geometries it must not change.
- Verification: what to check and report before the operation was accepted.
Incremental changes and verified backups were particularly useful. At several stages Codex stopped rather than risk changing a locked file or making an unsupported modification.
The final responsibility for judging the design remained with the experimenter. Even a fully routed board with zero DRC errors can contain poor engineering choices.
Final thoughtsDead-bug construction and stripboard remain excellent ways to experiment, make quick changes and assemble one-off projects. Agentic AI doesn’t make them obsolete.
What has changed is how approachable professional PCB design can be.
KiCad, Codex and Konnect-EDA let me move from an existing schematic to editable manufacturing-ready PCB files without manually mastering every aspect of component placement and routing.
For me, that is the compelling part of agentic AI: it doesn’t replace the experimenter, but makes sophisticated tools more accessible through natural-language instructions.
And having the finished boards arrive five days after ordering was a satisfying conclusion.
Software and further reading- KiCad: https://www.kicad.org/
- OpenAI Codex: https://developers.openai.com/codex/
- Konnect-EDA: https://github.com/Orchis-ai-LLC/Konnect-EDA
- Model Context Protocol: https://modelcontextprotocol.io/
- PCBWay: https://www.pcbway.com/
Software versions and behaviour described here relate to the November 2026 experiment. Installation procedures and supported capabilities may change.
This was an independent technical experiment. The work was not sponsored by PCBWay.





No comments:
Post a Comment