Open Pcb File Kicad

  • .pro: project file. Holds parameters that apply to the entire project (schematic and PCB layout).

  • .sch: legacy schematic file.

  • .kicad_sch: the new schematic layout file.

  • .lib: schematic symbols library file.

    • -cache.lib: …​ a local copy of all the symbols used in the corresponding schematic, so that when the folder containing a KiCad project is copied to a different PC, the schematic can still be opened and printed and will still look the same as the original draughtsperson intended - even if that other PC does not have those symbols in its main libraries (or has symbols that coincidentally have the same name but are completely different).

    • -rescue.lib: …​ copies of conflicting/missing schematic symbols.

  • .mod: legacy footprint module file (Obsolete, can only be read).

  • .pretty: footprint library folders. The folder itself is the library.

  • .kicad_mod: footprint files, containing one footprint description each.

  • .000: * temporary file.

  • .bak: backup of schematic file.

  • .brd: legacy PCB layout file.

  • .kicad_pcb: the new PCB layout file.

    • -save.kicad_pcb: …​ backup of the PCB Layout file.

  • .cmp: deprecated parts-to-module assignments file. Footprint informations are now saved in the .sch files.

  • .csv: commonly used when exporting BOM file.

  • .dcm: holds descriptions, aliases and keywords for library symbols.

  • .bck: backup file for the symbol editor of the .dcm file.

  • .net: *: netlist in 'Pcbnew'; format …​ can be regenerated by viewing the schematic file and clicking the 'Netlist generation' button.

  • fp-info-cache: *: Footprint info cache: cache of information (description, datasheet URL, etc.) for all footprints used by the board.

  • fp-lib-table: Footprint library list (footprint libraries table): list of footprint libraries (various formats) which are loaded by the board or the footprint editor or CvPcb.

  • sym-lib-table: Symbol library list (symbol libraries table): list of symbol libraries which are loaded by the schematic editor.

  • drc-rules: S-expression file containing design rule checking constraints. Introduced in v6.

  • .kicad_wks: The page layout description files, for people who want a worksheet with a custom look.

  • .rpt: report file, for documentation.

  • .gbr: Gerber output files for manufacturing.

  • .drl: Gerber drill file for manufacturing.

  • .pos: position files (ASCII format), for automatic insertion machines.

  • .wrl: VRML 3D model used in the 3D viewer to represent parts.

  • .step or .stp: STEP 3D model used for integration with MCAD software packages. KiCad supports STEP file integration and can export board and component models into an integrated STEP file.

English • ‎français • ‎hrvatski • ‎italiano
KicadStepUp External workbench icon

Kicad Flex Pcb

Support files for the 2020 Remoticon KiCad to Blender PCB renders workshop. CERN Open Hardware Licence v1.2.

  • Open your.kicadpcb file After opening your Kicad project.pro file, you can double click the.kicadpcb file or click the “PCBNew” button to open your PCB editor. Plot your Kicad PCB as Gerber files.
  • KiCad can create all the files necessary for building printed boards, Gerber files for photo-plotters, drilling files, component location files and a lot more. Being open source (GPL licensed), it represents the ideal tool for projects oriented towards the creation of electronic hardware with an open-source flavour.

Introduction

  • 5Usage

Kicad StepUp Workbench is aimed at helping both KiCad and FreeCAD users in collaborating with electrical (ECAD) and mechanical (MCAD) design.

Background

Kicad Pcb Org

Kicad (website) is an Open Source Electronics Design Automation Suite. It allows to design an electric circuit and create a single or multilayer circuit board using an extensive library of parts. The great thing is that using FreeCAD and KicadStepUp Workbench is official Kicad way to create 3D parts for electrical components for Kicad. The libraries are hosted here, so everyone can create and check in parts.

KiCADs GUI philosophy is a bit different compared to FreeCAD, expecially when it comes down to create elements and move them around. However, since Kicad is being used in production for years there is an excellent documentation, e.g. a very goog 'Getting Started' document. Additionally each tool has its own manual.

Kicad Pcb Tutorial

If one does not know Kicad yet, its recommended to complete a stand-alone PCB according to the Getting Started Guide to understand the concepts involved. Although some topics like adding new schematics and footprints to a local library seem to be of little interet for the beginner, in practice they are often encountered quickly after starting a serious project.

