From Layout to Toolpath
From Layout to Toolpath: The Open-Source Software for Making Circuit Boards on a Desk
A circuit board passes through five steps on its way to a desk machine: design, fabrication files, a check, toolpaths and motion firmware. This note names the open-source tools at each step from their own READMEs and licence files, shows that milling is well covered while printed ink and laser exposure are not, and lists the open problems. We ran none of the tools.
First, a simple picture
A recipe, a shopping list and a cook.
The recipe is the board design. The shopping list is the set of files a factory reads. The cook is the machine. In a factory, people turn the list into work for each machine. On a desk, software has to do that job, and the person at the desk has to trust it.
This note follows a circuit board from the design tool to the moving machine, and names the open-source software at each step. It reads each project's own README and licence file, and says what each one says it does. We ran none of them for this note, so there are no speed or quality figures here.
It matters to us because of Blaide, our desktop circuit-board printer, which is still a design package and has not been built. Its published page says one head changes between two dispensers, a spindle and a 405 nm UV laser, so a board can be printed in silver ink, milled from copper or exposed with the laser. Each of those is a different kind of job, and the open tools cover them very unevenly.
The chain, step by step
A board goes through five steps on its way to a desk machine.
- Design. A layout tool draws the copper, the holes and the outline.
- Fabrication files. The tool writes one Gerber file per layer (copper, mask, silkscreen, outline) and an Excellon file for the drill holes. These are the shopping list.
- Check. A viewer draws the files back, so you see what the machine will see, not what the layout tool meant.
- Toolpaths (CAM). CAM means computer-aided manufacturing. It turns shapes into moves: where the cutter goes, how deep, how fast. The output is G-code, a plain-text list of moves.
- Motion. Firmware on the machine reads the G-code and drives the motors, the spindle or the laser.
Each step can be a separate program. That is the strength of the open chain, and also where it breaks.
Step 1: design tools
KiCad is an open layout suite. Its source tree has a schematic editor, a board editor and its own Gerber viewer. Its licence file says most of the code is under the GPLv3 or later, with third-party parts under other licences, and that a combined binary is governed by the GPLv3. Blaide's own boards were checked with KiCad's design rule check, as its page says.
LibrePCB is a free suite for Windows, Linux and macOS, published under the GPLv3.
Horizon EDA lists a complete flow from schematic entry to Gerber export, rule-based checks and KiCad's interactive router. Its licence file is the GPLv3.
KiKit works on top of KiCad. It is a Python library, a KiCad plugin and a command-line tool. Its README lists panelisation (putting many boards on one sheet), exporting manufacturing data from maker presets, and making solder paste stencils, including 3D-printed ones. Its licence file (LICENCE) is MIT.
Step 2 and 3: reading and checking the files
The files are simple to write and easy to read differently. A viewer that draws them again is the cheapest check there is.
gerbv views Gerber RS-274X files, Excellon drill files and CSV pick-and-place files. Its README says the older RS-274D format is not supported. The core is a separate library, libgerbv, that other programs can use. It is under the GPL, version 2 or (at your option) any later version.
The gerbv README also gives a warning worth repeating. It says the tool is meant for trusted files, and that anyone feeding it files from the network should treat libgerbv like any media codec and keep it apart from the rest of the program. A file parser is an attack surface, and a desk machine that accepts files from anyone needs that boundary.
tracespace is a set of JavaScript libraries for Node.js and the browser, under the MIT licence. Its packages parse Gerber and drill files, draw one layer as SVG (gerber-to-svg, version 4.2.8 on npm), stack the layers into a picture of the whole board, and guess what each file is from its name.
PyGerber is a Python toolkit for the Gerber X3 format, under the MIT licence. Its README says it follows the format owner's specification, revision 2024.05, and also reads X2, RS-274X and RS-274D files. It adds a fair warning: older versions of the format are ambiguous, so some old behaviour may be read wrongly. The latest release on PyPI is 2.4.3, from March 2025.
pcb-tools reads Gerber and Excellon files in Python. Its README now says it has no maintainer and points to alternatives. It is a small lesson in reading the licence file: the file is the Apache License 2.0, while the package's PyPI record carries the classifier for a different licence. Cite the file.
Step 4: turning shapes into toolpaths
For milling, the main job is isolation milling. The cutter runs around each copper shape and cuts a groove that separates it from the copper around it. Drilling and cutting out the board come after.
pcb2gcode is a command-line program for exactly this. Its README says it takes Gerber files and writes G-code for isolation, routing and drilling, with drilling read from Excellon files. It has an autoleveller, which its README calls automatic dynamic calibration of the milling depth. Its wiki covers two-sided boards with alignment pins and mirroring. It builds on libgerbv. Its licence file is the GPLv3. Newer versions also run as a Model Context Protocol server, so an AI assistant can call it directly.
FlatCAM prepares CNC jobs for making boards on a CNC router, starting from Gerber and producing G-code for isolation routing. The fork we read adds clearing of all non-copper areas with more than one tool. Its licence file is MIT.
Which open tool covers which job, from each project's own README
| Job | Open tools that say they do it |
|---|---|
| Isolation milling from Gerber | pcb2gcode, FlatCAM |
| Drilling from Excellon | pcb2gcode |
| Correcting depth for an uneven board | pcb2gcode (autoleveller) |
| Panels and paste stencils | KiKit |
| Laser motion with power tied to speed | Grbl, grblHAL (laser mode) |
| Exposure paths for photoresist from Gerber | None of the projects we read |
| Dispensing conductive ink or paste along traces | None of the projects we read |
| Printed multilayer boards with a printed dielectric | None of the projects we read |
Step 5: the firmware that moves the machine
Grbl is motion control firmware for CNC milling on an Arduino-class 8-bit chip. Its README says it plans speeds up to 16 moves ahead, so corners stay smooth, and keeps stable step pulses up to 30 kHz. It does not support macros, variables or most canned cycles, on the view that the program sending the G-code should handle those.
Version 1.1 added a laser mode. With it on, the machine keeps moving through a run of cuts while the laser power changes, instead of stopping to let a spindle reach speed. With the M4 command, it also scales the laser power with the actual speed, so corners, where the machine slows, do not get burned. Grbl is under the GPLv3 or later.
grblHAL is a rewrite of Grbl 1.1f for 32-bit chips with more memory. Its README lists drivers for more than 15 processor families sharing one core, step pulses up to 300 kHz depending on the driver, canned drilling cycles, and plugins that add new commands, for example to drive an automatic tool changer. It is under the GPLv3 or later.
What this means for a machine like Blaide
Two of Blaide's three processes sit close to the open chain.
- Milled copper is the well-trodden path. Gerber in, isolation and drill paths out, G-code to a Grbl-style controller.
- Laser exposure has firmware support for moving a laser well. What we did not find, in the READMEs we read, is a tool that turns Gerber copper into exposure paths for photoresist. That does not mean none exists. It means it is not one of the main tools.
- Printed silver ink, with up to four layers and a printed dielectric between them, is the gap. Dispensing ink is a different job from cutting a groove: the tool lays material along the trace instead of cutting around its outline. None of the projects we read says it does this.
Blaide's clickable app preview, on its page, reads the copper layers of Gerber files in the browser with a small parser of its own, and the files stay in the browser. It is a preview with a simulated machine. It does not use any of the tools above, and nothing here says the finished machine will.
Open problems
These are the problems that stay open for anyone building a desk machine on this chain.
- Files from strangers. gerbv's own advice is to treat the parser like a codec and isolate it. A machine that takes files over Wi-Fi has to decide where that boundary sits.
- Old and ambiguous files. PyGerber says older forms of the format are ambiguous. Two viewers can draw the same file differently. Drawing the file back before running a job is the check.
- Milling depth. Blaide's published target is a 0.20 mm gap for milled boards. pcb2gcode ships an autoleveller to correct the milling depth during a job, which shows the problem is real enough to need a tool.
- Two sides. Flipping a board and finding the same holes again needs pins, mirroring and offsets. pcb2gcode documents a method, and it is still a hand step.
- Toolpaths for printing. There is no common open CAM step for conductive ink or printed dielectric layers, as far as these projects say.
- Licences in one product. Most of this chain is GPL. Running a GPL program as a separate tool and building its library into your own program are different cases. That needs a lawyer's view for each product, and this note is not one.
What we have not done
We did not install or run any of these tools, and we measured nothing. Every statement about a tool comes from its own README, licence file or package record, read on 23 November 2026. The licence notes are a summary for engineers, not legal advice. Other good tools exist that this note does not cover. Blaide has not been built or tested, and its numbers are design targets from its published page. KiCad, Grbl and the other product names in this note belong to their owners. Senova Systems is not affiliated with or endorsed by any of these projects.
Sources
- KiCad, LICENSE.README (GitLab, master)
What we used
Most of the source is GPLv3 or later; third-party parts under other licences; a combined binary is governed by the GPLv3. Read 23 November 2026
- KiCad, README.md (GitLab, master)
What we used
Source tree includes the schematic editor (eeschema), board editor (pcbnew) and Gerber viewer (gerbview). Read 23 November 2026
- LibrePCB, README.md and LICENSE.txt (GitHub)
What we used
Free EDA suite for Windows, Linux and macOS; published under the GPLv3. Read 23 November 2026
- Horizon EDA, README.md and LICENSE (GitHub)
What we used
Flow from schematic entry to Gerber export, rule-based DRC, KiCad's interactive router; licence file is GPLv3. Read 23 November 2026
- KiKit, README.md (GitHub) and PyPI record
What we used
Python library, KiCad plugin and CLI; panelisation, manufacturing data export from presets, 3D-printed and steel paste stencils; PyPI: version 1.8.1, uploaded 5 August 2026, MIT License. Read 23 November 2026
- KiKit, LICENCE (GitHub)
What we used
Licence file: MIT. Read 23 November 2026
- gerbv, README.md and COPYING (GitHub)
What we used
Viewer for Gerber RS-274X, Excellon and CSV pick-and-place; RS-274D not supported; core in libgerbv; GPL version 2 or any later version; security section: meant for trusted files, isolate libgerbv like a codec for untrusted input. Read 23 November 2026
- tracespace, README.md and LICENSE (GitHub)
What we used
JavaScript tools for Node.js and the browser: gerber-parser, gerber-to-svg, pcb-stackup, whats-that-gerber; MIT License. Read 23 November 2026
- gerber-to-svg, npm registry record
What we used
Latest version 4.2.8, licence MIT, renders individual Gerber and NC drill files as SVG. Read 23 November 2026
- PyGerber, README.md and LICENSE.md (GitHub) and PyPI record
What we used
Gerber X3 toolkit based on the format owner's specification revision 2024.05; also reads X2, RS-274X and RS-274D, with a warning that legacy behaviour may be read wrongly; MIT; PyPI version 2.4.3, uploaded 19 March 2025. Read 23 November 2026
- pcb-tools, README.md and LICENSE (GitHub) and PyPI record
What we used
README: currently without a maintainer; reads Gerber and Excellon in Python; licence file is Apache License 2.0 while the PyPI classifier names Apple Public Source License; last PyPI upload 0.1.6, March 2019. Read 23 November 2026
- pcb2gcode, README.md and COPYING (GitHub)
What we used
Command-line isolation, routing and drilling from Gerber (and Excellon for drilling) to G-code; autoleveller for dynamic calibration of milling depth; two-sided alignment options in the wiki; builds on libgerbv; MCP server mode (--mcp); GPLv3. Read 23 November 2026
- FlatCAM fork, README.md and LICENSE (GitHub)
What we used
Prepares CNC jobs for making PCBs on a CNC router, Gerber to G-code for isolation routing; this fork adds multi-tool clearing of non-copper areas; MIT License. Read 23 November 2026
- Grbl, README.md and COPYING (GitHub)
What we used
CNC motion control on an ATmega328p; up to 30 kHz step pulses; plans up to 16 motions ahead; no macros, variables or most canned cycles; v1.1 laser mode and M4 dynamic laser power scaling; GPLv3 or later. Read 23 November 2026
- grblHAL core, README.md and COPYING (GitHub)
What we used
Port and rewrite of grbl 1.1f for 32-bit processors; drivers for more than 15 processor families; up to 300 kHz depending on driver; plugins (for example a tool changer); canned cycles; GPLv3 or later. Read 23 November 2026
- Senova Systems, Blaide product page
What we used
Tools (two dispensers, spindle, 405 nm UV laser), processes, 0.20 / 0.20 mm printed or milled and 0.10 / 0.10 mm laser-exposed targets, up to 4 printed layers, KiCad DRC on its boards, app preview that reads Gerber copper in the browser; nothing built yet. Read 23 November 2026