One typical problem we hear from a lot of new KiCAD individuals associates with schematic as well as footprint libraries. The technique is to utilize just one schematic sign as well as footprint library each with your project. This way any modifications to the default schematic libraries will not impact your project and it will be simple to share your job with others without breaking it. I’ve spent a long time refining this method as well as I’ll walk you with the process in this article.
We have covered KiCAD (as well as other) electronic style Automation (EDA) tools a number of times in the past. [Brian Benchoff] did a whole series on building a job from begin to surface utilizing all the different EDA bundles he might lay his hands on. No CAD or EDA software application is perfect, as well as a individual has to discover to get to grips with the idiosyncrasies of whichever program they choose to use. This normally leads to a great deal of cussing as well as hair pulling during the preliminary stages when one can’t figure out “How the hell do I do that?”, particularly from new converts who are utilized to doing things differently.
Read on to discover the very best methods to utilize when utilizing KiCAD as well as its library management.
Projektmenedzsment
KiCAD keeps schematic signs as well as element footprints in separate libraries as well as you requirement to link a sign to a footprint utilizing one of a number of different methods. This puts off a great deal of folks, however it works rather well when you get utilized to it.
In the old days before computers, a lot of designers would very first swiftly draw out a schematic, then produce a “bill of materials” where they flesh out the specs of the elements to be used. This would then assist them to select the element footprints, leading to the board design phase. KiCAD tries to comply with this work-flow. Here’s a normal folder structure I utilize to organize a KiCAD project, having fine-tuned this method over lots of years of working with the software.
doodad
↳3d_models // .STEP as well as .WRL design data for all footprints
↳datasheets // data sheets for elements used
↳gerber // final production files
↳images // SVG pictures as well as 3D board renders
↳lib_sch // schematic symbols
↳lib_fp.pretty // footprints
↳pdf // schematics, board layouts, dimension drawings
Managing Schematic Libraries
When you draw a schematic utilizing signs from the built-in libraries bundled with KiCAD, EESCHEMA produces a regional backup library — doodad-cache.lib. when you’re done drawing your schematic, copy this data to the ↳lib_sch folder and rename it to doodad.lib.
Next, go to ↳PREFERENCES↳Component Libraries , choose “CURRENT browse path LIST” to point to your regional job folder ~/doodad/, click the add button at the top of the appear window (NOT the add button in the middle of the pop up), as well as lastly choose doodad.lib. It gets added below the currently chosen library in the list.
KiCAD reads these libraries in sequential order, so you requirement to choose doodad.lib as well as bring it to the top of the listing utilizing the UP button. If there’s a sign with the exact same name in different libraries, then the very first instance of it gets used. At this point, you can either eliminate all the other provided libraries, or just neglect them as long as you make sure that every sign you utilize gets added to doodad.lib as well as get’s called only from that file.
Your job now utilizes just one schematic sign library — ~/doodad/lib_sch/doodad.lib — as well as any type of modifications to the default schematic libraries will not impact your project. Moreover, utilizing the above defined folder structure, it’s simple to share your job on GitHub. When your job gets cloned or downloaded, this makes sure there are no library conflicts.
All of the above may modification when KiCAD implements s-expression styles in EESCHEMA as well as schematic libraries (already implemented in PCBnew), so we’ll revisit this at that time.
Assigning Footprints to Symbols
There’s a number of methods of doing this, however essentially, you choose a schematic symbol, as well as designate it a footprint from one of the default libraries. ever considering that KiCAD moved footprint libraries to GitHub, this has been a cause of heartburn for many. For one, all libraries are held online, as well as KiCAD needs to look them up whenever you terminate it up. For those who don’t modification this behaviour, it slows down the program during startup, if you’re not linked to the web. on the internet libraries are a great concept since footprints stay updated, however it is a sure terminate method to break your styles must one of the footprints utilized in your style change. This won’t show up for you immediately, since you will have to explicitly re-read the net-list as well as get KiCAD to Cserélje ki a megváltozott lábnyomokat. Azonban valaki másnak, aki klónozza a designot, valamint a Kicad verzióját, tonna a frissített lábnyomot, megszakítja a dolgokat.
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. Azonban, ha ezt megteszi, elutasítja azt az előnyt, hogy hozzáférést kap a frissített könyvtárakhoz. Nem hiszem, hogy van egy megfelelő módszer, hogy működjön, de itt működik nekem.
Én klónozom a Github könyvtárakat a regionális számítógépemre, valamint a rutin húzók által frissítem őket. Ez segíti a meglévő lábnyomokat, vagy testreszabhatja őket, hogy megfeleljen a követelményeknek. Azonban a munkám nem használ fel közvetlenül a klónozott könyvtárak bármilyen típusát. 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.
Hogyan készítsünk a Kicad Footprints Regionális és a projekt-egyedülállóvá
Kezdje a klónozással (a Github-tól) a Kicad Footprint tárhelyet a számítógéphez. This is finest done utilizing the ‘Footprint Libraries Wizard‘ from within PCBnew. Az én esetemben klónoztam ~ / kicad_sources / könyvtár-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).
Útvonal az FP-LIB-asztalhoz
Bizonyos esetekben extra lépésekre lehet szükség a dolgok munkájához. Válassza a ↳Preferences ↳Footprint könyvtárak menedzserét, és tegye ki a PCBNEW által használt “FP-LIB-tábla” adatokat. Ez egy olyan szöveges adat, amely PCBNEW-t mond, hogy hol keressen a lábnyom könyvtárakat – a Github, a regionális útra stb. Nyissa meg ezeket az adatokat egy szövegszerkesztőben, valamint ellenőrizze, hogy a Kisysmodot az útként használja. Ha nem, tegyen egy keresetet, és cserélje ki a jelen útvonal minden példányát, valamint cserélje ki a Kisysmod-szal.
Most szerkesztheti az egyes vázlatos szimbólumokat, valamint hozzáadhat egy lábnyomot – akár az Eeschema-ból, sem az önálló CVPCB modul használatával. when all footprints have been assigned, make sure you re-generate the netlist before moving on to PCBnew.
Mode: Footprint
Most megkezdheti a PCBNEW-t, valamint ellenőrizte a netlistát, amely a vászonban lévő összes lábnyomot eldobja. 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.
Ez elterjeszti az összes lábnyomot, ami sokkal könnyebb választani, valamint a lépést. Ha a tábla elrendezésével készül, valamint az összes lábnyom zárolva van, válassza az Adatok ↳Archive Footprints↳Create könyvtár, valamint az archív lábnyomok, valamint az útvonal / név a. (~ / doodad / lib_fp.pretty). Ez másolja az összes lábnyomot a tervezésben a cél mappába.
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 jól konfigurált PCBNEW, hogy kihasználja az archívum könyvtárat.
Cserélje ki a könyvtári útvonalakat
Ezután térjen vissza az Eeschema-ra, és szerkessze az egyes jelek lábnyomos társulását, hogy pontot mutat az új lib_fp.pretty mappára a számítógépen lévő regionális github tároló helyett. 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”
Nyissa meg a vázlatot egy utolsó alkalommal, mentse meg a friss netlist, nyitott PCBNEW, ELLENŐRIZZE EZT NETList, azonban ezúttal a Módosítási választás helyett a csere lábnyom alatt válassza ki. A tábla kialakítása most a Lib_fp.Pretty mappába mentett lábnyomokat használva, valamint a Kicad világméretű könyvtárak módosításai nem befolyásolják az elrendezést.
Csomagolás
Ez a kezdetben egy kicsit zavaros lehet, de idővel meglehetősen könnyű lesz, és megszabadulhat néhány lépésre, amikor jobb lesz. 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. Idővel, ahogy sokkal jobb, akkor elkezdi építeni saját vázlatos jeleit, valamint a lábnyomokat az Element adatlapok helyett, ahelyett, hogy külső verziókat használna. Mint az elején kijelentettem, ez nem tökéletes, és számomra ez a folyamat rendkívül jól működik. Ha észrevételeid vannak, vagy tippek, hogy ezt jobban megcsináljuk, szinténAhogy tudassa velünk.