For all these Kicad concepts one can find a feature of some sort in the KicadStepUp workbench. So knowing those makes it a lot easier to understand how to use this workbench.

Features

In progress

  • Load kicad board and parts in FreeCAD and export it to STEP (or IGES) for a full ECAD MCAD collaboration
  • Load kicad_mod footprint in FreeCAD to easy and precisely align the mechanical model to kicad footprint
  • Convert the STEP 3D model of parts, board, enclosure to VRML with Materials properties for the best use in kicad
  • Check interference and collisions for enclosure and footprint design
  • Design a new pcb Edge with FreeCAD Sketcher and PUSH it to an existing kicad_pcb Board
  • PULL a pcb Edge from a kicad_pcb Board, edit it in FC Sketcher and PUSH it back to kicad
  • Design a new footprint in FreeCAD to get the power of Sketch in footprints
  • Generate Blender compatible VRML files


Installation

KicadStepUp is part of the external workbenches, and can be automatically installed using the FreeCAD Add-on Manager which comes bundled with FreeCAD 0.17, under the Tools → Add-On Manager menu.

Usage

In progress

General Approach

The basic idea of KicadStepUp is to synchronise data between the two applications. For home use you might have open FreeCAD and Kicad at the same time. Professional use work on the same files (e.g. on a central server) and have specialists on mechanical CAD (MCAD) working in FreeCAD and electronics experts on electrical CAD (ECAD).

KicadStepUp will converts standard FreeCAD files to Kicad files and vise versa. That way each application can work with its native data files. Projects can be used without the other application or KicadStepUp installed. That also the reason, that no plugin on the Kicad side is required.

Undestanding the fine details of the workflow its helpful to note that the differences between the two programs impose some difficulties for a full data exchange.
One example is that the Sketcher used in Kicad to define the board outline is much more limited compared to the FreeCAD Sketcher, so in order to synchronise back and forth the model content can not be more complex than the Kicad Sketcher can handle. From a FreeCAD point of view, that means you may loose data. KicadStepUp offers workarounds that might be more difficult to understand if you do not have this background.

Basic Workflow

A a collaboration can be started with a new or an existing project. We consider here a new project to keep things simple:

  1. Create a new Kicad Project anywhere you like. Lets name it 'KsuTest'
  2. Open the PCB Editor and create on the layer 'Edit.Cuts' a closed outline. Shape does not matter, we will overwrite it anyway.
  3. Create a new FreeCAD file for the PCB, the name does not matter. *
  4. Create a sketch with an outline of the desired PCB. Lets name it 'pcb design' (but could be any other name) and put at least one circle into it for a hole.
    you may use any FreeCAD features to include holes, cutouts and outer shape to other components you might have. We assume here you would use Sketcher features as Dimensioning, Constraints and Work geometry in your sketch.
    If you are using PartDesign WB for creating the sketch there is no need to create a PartDesign body, since we are not going to pad this sketch.
  5. Switch to the KicadStepUp Workbech
  6. Select the 'pcb design' sketch
  7. Select the Toolbar button 'Push Sketch to PCB Edge' or the menu ksu PushPull/ksu Push Sketch to PCB
    • first a dialog will open with defaults 'Edge.Cuts' for layer and '0.16' for line width. Keep those defaults.
    • next a file dialog will open. Click to your Kicad 'KsuTest' project, where you should see a file 'KsuTest.kucad_pcb'. That is the PCB file with the temporary outline we created before. Select is and confirm to replace the old file.
      Now a dialog should say 'new Edge pushed to kicad board!'
      if you forgot the 2nd step, you the push operation might fail as a pcb file must exist and it must not be empty.
  8. Cloase and re-open the PCB Editor in Kicad. **
    The shape from the FreeCAD sketch should appear.
  9. go over the circle with the mouse and press m on the keyboard to move the circle. Click to place to another position. Press the save toolbar button on the top left.
  10. Switch to FreeCAD and select in the KicadStepUp Workbech the tool button 'Pull Sketch from PCB' or the menu ksu PushPull/ksu Pull Sketch from PCB
    • first dialog with default layer 'Edge.Cuts' and three choices will open. Select choice 'replace PCB and Sketch in current document' ***
    • next a file dialog should show again the file 'KsuTest.kucad_pcb'. Select it and press Open
      You should see your PCB as 3D model. Note that the hole has moved compared to you 'pcb design' sketch.
      In the tree appears a new structure with a yellow Part Container with the Kicad Filename and within another Part Container with 'Board_Geoms_e63b' (the part with the number probably different). In the second container there are the following three files. Do not change any names in that structure, because KicadStepUp uses them to find the parts to update.
      Do not forget to save your file

