Files
svg2stl/examples/CNC_mill_drill_from_gerber/Readme.md
2025-11-30 17:39:35 +01:00

29 lines
957 B
Markdown

## 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](https://github.com/pcb2gcode/pcb2gcode/wiki) for help.
```bash
nano millproject
```
Then run:
```bash
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.