Code Monkey home page Code Monkey logo

kicad-libraries's Introduction

Misc/Assorted collection of KiCad libraries

This repo contains a mix of KiCad libraries that I've created or modified.

I got tired of copy/pasting the same footprints over and over again so I decided to put them in a repo with the intent of using this repo as a sub-module in other project repos since KiCad doesn't have good support for sharing footprints between projects with version control.

Warning There is absolutely zero guarantee that these footprints are correct. I've done my best to make sure they are correct but I'm not perfect. If you find a mistake, please open an issue or submit a pull request.

USE AT YOUR OWN RISK

Using with KiCad

Tl;DR: git submodule add -- X relativePathHere

Let's say you have a project repo structured like this:

.
├── readme.md
├── components/
│   └── someSensor/
│       └── datasheet.pdf
├── mCad/
│   ├── pcb-outline.dxf
│   ├── enclosure.step
│   └── enclosure.3mf
└── eCad/
    ├── exports/
    │   └── prod.gerber.zip
    ├── projectName/
    │   ├── projectName.kicad_sch
    │   └── projectName.kicad_pcb
    └── libraries/
        ├── projectName
        └── external

And you wanted to add this repo as a sub-module in eCad/libraries/external directory:

❯ git submodule add -- https://github.com/kquinsland/kicad-libraries eCAD/libraries/external
Cloning into '.../eCAD/libraries/external'...
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 21 (delta 3), reused 21 (delta 3), pack-reused 0
Receiving objects: 100% (21/21), 216.10 KiB | 64.00 KiB/s, done.
Resolving deltas: 100% (3/3), done.
❯ git status
On branch main
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   .gitmodules
        new file:   eCAD/libraries/external

Commit the .gitmodules to the project repo and then add the $projectRoot/eCad/libraries/external/$specificLibrary directory to the KiCad library/footprint tables.

The reason for doing the git submodule + "project specific" path instead of the "Global Libraries" is I can version control the sub module.

KiCad - as far as I know - does NOT support version control for global libraries.

TODO

Would be nice to GHA CI/CD to automatically generate images of the footprints and add them to the readme.

kicad-libraries's People

Contributors

kquinsland avatar

Watchers

 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.