kicad-pycbnew: A Python Framework for Automated, High-Precision PCB Design in Particle Detector Instrumentation
Vincent Raspal
Abstract
kicad-pycbnew is an open-source Python library for the automated, script-based generation of KiCad PCB designs, tailored to the precise geometric and impedance constraints of particle detector readout electronics. By enabling the programmatic definition of copper traces, zones, vias, and footprints --- without a graphical interface --- it addresses the challenges of designing large-scale, repetitive, or parameterized layouts (e.g., Resistive Plate Chamber (RPC) strips or controlled-impedance signal paths). Key features include constraint-driven routing, parallel track arrays with rounded corners, via grids with exclusion zones, and full compatibility with KiCad's native file format. Standalone operation (no KiCad runtime required) facilitates integration into CI/CD pipelines and ensures reproducibility. The library, released under the MIT License, includes validated examples such as trapezoidal RPC readout boards and extension boards for the COMET experiment, alongside comprehensive tests and documentation.
Create a lesson
Related papers
Measurement of the free ion yield and estimate of the electron mobility of Trimethyl-Bismuth (TMBi)
B. Gerke, V. Hannen, S. Peters et al.
Beam Spill Structure Measurements at CEE Using the T0 Detector
Shuaike Lv, D. Hu, Dayu Yin et al.
CNN-based Position Reconstruction for the T0 Detector in the HIRFL-CSR External-target Experiment
Shuai-Ke Lv, D Hu, M Shao et al.
Application and Optimization of the GET Electronics System for Double-Sided Silicon Strip Detector Readout
Jiawei Bian, Zaihong Yang, Qite Li et al.
Cavity Characterization for the Princeton Axion Search
Nate Otto, Jianyang Fu, Joelle-Marie Begin et al.
First demonstration of 50\,ps four-dimensional vertex reconstruction with the Timepix4 beam telescope
David Bacher, Kazu Akiba, Martin van Beuzekom et al.