Skip to main content

Generate clearance rules for KiCAD by a table.

Project description

This Python program converts a given table of voltage distances into KiCad design rules.

docs/source/figures/overview.png

1 Installation

Install KiClearance directly from pyPI:

pip install kiclearance

2 Usage

Create a table (clearance.ods/xls/csv) in your KiCad project directory with voltage clearances defined by your requirements (e.g. standards). Use this template as a guide: clearance.ods.

Add the net classes to each connection in the circuit diagram.

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

docs/source/figures/board_setup.png

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.

3 Example

A complete example can be found here.

4 Documentation

Find the documentation here.

5 Troubleshooting

This program has so far been tested only on linux.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kiclearance-0.0.2.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

kiclearance-0.0.2-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page