This commit is contained in:
cpu
2025-11-30 17:37:13 +01:00
parent 1e81b19b05
commit 7c752054c5
3 changed files with 17 additions and 15 deletions

View File

@@ -1,17 +1,19 @@
## Exporting gcode files from KiCad
Adapt milling and drilling parameters in `millproject`:
Adapt milling and drilling parameters in `millproject`. Look up [pcb2gcode/wiki](https://github.com/pcb2gcode/pcb2gcode/wiki) for help.
```bash
nano millproject
```
Run the export by providing the .kicad_pcb file as a first argument:
Run the export by providing the `.kicad_pcb` file as a first argument:
```bash
chmod +x export.sh
./export.sh Step_Down_Carrier_Board.kicad_pcb
```
The script will generate gerber files in the `output` directory and then convert them into `ngc` format in the `gcode` directory.
Load the `ngc` file to `gSender` program for the fabrication.
The script will first generate gerber files in the `output` directory and then convert them into `ngc` format in the `gcode` directory.
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.

View File

@@ -1,20 +1,15 @@
## Exporting gcode files from gerber
Adapt milling and drilling parameters in `millproject`:
```bash
nano millproject
```
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 only B.Cu (bottom copper)
* Select B.Cu (bottom copper) and Edge_Cuts (board outlines)
* Click Plot
* Then Generate Drill Files → Generate
Adapt milling and drilling parameters in `millproject`:
Adapt milling and drilling parameters in `millproject`. Look up [pcb2gcode/wiki](https://github.com/pcb2gcode/pcb2gcode/wiki) for help.
```bash
nano millproject
```
@@ -25,6 +20,9 @@ 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 (must exist).
The `ngc` files for milling and drilling will be generated in the `gcode` directory (create it if it does not exist first).
Load the `ngc` file to `gSender` program for the fabrication.
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.