From c20a67574505769aa236058a6076b7315b3d0f56 Mon Sep 17 00:00:00 2001 From: ollo Date: Fri, 7 Dec 2018 21:03:54 +0100 Subject: [PATCH] Generating of board --- board/gerber/.gitignore | 4 ++++ board/gerber/generatePCB.sh | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 board/gerber/.gitignore create mode 100755 board/gerber/generatePCB.sh diff --git a/board/gerber/.gitignore b/board/gerber/.gitignore new file mode 100644 index 0000000..2acaaf4 --- /dev/null +++ b/board/gerber/.gitignore @@ -0,0 +1,4 @@ +*.gbr +*.drl +*.ngc +*.png diff --git a/board/gerber/generatePCB.sh b/board/gerber/generatePCB.sh new file mode 100755 index 0000000..3019b70 --- /dev/null +++ b/board/gerber/generatePCB.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# Needs the tool pcb2gcode +# Was documented at: http://marcuswolschon.blogspot.de/2013/02/milling-pcbs-using-gerber2gcode.html + +MILLSPEED=600 +MILLFEED=200 +PROJECT=LEDatmega +pcb2gcode --front $PROJECT-F.Cu.gbr --back $PROJECT-B.Cu.gbr --metric --zsafe 5 --zchange 10 --zwork -0.01 --offset 0.02 --mill-feed $MILLFEED --mill-speed $MILLSPEED --drill $PROJECT.drl --zdrill -2.5 --drill-feed $MILLFEED --drill-speed $MILLSPEED --basename $PROJECT