Name | Last commit date | Author |
---|---|---|
kicad-5 | 2022-01-25 13:45:09 +0000 | mitxela |
master | 2024-12-04 20:20:49 +0000 | mitxela |
Name | Last commit date | Author |
---|---|---|
1.0 | 2022-01-29 16:42:52 +0000 | mitxela |
1.1 | 2022-02-14 16:16:51 +0000 | mitxela |
1.2 | 2022-05-03 11:13:00 +0100 | mitxela |
1.3 | 2023-03-09 14:18:00 +0000 | mitxela |
1.4 | 2023-03-09 15:43:29 +0000 | mitxela |
1.5 | 2023-03-24 14:22:20 +0000 | mitxela |
1.6 | 2024-12-04 20:20:49 +0000 | mitxela |
Name | Size |
---|---|
.gitignore | 1.215K |
LICENSE | 11.09K |
README.md | 3.495K |
__init__.py | 81B |
icon.png | 5.657K |
metadata.json.template | 1.131K |
release.sh | 875B |
round_tracks.png | 821B |
round_tracks_action.py | 25.99K |
round_tracks_gui.py | 4.298K |
round_tracks_ui.fbp | 28.57K |
round_tracks_utils.py | 2.533K |
A subdivision- and/or native arc-based track rounding plugin for KiCad.
The goal is to algorithmically melt a PCB design, smoothing all tracks in a predictable manner.
For best results, use in conjunction with this teardrop plugin.
I have written extensively about my kicad melting experiments here and here.
For the KiCad 5 compatible version, please use the kicad-5 branch.
The intended use is to have a source PCB file, which is easy to edit, and a rendered output file, generated by this plugin. After running DRC on the output, you can then go back and adjust the original file before running the plugin again.
If you select part of the board, only the selected tracks will get melted. If nothing is selected, the whole file will be processed.
"Create a new file" does not immediately write anything to disk, it merely appends "-rounded" to the filename so that the next time you hit Save it won't overwrite the original.
If "use native" is ticked, the rounded sections are implemented using KiCad 6's native PCB arcs. These can be adjusted after the script has run, but I still recommend keeping the unrounded source PCB file. I have tried hard to ensure that the output PCB is the same, regardless of if native or subdivision-based arcs are used. If "use native" is ticked, the number-of-passes parameter is ignored.
Otherwise, the curves are generated from many small straight sections. 2 or 3 passes is usually sufficient. There is no loading bar, so if the design is complicated the interface might freeze for a few seconds while it runs. You can set the number of passes to be 1, and run the plugin repeatedly, and it will give the same results, while letting you inspect the intermediate stages.
"Radius" is the maximum radius curve that would result from a 90° bend. A smaller curve will be used if the tracks are shorter, or if the angle between them is sharper. The resulting curves will always pass through at least one point of the original tracks, so individual curves can be controlled by splitting tracks into smaller sections. If a curve has too large a radius, placing a small 45° bend will make it smaller. Similarly, if a bigger radius is needed for certain tracks, you can draw an approximate curve with free-angle tracks to achieve this.
Now available from the Plugin and Content manager.
For manual install, clone or unzip this repository in a KiCad plugin folder. You can list the exact paths where KiCad will search for plugins by opening the scripting console in pcbnew and running:
import pcbnew
print(pcbnew.GetWizardsSearchPaths())
Under Preferences / Preferences / PCB Editor / Action Plugins, you can choose whether to have a button on the toolbar for quick access to the plugin.
This plugin is based on flexRoundingSuite by Julian Loiacono and kicad-round-tracks by Antoine Pintout. My contribution updated the algorithm so that subdivisions are applied equally, resulting in smoother tracks with fewer clearance errors.
Original copyright Miles McCoo, 2017
Extensively modified by Julian Loiacono, Oct 2018
Multi-layer support and repacked as action plugin by Antoine Pintout, May 2019
Updated subdivision algorithm by mitxela, Jan 2021