Try to make another PushPull round trip: adjust you 'pcb design' sketch to the changes from Kicad, add some other change and start again. Do that a few times to appreciate how quickly and naturally this procedure becomes in a very short time.

Now you can use the new 3D PCB file to align 3D components as connectors, buttons, switches, fasteners, etc. or add this to your assembly if you have a larger project.

This only shows the very basic way KicadStepUp works. Your are still missing a lot at this point, e.g. footprints and 3D parts. But from there its a lot easier to start exploring KicadStepUp on your own. Use the documentation PDF file in the menu ksu Tools/Demo


PcbNotes:
  • As long as the name of the created strucure (and its parts) is unchanged any workflow interactions will just update the structure. If you change any names, a new structure will be created each time.
  • It is not required to have Kicad running to update Kicad project files. Actually, Kicad does not even have to be installed on the PC.
  • The standard approach is to use the same sketch on both sides Kicad and Freecad. Any changes will be synchronized to the other application. This is the most natural and clean way to work with KicadStepUp
    However, this causes a problem if you want to use any of the following features in your sketch definting you PCB shape: dimensions, geometry constraints, work geometry (blue lines) or external linked geometry. There is no clean way to do this, because Kicad does not know any of the features. That means that on the round trip between the applications any of those features will be deleted. There is not real solution for that problem, just a selection of one of several workarounds. So if you want to use any of those features that means you define the PCB shape in FreeCAD only and sync in one way to Kicad. Any outline changes done in Kicad need to be added manually on the FreeCAD side. This might make sense, e.g. if future changes from the mechanical side are much more likely than from the electrical side. There several ways to do it
    • Put the design sketch inside the KicadStepUp structure, an select 'replace PCB and keep Sketch in curr. doc' every time you import back from Kicad.
    • Keep the design sketch outside the KicadStepUp structure. Ignore the sketch imported from Kicad.
The second choice has the advantag that changes in Kicad can be traced to the original sketch and the FreeCAD sketch is protected against an accidently wrong import choice. The described workflow uses this approach to make sure the issue is well understood. From there its easy to switch to modifying the KicadStepUp supplied sketch with none of the more advanced FreeCAD features.
  • To use KicadStepUp with a FreeCAD assembly (> V0.19) you could add a new file for the PCB. After the workflow above has been run once add the 3D object for the PCB to your assembly like any other mechanical part. Make sure you save the file when it was updated by KicadStepUp (KicadStepUp writes to FreeCAD memory not to FreeCAD files).

Kicad File Types


Please see the kicad StepUp cheat sheet for the other features.

Kicad Pcb Project Download

References

  • Author: Github: @easyw | FreeCAD Forums: kicad StepUp: ECAD MCAD bidirectional collaboration
  • Source code on GitHub: https://github.com/easyw/kicadStepUpMod

Side Note about External workbenches

FreeCAD workbenches are easy to program in Python, there are therefore many people developing additional workbenches outside of the FreeCAD main developers.

Kicad Pcb Design Tutorial Pdf

The external workbenches page has some information and tutorials on some of them, and the FreeCAD Addons project aims at gathering them and making them easily installable from within FreeCAD.

New workbenches are in development, stay tuned!

User documentation
  • Installation:Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
  • Basics:About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties; Help FreeCAD, Donate
  • Help:Tutorials, Video tutorials
  • Workbenches:Std Base; Arch, Draft, FEM, Image, Inspection, Mesh, OpenSCAD, Part, PartDesign, Path, Points, Raytracing, Reverse Engineering, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
  • Deprecated or unmaintained workbenches:Complete, Drawing, Robot
  • Addons:Addon Manager, External workbenches, Scripting and macros
  • Hubs:User hub, Power users hub, Developer hub

Kicad Pcb Software

Retrieved from 'http://wiki.freecadweb.org/index.php?title=KicadStepUp_Workbench&oldid=785279'