Skip to content

sujitth/kicad-schlib

 
 

Repository files navigation

kicad-schlib

(Warning: work in progress!)

These are my KiCad schematic libraries, meant to be used with my PCB libraries:

https://github.com/cpavlina/kicad-pcblib

For preview renders, look here:

https://github.com/cpavlina/kicad-schlib-preview

Using these libraries

This repository includes a script to create a KiCad project, at create_project.sh, to be called like this:

create_project.sh  project_name

It will:

  1. Create a directory called project_name
  2. git init if not already in a git repository
  3. Add cpavlina/kicad-schlib and cpavlina/kicad-pcblib as submodules, shallow-cloned to save space
  4. Create the basic project files with all the libraries preloaded

The script doesn't depend on any other files in the repository, so you can download and run only the script itself without having to clone the repository yourself.

Why submodules?

Yeah, I know a lot of people don't like submods, but I find them just about perfect for this application, for the following very important (IMHO) reason:

Submodules link to a specific commit. This is important when building a PCB. KiCad does not version libraries, so without doing this, the libraries could update underneath your project and introduce unnoticed errors. Using submodules ties your project to the parts you initially started using, and if you want to update (and have the time to review changes and make sure there are no errors), you can do this manually.

When cloning a project using submodules, it is normally required to use git clone --recursive; note that because KiCad cache the library parts that have actually been used, a project will still be readable if the libraries aren't also cloned (and can be distributed without them for reference purposes).

About

Alternative KiCad schematic library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.0%
  • Shell 6.9%
  • Makefile 2.1%