
Switch
byrantech/laptop
anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.

Generate clearance rules for KiCAD by a human-readable easy-to-use table.
Clearance example is an open-source printed circuit board by upb-lea, from the upb-lea/KiClearance repository on GitHub. It is a 2-layer board with 6 parts on 7 nets, routed with 28 tracks and 0 vias.
Its parts include 3 connectors, 1 resistor, 1 IC and 1 diode.
.. sectnum::
This Python program converts a given table of voltage distances into KiCad design rules.
.. image:: docs/source/figures/overview.png
Install KiClearance directly from pyPI:
::
pip install kiclearanceDefine net classes in your KiCad project
Add the net classes to each connection in the circuit diagram.
.. image:: docs/source/figures/net_class_directive_labels.png
Add the same net classes in the net classes of the PCB editor:
``KiCad PCB Editor``: ``File`` -> ``Board Setup`` -> ``Design Rules`` -> ``Net classes``
.. image:: docs/source/figures/board_setup.png
Run KiClearance to initially generate the clearance tableNavigate to the project folder with the KiCad project. Open a terminal and execute :
::
python -m kiclearanceNow a file clearance.ods is generated, which contains the human-readable clearance table.
As of now, the table has been generated using fantasy values.
Adapt the table 'clearance.ods/xls/csv' containing clearance distances
Update the table (clearance.ods/xls/csv) in your KiCad project directory with voltage clearances defined by your requirements (e.g. standards).
The table contains the distances from a potential to another in ``mm``. The same net distance is optional.
.. image:: docs/source/figures/table.png
Run KiClearance again, to generate the final set of rules for KiCad
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Navigate to the project folder with the KiCad project and the clearance.ods/.xls/.csv file. Open a terminal and execute :
::
python -m kiclearance
Now a file ``yourprojectname.kicad_dru`` is generated, which contains the rule sets.
Open your KiCad project, the rule sets are now stored and you can start the routing.
As the inner layers are exposed to less dirt and no air, the distance in the inner layers can be set as optional with a scaling factor (defaults to 1).
If this factor is to be set differently, this can be set with the following command (in the example: inner distance to 75% of outer distance):
::
| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | Conn_01x02_Pin | Connector_PinHeader_1.27mm:PinHeader_1x02_P1.27mm_Horizontal | J1, J2, J3 |
| 1 | LED | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | NSL-32 | OptoDevice:Luna_NSL-32 | U2 |
| 1 | R | Resistor_SMD:R_0603_1608Metric | R1 |

byrantech/laptop
anyon_e, a highly integrated, high end, open source laptop. Attempt the impossible.


Jcparkyn/dpoint
Open-source digital stylus using camera tracking and inertial measurements

VoronDesign/Voron-Hardware
Cool Hardware designed by the Voron Design group

hoglet67/RGBtoHDMI
Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

hackclub/OnBoard
💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

Luos-io/luos_engine
Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

6 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the upb-lea/KiClearance repository on GitHub, at the commit this page was made from: the board is examples/clearance_example.kicad_pcb and its schematic examples/clearance_example.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask upb-lea before reusing the design.