Ein typisches Problem Wir hören von vielen neuen KICAD-Individuen mit Schaltplan sowie Footprint-Bibliotheken. Die Technik besteht darin, nur ein schematisches Sign sowie eine Footprint-Bibliothek mit jedem Projekt zu nutzen. Auf diese Weise wirken sich alle Änderungen an den Standardschematischen Bibliotheken nicht auf Ihr Projekt aus, und es ist einfach, Ihren Job mit anderen zu teilen, ohne es zu brechen. Ich habe lange Zeit damit verbracht, diese Methode zu verfeinern, und ich gehe mit dem Prozess in diesem Artikel.

Wir haben KICAD (sowie andere) Electronic Style Automation (EDA) -Tools mehrmals in der Vergangenheit abgedeckt. [Brian Benchoff] Hat eine ganze Reihe beim Aufbau eines Jobs von der Oberfläche von allen anderen EDA-Bündeln begonnen, die er an der Hände angeht. Keine CAD- oder EDA-Softwareanwendung ist perfekt, und ein Individuum muss herausfinden, um mit den Idiosynkrasern mit den Idiosynkrassierungen zu entdecken, von deren Programm, das sie verwenden möchten. Dies führt normalerweise zu einem viel Ziehzusammenhänge sowie Haare, die während der vorläufigen Stufen ziehen, wenn man nicht herausfinden kann.

Lesen Sie weiter, um die besten Methoden zu entdecken, um bei Verwendung von KICAD sowie in der Bibliotheksmanagement zu verwenden.

Projektmanagement

KICAD hält schematische Anzeichen sowie Elementfußabdrücke in separaten Bibliotheken sowie für Sie, um ein Zeichen auf einen Fußabdruck zu verknüpfen, der eine von mehreren unterschiedlichen Methoden verwendet. Dies bringt viel Leute ab, aber es funktioniert ziemlich gut, wenn Sie dazu genutzt werden.

In den alten Zeiten vor dem Computer würden viele Designer sehr zuerst ein schematisches Schematisches herausziehen und dann ein “Bill of Materials” erzeugen, in dem sie die Spezifikationen der zu verwendenden Elemente fleiden. Dies würde ihnen dann dabei unterstützen, die Elemente der Elemente auszuwählen, die zur Platinenkonstruktionsphase führen. KICAD versucht diesen Arbeitsablauf einzuhalten. Hier ist eine normale Ordnerstruktur, die ich nutze, um ein KICAD-Projekt zu organisieren, mit dem diese Methode in vielen Jahren mit der Software mit der Software zusammengestimmt ist.

Doodad
↳3D_Models // .step sowie .wrl-Designdaten für alle Fußabdrücke
↳Datenblätter // Datenblätter für Elemente verwendet
↳Gerber // Endgültige Produktionsdateien
↳Images // SVG-Bilder sowie 3D-Board-Rendern
↳Lib_sch // Schematische Symbole
↳Lib_fp.pretty // footprints.
↳PDF // Schematika, Plattenlayouts, Dimensionszeichnungen
Verwaltung von schematischen Bibliotheken

Wenn Sie eine schematische Verwendung von Anzeichen aus den integrierten Bibliotheken, die mit KICAD gebündelt wurden, zeichnen, erzeugt Eescha eine regionale Backup-Bibliothek – doodad-cache.lib. Wenn Sie fertig sind, kopieren Sie Ihr Schema, kopieren Sie diese Daten in den Ordner ↳lib_sch und benennen Sie ihn mit doodad.lib um.

Als Nächstes gehen Sie zu ↳Preferences↳component-Bibliotheken, wählen Sie “Aktuelle Durchsuchen-Pfadliste”, um auf Ihren regionalen Job-Ordner ~ / doodad / aufzuleiten Pop Up), sowie schließlich doodad.lib. Es wird unter der aktuell ausgewählten Bibliothek in der Liste hinzugefügt.

KICAD liest diese Bibliotheken in der sequentiellen Reihenfolge, sodass Sie doodad.lib entscheiden, und bringen Sie sie an die Spitze der Auflistung des Aufzählungsfelds. Wenn es ein Zeichen mit dem gleichen Namen in verschiedenen Bibliotheken gibt, wird das erste Beispiel davon verwendet. An diesem Punkt können Sie entweder alle anderen bereitgestellten Bibliotheken beseitigen oder einfach vernachlässigen, solange Sie sicherstellen, dass jedes Zeichen, das Sie verwenden, zu doodad.lib hinzugefügt werden, sowie nur von dieser Datei angerufen.

Ihr Job verwendet jetzt nur eine schematische Zeichenbibliothek – ~ / doodad / lib_sch / doodad.lib – sowie irgendeine Art von Änderungen an den standardmäßigen schematischen Bibliotheken wirken sich nicht auf Ihr Projekt aus. Unter Verwendung der obigen definierten Ordnerstruktur ist es außerdem einfach, Ihren Job auf GitHub zu teilen. Wenn Ihr Job klontiert oder heruntergeladen wird, stellt dies sicher, dass keine Bibliothekskonflikte vorhanden sind.

Alle oben genannten Änderungen, wenn KICAD S-Expression-Stile in Eescha sowie schematische Bibliotheken (bereits in PCBNEW implementiert) implementiert, werden wir diese damals erneut besucht.

