KiCad: importing libraries

Add component libraries to KiCad

KiCad: importing libraries

Learn how to import symbol and footprint libraries into KiCad, in particular the Makerspace Amiens library, which lists the components available in stock.

Duration :
Difficulty :

Machines/Tools:

Documentation completed: 100% 100
Created by:  Alban Petit

Introduction

KiCad organises its components in two complementary types of libraries:

  • Symbol libraries (.kicad_sym): the schematic representations of components, used in Eeschema
  • Footprint libraries (.pretty folders containing .kicad_mod files): the PCB footprints used in Pcbnew

Makerspace Amiens maintains a KiCad library listing all the components available in stock. By adding it to your KiCad project, you have direct access to these components when designing your schematics and PCBs.


Downloading the library

Step 1: Download the ZIP archive

Go to the GitHub repository of the library:

https://github.com/Makerspace-Amiens/kicad-library

  1. Click the Code button (green button at the top right)
  2. Select Download ZIP
  3. Extract the archive into a folder of your project or to an easily accessible location

Structure of the library

Once extracted, the library contains:

  • A .kicad_sym file: the symbol library (schematic components)
  • A .pretty folder: the PCB footprint library
  • A 3dmodels folder (optional): the 3D models of the components

Note the full path of the folder; you will need it for the next steps.


Importing the symbol library

Step 1: Open the symbol library manager

In KiCad, open your project, then start Eeschema. Go to:

Preferences > Manage Symbol Libraries…

The library management window opens with two tabs:

  • Global Libraries: available for all your projects
  • Project Specific Libraries: only for the current project

Select the Project Specific Libraries tab.

Step 2: Add the symbol library

In the Project Specific Libraries tab:

  1. Click the Add existing library icon (folder symbol)
  2. Browse to the extracted folder
  3. Select the .kicad_sym file of the Makerspace library
  4. The library appears in the list with a Nickname (short name) and its path
  5. You can rename the nickname to Makerspace-Amiens to find it easily
  6. Click OK to confirm

Importing the footprint library

Step 1: Open the footprint library manager

In KiCad, open Pcbnew or the footprint editor. Go to:

Preferences > Manage Footprint Libraries…

The window works the same way as for symbols. Select the Project Specific Libraries tab.

Step 2: Add the footprint library

In the Project Specific Libraries tab:

  1. Click the Add existing library icon (folder with a +)
  2. Browse to the extracted folder of the library
  3. Select the .pretty folder (not an individual file)
  4. The library is added with its nickname
  5. Rename the nickname to Makerspace-Amiens for consistency with the symbol library
  6. Click OK to confirm

Checking the import

Step 1: Check the symbol library

In Eeschema, press A to open the add component window. In the search bar, type Makerspace or the name of a component in stock.

The components of the Makerspace Amiens library should appear in the list, prefixed with the name of the library (Makerspace-Amiens:ComponentName).

Step 2: Check the footprint library

In Pcbnew, open the footprint editor or add a footprint from the menu. Search for Makerspace in the search bar.

The footprints of the Makerspace Amiens library should be listed and previewed correctly.

  Library updated?

If the library is updated on GitHub (new components in stock), download the ZIP again and replace the extracted folder. KiCad picks up the changes the next time it starts.

Need help?