Files
svg2stl/examples/CNC_mill_drill_from_gerber

Exporting gcode files from gerber

First, generate gerber files. These are the same used to order from a vendor. There are no specific settings, just:

KiCad PCB Editor → File → Fabrication Outputs → Gerbers

  • Set "Output directory" to "gerbers/"
  • Select B.Cu (bottom copper) and Edge_Cuts (board outlines)
  • Click Plot
  • Then Generate Drill Files → Generate

Adapt milling and drilling parameters in millproject. Look up pcb2gcode/wiki for help.

nano millproject

Then run:

docker run --rm -i -t -v ".:/data" ptodorov/pcb2gcode

The ngc files for milling and drilling will be generated in the gcode directory (create it if it does not exist first).

Launch the gSender program.

  • Load the drill.ngc file for drilling holes.
  • Load the outline.ngc file for milling the board outlines.
  • Load the back.ngc file if you want to mill the isolation traces.