Fußabdrücke zu den Symbolen zuweisen

Es gibt eine Reihe von Methoden, um dies zu tun, jedoch wähle Sie im Wesentlichen ein schematisches Symbol und benennen Sie einen Footprint von einem der Standardbibliotheken. In Erwägen, dass sich KICAD Footprint-Bibliotheken in Github umgab, war dies eine Ursache für Sodbrennen für viele. Für einen werden alle Bibliotheken online abgehalten, und KICAD muss sie nachschlagen, wann immer Sie es kündigen. Für diejenigen, die dieses Verhalten nicht ändern, verlangsamt es das Programm während des Startups, wenn Sie nicht mit dem Web verbunden sind. Auf den Internetbibliotheken sind ein großartiges Konzept, da die Fußabdrücke auf dem neuesten Stand sind. Es ist jedoch eine sichere Terminierungsmethode, um Ihre Stile zu brechen, muss einer der Fußabdrücke in Ihrer Stiländerung verwendet werden. Dies wird für Sie nicht sofort angezeigt, da Sie die Netzliste explizit erneut lesen müssen und KICAD T erhalteno replace altered footprints. however for somebody else who clones your design, as well as their KiCAD version tons up the updated footprint, it will break things.

The option is to clone all the KiCAD libraries to a regional place on your computer, as well as then point KiCAD to this location. however when you do this, it negates the advantage of having gain access to to updated libraries. I don’t believe there’s an suitable method to make it work, however here’s what works for me.

I clone the GitHub libraries to my regional computer, as well as keep them updated by routine pulls. This assists me utilize existing footprints or customize them to fit my requirements. however my job does not utilize any type of of those cloned libraries directly. Instead, I produce a job certain footprint library that contains all of the footprints (~/doodad/lib_fp.pretty) utilized in the project. when again, this makes sure that when the job gets cloned, all of the ideal footprints are already offered without depending upon outside source libraries.

How to Make KiCAD Footprints regional as well as Project-Unique

Start by cloning (from GitHub) the KiCAD footprint repository to your computer. This is finest done utilizing the ‘Footprint Libraries Wizard‘ from within PCBnew. In my case, I have cloned it to ~/kicad_sources/library-repos. In KiCAD’s PCBnew, choose ↳PREFERENCES ↳CONFIGURE paths as well as edit KISYSMOD to point to the regional footprint library path (~/kicad_sources/library-repos).

path to fp-lib-table
In some cases, extra steps may be needed to make things work. Select  ↳PREFERENCES ↳FOOTPRINT LIBRARIES MANAGER and figure out the place of the “fp-lib-table” data utilized by PCBnew. This is a text data that tells PCBnew where to look for footprint libraries – on Github, regional path etc. open this data in a text editor, as well as inspect if it utilizes KISYSMOD as the path. If not, do a browse as well as replace for all instances of present path as well as replace it with KISYSMOD.

Now, you can edit each schematic symbol, as well as add a footprint to it — either from within EESCHEMA, or utilizing the stand alone Cvpcb module. when all footprints have been assigned, make sure you re-generate the netlist before moving on to PCBnew.

MODE : footprint
You can now begin PCBnew as well as checked out the netlist, which dumps all the footprints in a stack on the canvas. choose the mode : footprint icon, then context-click on any type of ONE footprint, choose ↳Global spread as well as location ↳Spread out all footprints.

This spreads out all the footprints making it much easier to choose as well as step them around. when you’re made with your board layout, as well as all of your footprints are locked in, choose data ↳Archive Footprints↳Create library as well as Archive Footprints as well as supply the path/name to the .pretty folder in your job (~/doodad/lib_fp.pretty). This copies all the footprints utilized in your design to the target folder.

Then, Preferences↳Footprint Libraries Wizard↳Files on my computer↳(navigate to ~/doodad/lib_fp.pretty) as well as make sure you choose “To the present job Only” before hitting Finish. At this point, you have utilized footprints from KiCAD’s worldwide libraries as well as used them to schematic symbols, made a netlist, imported netlist in PCBnew, put the footprints as well as directed the board, made an archive of all the footprints used, as well as configured PCBnew to utilize that archive library.

Replace library paths
Next, return back to EESCHEMA, as well as edit the footprint association of each sign to point to the new lib_fp.pretty folder instead of the regional GitHub repository on your computer. The simplest method to do this is to open the .SCH data in a text editor as well as do a search/replace. In our present example, we will replace instances such as “Capacitors_ThroughHole” or “Resistors_ThroughHole” or “LEDs” with our regional job library folder “lib_fp”

Open the schematic one last time, save a fresh netlist, open PCBnew, checked out this netlist, however this time around choose the modification choice under exchange Footprint. Your board design will now be utilizing footprints saved in your lib_fp.pretty folder, as well as modifications to the KiCAD worldwide libraries will not impact the layout.

Einpacken

This may noise a bit convoluted in the beginning, however over time it becomes rather easy, as well as you can get rid of some steps as you get better. For example, I already have my own library for a lot of of the typical parts that I use, as well as copy these footprints before starting off on a new project. Over time, as you get much better at it, you will begin building your own schematic signs as well as footprints from element data sheets instead of utilizing outside versions. like I stated at the beginning, it’s not perfect, as well as for me this process works extremely well. If you have comments or tips on making this better, chime in as wellSo lass uns wissen.