GithubHelp home page GithubHelp logo

osegermany / kicad-gen-tool Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 67 KB

Non-interactive scripts to help you generate (Gerber, drill, PNG) files out of KiCad (electronics) projects

License: GNU General Public License v3.0

Shell 42.91% Python 57.09%
pcb kicad gerber-files png-image-generate

kicad-gen-tool's Introduction

License: GPL-3.0-or-later REUSE status

DEPRECATION Warning

We recommend to use the formidable KiBot tool instead.

It can generate much more then just Gerbers and 2D renders of the PCBs.

Introduction

These are scripts to help you generate files out of KiCad (electronics) projects.

More specifically, it allows you to generate:

  • Gerber & drill files
  • PNG renders of the PCB (made from the Gerber & drill files)

Why should I use this?

If you host your KiCad based electronics designs in a git repo, you may be storing the generated files in the repo as well. That however, comes with the following drawbacks:

  • the repo size increases unnecessarily, especially with binary files like PNGs
  • when accessing the repo, one never knows if the generated files are really generated from the latest version of the sources

When able to auto-generate these files, one can do it in a CI job (available to every repo on GitHub and GitLab out of the box), and refer to the generated file on the projects pages site.

How does it work?

Install Prerequisites

  • BASH
  • git
  • Python
  • pcb-tools (a Python library)

on a regular Debian based Linux, you can install all of this with:

sudo apt-get install bash python3-pip
pip install pcb-tools

Get the tool

In the repo of your project in which you want to use this tool, which would be one that supports *.kicad_pcb files, you would do this to install this tool (in the project root dir):

pip install pcb-tools
mkdir -p doc-tools
git submodule add https://github.com/osegermany/kicad-pcb-generate-doc-tool.git doc-tools/kicad-pcb-generate

NOTE
There might be a tool to automate this in a more user friendly way, comparable to a package manager like Oh-My-ZSH or apt.

Run

This will generate the PCB derived artifacts for all KiCad PCBs in the repo:

doc-tools/kicad-pcb-generate/generate_sources
doc-tools/kicad-pcb-generate/generate_output

Output can be found under the build directory.

kicad-gen-tool's People

Contributors

hoijui avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.