Skip to content

currentmakers/kicad-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KiCAD Tools

create-prod-files.sh

It will create all the needed production files for PCB manufacturing and PCB assembly, primarily focused on JLCPCB. Each Revision is generated in full, inside the revision directory, and is expected to be committed to Git, perhaps with the exception of the Gerber and Drill files, which exists inside a Zip file. Set that up with .gitignore if those files shouldn't be committed to Git.

  • Expectations;

    • Revisions are "A", "B", "C" or "A1", "B1", "B2" or similar.
    • Executions has the KiCAD project directory as $PWD/$CWD
    • The name of the directory is the same name as the KiCAD project files.
  • Extracts the Revision a "Text Variable" named "REVISION" from the project file.

  • Sets the "Date" field to current date in both Schematics and PCB page settings.

  • Create a directory named "rev_${REVISION}", and store all generated outputs in that directory.

  • Generate the Gerber and Drill files.

  • Zip the Gerber and Drill files.

  • Generate a component placement file, (only Top side). CSV format is for JLCPCB.

  • Generate BOM.csv

  • Generate SVGs

    • One SVG per sheet
  • Generate PDFs

    • Schematics
    • PCB with outer layers only, useful for manufacturing.
    • PCB with all "useful" layers, i.e. remove Fab, Courtyard, Margin, User-ECO*, User_Comment and Adhesive.
  • (Optional) Generate 3D model (STEP or GLB/GLTF). Put "GEN_3D" as an argument with either "STEP" or "GLB" as the value, example GEN_3D=GLB create-prod-files.sh

About

Tools being used together with KiCAD

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages