Last active
July 3, 2018 06:11
-
-
Save xunker/21a7ab6769f463893639fb43ada1158b to your computer and use it in GitHub Desktop.
pcb2code for Fritzing RS-274x files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# IMPORTANT: Need to use pcb2gcode from git head, not the 2-year-old vesion 1.3.2 from homebrew or apt-get | |
# On Macos: brew install --HEAD pcb2gcode | |
# FILE_PREFIX="595 shift register demo" | |
# FILE_PREFIX="tp4056 charger carrier with ground copy" | |
# FILE_PREFIX="Sparkfun Moto_Bit hardware pull PTH" | |
# FILE_PREFIX="3.3v regulator" | |
FILE_PREFIX="3.3v regulator double sided" | |
BACK_FILE=$FILE_PREFIX"_copperBottom.gbl" | |
# BACK_FILE=$FILE_PREFIX"_maskBottom.gbs" | |
# BACK_FILE=$FILE_PREFIX"_silkBottom.gbo" | |
# FRONT_FILE=$FILE_PREFIX"_silkTop.gto" | |
FRONT_FILE=$FILE_PREFIX"_copperTop.gtl" | |
DRILL_FILE=$FILE_PREFIX"_drill.txt" | |
OUTLINE_FILE=$FILE_PREFIX"_contour.gm1" | |
SILK_TOP=$FILE_PREFIX"_silkTop.gto" | |
SILK_BOTTOM=$FILE_PREFIX"_silkBottom.gbo" | |
MASK_TOP=$FILE_PREFIX"_maskTop.gts" | |
MASK_BOTTOM=$FILE_PREFIX"_maskBottom.gbs" | |
OFFSET="0.1mm" | |
# OFFSET="0.5mm" | |
# PASSES=5 | |
PASSES=0 | |
# PASSES=1 | |
SPEED="60mm/min" | |
VERT_SPEED="60mm/min" | |
pcb2gcode \ | |
--nog64 1 \ | |
--nog91-1 1 \ | |
--nog81 1 \ | |
--onedrill 1 \ | |
--metricoutput 1 \ | |
--back "$BACK_FILE" \ | |
--front "$FRONT_FILE" \ | |
--drill "$DRILL_FILE" \ | |
--outline "$OUTLINE_FILE" \ | |
--zwork -0.2mm \ | |
--zsafe 2mm \ | |
--extra-passes $PASSES \ | |
--mill-feed $SPEED \ | |
--mill-vertfeed $VERT_SPEED \ | |
--mill-speed 1000 \ | |
--cut-feed 30mm/min \ | |
--cut-vertfeed $VERT_SPEED \ | |
--cut-speed 1000 \ | |
--cut-infeed 0.1mm \ | |
--zcut -2.0mm \ | |
--zdrill -2.0mm \ | |
--drill-feed $SPEED \ | |
--drill-speed 1000 \ | |
--zchange 3mm \ | |
--offset $OFFSET \ | |
--cutter-diameter 1.5mm \ | |
--mirror-axis 0 \ | |
--mirror-absolute 1 \ | |
--zero-start 0 \ | |
--vectorial 0 \ | |
--voronoi 0 \ | |
--optimise \ | |
--eulerian-paths |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment