I have some Adafruit boards that I would like to incorporate into a layout as if they were components. Is there a way to convert the board into a single, standalone footprint that I can assign to a custom component? Or do I have to create a footprint manually from the board’s dimensions?
I need the outline, mounting holes and connector positions. I’d have to edit the connectors, which are currently just through hole pads, to something else (e.g., pins), but I know how to do that.
I don’t know if there is a tool for that, but if you open a kicad_mod file and compare it with the kicad_pcb file you see that the information you want is similar…
fp_line vs gr_line
fp_text vs gr_text
fp_arc vs gr_arc
then you can create the footprint very easily with kicad StepUp
install kicad StepUp macro in FreeCAD
Load Board with kicad StepUp
with FC export the 2D projection to DXF
open modedit in pcbnew
crete a new module
import DXF
voila! you have your module in Front Silk
there you can add i.e. holes and other stuff for mechanical references and add the module to your board
But can I ask for somewhat deeper instructions on the “export from FreeCAD” step? I’m not familiar with FreeCAD.
I was able to import the board using the script. But when I try to export the DXF file, nothing gets produced (that’s even after I told FreeCAD it could download and install the libraries necessary to do the export).
I can export other formats (e.g., SVG). So I’m almost there, but apparently doing something wrong. Do I need to select/define a 2D projection of the model? If so, how do I do that?
you need to move the workbench from Part to Draft
then in Draft select the object and the Draft option in Menu “Shape 2D view”
then select the 2D object “Shape2DView” and export it to DXF
this is a result for a semi-complex board
Perfect! Thanx, maui! I now the drawing in a new module and can add the holes and stuff. I take it the process you outlined can’t pull those in as well?
Also, the drawing ended up on Dwgs.User, not F.SilkS. I don’t suppose that matters?
Then, if you want, you can associate the module with a 3D model, this time coming directly from the kicad_pcb board, converted to STEP and VRML with kicad StepUp