led-boards: Add generated G-code, minor zone optimizations

This commit is contained in:
jonny 2024-11-17 17:32:32 +01:00
parent 767fa1c9b3
commit f845fa1796
15 changed files with 103052 additions and 2789 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -22,10 +22,10 @@
"lockedItems": false,
"otherItems": false,
"pads": false,
"text": false,
"text": true,
"tracks": false,
"vias": false,
"zones": false
"zones": true
},
"visible_items": [
0,

View File

@ -48,7 +48,7 @@
"silk_text_thickness": 0.1,
"silk_text_upright": false,
"zones": {
"min_clearance": 0.5
"min_clearance": 0.6
}
},
"diff_pair_dimensions": [

View File

@ -1,5 +1,3 @@
# === USAGE ===
# simply run pcb2gcode in terminal while being in this folder.
# pcb2gcode will use "millproject" in current folder for parameters by default
#
# === Notes ===
@ -7,17 +5,25 @@
# https://ncviewer.com/
# notes about kicad export:
# - dont tick "use gerber X2 format (recommended)" to prevent many unsupported warnings
# - dont tick unnecessary plot xx options e.g. "plot footprint text" it might cause hangup
# - if oval holes are present select "Use alternative drill mode" option in generate drill files menu
# === CONFIG ===
# Configuration file generated by pcb2gcodeGUI version 0.1 on Wed Apr 6 15:40:16 2022
# stopped using gui and customized parameters manually since then...
back=../export/led-boards_v0.1-B_Cu.gbr
front=../export/led-boards_v0.1-F_Cu.gbr
outline=../export/led-boards_v0.1-Edge_Cuts.gbr
#note: running for each drill file separately and merging the gcode manually (4 mounting holes are in a separate gerber file)
drill=../export/led-boards_v0.1-PTH.drl
#drill=../export/led-boards_v0.1-NPTH.drl
output-dir=./out
#note: in/out filepaths are added by the run-pcb2gcode.sh script now, thus commented out here:
#back=../export/V2.1_board-ecar_isolated-B_Cu.gbr
#front=../export/V2.1_board-ecar_isolated-F_Cu.gbr
#outline=../export/V2.1_board-ecar_isolated-Edge_Cuts.gbr
##note: running for each drill file separately and merging the gcode manually (4 mounting holes are in a separate gerber file)
#drill=../export/V2.1_board-ecar_isolated-PTH.drl
##drill=../export/V2.1_board-ecar_isolated-NPTH.drl
#output-dir=./out
# Common options
metric=true
@ -39,9 +45,12 @@ zsafe=2.6000 #head mounting screw=1.8 #3mm to be able to cross mounting screws
extra-passes=0
mill-feed=400 #default 600mm/min
mill-speed=20000
offset=0.400 #intentional bigger offset than necessary, using 0.4 there were almost no small strips beeing left over between insolation lines.
offset=0.49 #intentional bigger offset than necessary, using 0.4 there were almost no small strips beeing left over between insolation lines.
voronoi=false
zwork=-0.2000 #usin 60degree cutter resulted in ~0.42mm line
#zwork=-0.2000 #using 60degree cutter resulted in ~0.42mm line
#zwork=-0.300 #using 45degree cutter resulted in ~0.4mm line
#zwork=-0.400 #using 30degree cutter calculates to ~0.2mm line
zwork=-0.200
# Drill options
drill-feed=200
@ -52,8 +61,8 @@ milldrill=false
nog81=false
nog91-1=true
onedrill=false
zdrill=-1.900 #1.75 slightly too short
drills-available=0.8, 1, 1.2, 1.5, 2, 3
zdrill=-1.950 #1.75 slightly too short
drills-available=0.8, 1, 1.5, 2, 3
# Outline options
bridges=1.0000
@ -61,11 +70,11 @@ bridgesnum=2
cut-feed=200
cut-infeed=0.5000
cut-side=front
cut-speed=10000
cut-speed=20000
cut-vertfeed=60
cutter-diameter=1.0000
fill-outline=true
zbridges=-0.6000
zbridges=-0.9000
zcut=-1.9000 #actual: 1.7
# Autoleveller options

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,189 @@
( pcb2gcode 2.5.0 )
( Software-independent Gcode )
( This file uses 2 drill bit sizes. )
( Bit sizes: [0.8mm] [1mm] )
G94 (Millimeters per minute feed rate.)
G21 (Units == Millimeters.)
G90 (Absolute coordinates.)
G00 S20000 (RPM spindle speed.)
G00 Z30.00000 (Retract)
T1
M5 (Spindle stop.)
G04 P1.00000
(MSG, Change tool bit to drill size 0.8mm)
M6 (Tool change.)
M0 (Temporary machine stop.)
M3 (Spindle on clockwise.)
G0 Z2.60000
G04 P1.00000
G81 R2.60000 Z-1.95000 F200.00000 X5.86100 Y6.99420
X8.40100 Y6.99420
X10.94100 Y6.99420
X13.48100 Y6.99420
X16.02100 Y6.99420
X18.56100 Y6.99420
X21.10100 Y6.99420
X23.64100 Y6.99420
X27.19700 Y6.99420
X29.73700 Y6.99420
X32.27700 Y6.99420
X34.81700 Y6.99420
X37.35700 Y6.99420
X39.89700 Y6.99420
X42.43700 Y6.99420
X44.97700 Y6.99420
X51.40500 Y12.15020
X59.02500 Y12.15020
X62.63000 Y19.38920
X70.25000 Y19.38920
X70.25000 Y31.58120
X62.63000 Y31.58120
X59.02500 Y28.91420
X51.40500 Y28.91420
X45.00900 Y34.58520
X42.46900 Y34.58520
X39.92900 Y34.58520
X37.38900 Y34.58520
X34.84900 Y34.58520
X32.30900 Y34.58520
X29.76900 Y34.58520
X27.22900 Y34.58520
X23.67300 Y34.58520
X21.13300 Y34.58520
X18.59300 Y34.58520
X16.05300 Y34.58520
X13.51300 Y34.58520
X10.97300 Y34.58520
X8.43300 Y34.58520
X5.89300 Y34.58520
X5.88300 Y20.80820
X8.42300 Y20.80820
X10.96300 Y20.80820
X13.50300 Y20.80820
X16.04300 Y20.80820
X18.58300 Y20.80820
X21.12300 Y20.80820
X23.66300 Y20.80820
X27.22900 Y20.80820
X29.76900 Y20.80820
X32.30900 Y20.80820
X34.84900 Y20.80820
X37.38900 Y20.80820
X39.92900 Y20.80820
X42.46900 Y20.80820
X45.00900 Y20.80820
G80
G00 Z30.00000 (Retract)
T2
M5 (Spindle stop.)
G04 P1.00000
(MSG, Change tool bit to drill size 1mm)
M6 (Tool change.)
M0 (Temporary machine stop.)
M3 (Spindle on clockwise.)
G0 Z2.60000
G04 P1.00000
G81 R2.60000 Z-1.95000 F200.00000 X13.73500 Y2.93020
X16.27500 Y2.93020
X18.81500 Y2.93020
X21.35500 Y2.93020
X23.89500 Y2.93020
X26.43500 Y2.93020
X28.97500 Y2.93020
X31.51500 Y2.93020
X34.05500 Y2.93020
X39.89700 Y9.52920
X39.89700 Y12.06920
X35.32500 Y9.52420
X35.32500 Y12.06420
X30.75300 Y9.52420
X30.75300 Y12.06420
X26.18100 Y9.52420
X26.18100 Y12.06420
X21.60900 Y9.52420
X21.60900 Y12.06420
X17.03700 Y9.52920
X17.03700 Y12.06920
X12.46500 Y9.52920
X7.89300 Y9.52920
X7.89300 Y12.06920
X12.46500 Y12.06920
X13.75700 Y16.74420
X16.29700 Y16.74420
X18.83700 Y16.74420
X21.37700 Y16.74420
X23.91700 Y16.74420
X26.45700 Y16.74420
X28.99700 Y16.74420
X31.53700 Y16.74420
X34.07700 Y16.74420
X30.77500 Y23.34820
X30.77500 Y25.88820
X26.20300 Y25.88820
X26.20300 Y23.34820
X21.63100 Y25.88820
X21.63100 Y23.34820
X17.05900 Y25.88820
X17.05900 Y23.34820
X12.48700 Y25.88820
X12.48700 Y23.34820
X7.91500 Y23.34820
X7.91500 Y25.88820
X13.75700 Y30.50420
X16.29700 Y30.50420
X18.83700 Y30.50420
X21.37700 Y30.50420
X23.91700 Y30.50420
X26.45700 Y30.50420
X28.99700 Y30.50420
X31.53700 Y30.50420
X34.07700 Y30.50420
X35.34700 Y25.88820
X35.34700 Y23.34820
X39.91900 Y25.88820
X39.91900 Y23.34820
X52.16700 Y23.03020
X52.16700 Y20.49020
X52.16700 Y17.95020
X56.81700 Y6.78920
X56.81700 Y4.24920
X68.14000 Y14.18220
X68.14000 Y16.72220
X63.51900 Y22.94520
X63.51900 Y25.48520
X63.51900 Y28.02520
X68.14000 Y34.27520
X68.14000 Y36.81520
X56.81700 Y36.75620
X56.81700 Y34.21620
X39.91900 Y39.66020
X39.91900 Y37.12020
X35.34700 Y39.66020
X35.34700 Y37.12020
X30.77500 Y39.66020
X30.77500 Y37.12020
X26.20300 Y39.66020
X26.20300 Y37.12020
X21.63100 Y39.66020
X21.63100 Y37.12020
X17.05900 Y39.66020
X17.05900 Y37.12020
X12.48700 Y39.66020
X12.48700 Y37.12020
X7.91500 Y39.66020
X7.91500 Y37.12020
G80
G00 Z30.000 ( All done -- retract )
M5 (Spindle off.)
G04 P1.000000
M9 (Coolant off.)
M2 (Program end.)

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,39 @@
( pcb2gcode 2.5.0 )
( Software-independent Gcode )
( This file uses 1 drill bit sizes. )
( Bit sizes: [2mm] )
G94 (Millimeters per minute feed rate.)
G21 (Units == Millimeters.)
G90 (Absolute coordinates.)
G00 S20000 (RPM spindle speed.)
G00 Z30.00000 (Retract)
T1
M5 (Spindle stop.)
G04 P1.00000
(MSG, Change tool bit to drill size 2mm)
M6 (Tool change.)
M0 (Temporary machine stop.)
M3 (Spindle on clockwise.)
G0 Z2.60000
G04 P1.00000
G81 R2.60000 Z-1.95000 F200.00000 X3.42300 Y10.88020
X3.32100 Y24.59620
X3.37200 Y38.38120
X44.36700 Y38.38120
X68.21800 Y25.48520
X56.73900 Y20.53220
X44.46900 Y24.59620
X44.36700 Y10.88020
G80
G00 Z30.000 ( All done -- retract )
M5 (Spindle off.)
G04 P1.000000
M9 (Coolant off.)
M2 (Program end.)

View File

@ -0,0 +1,15 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="273.706" height="158.589" viewBox="0 0 5702.2 3303.93" version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<circle cx="269.528" cy="2447.22" r="78.7402" style=""/>
<circle cx="261.496" cy="1367.22" r="78.7402" style=""/>
<circle cx="265.512" cy="281.787" r="78.7402" style=""/>
<circle cx="3493.46" cy="281.787" r="78.7402" style=""/>
<circle cx="5371.5" cy="1297.22" r="78.7402" style=""/>
<circle cx="4467.64" cy="1687.22" r="78.7402" style=""/>
<circle cx="3501.5" cy="1367.22" r="78.7402" style=""/>
<circle cx="3493.46" cy="2447.22" r="78.7402" style=""/>
</svg>

After

Width:  |  Height:  |  Size: 758 B

View File

@ -0,0 +1,152 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="273.706" height="158.589" viewBox="0 0 5702.2 3303.93" version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<circle cx="461.496" cy="2753.2" r="31.4961" style=""/>
<circle cx="661.496" cy="2753.2" r="31.4961" style=""/>
<circle cx="861.496" cy="2753.2" r="31.4961" style=""/>
<circle cx="1061.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="1261.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="1461.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="1661.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="1861.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="2141.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="2341.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="2541.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="2741.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="2941.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="3141.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="3341.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="3541.5" cy="2753.2" r="31.4961" style=""/>
<circle cx="4047.64" cy="2347.22" r="31.4961" style=""/>
<circle cx="4647.64" cy="2347.22" r="31.4961" style=""/>
<circle cx="4931.5" cy="1777.22" r="31.4961" style=""/>
<circle cx="5531.5" cy="1777.22" r="31.4961" style=""/>
<circle cx="5531.5" cy="817.22" r="31.4961" style=""/>
<circle cx="4931.5" cy="817.22" r="31.4961" style=""/>
<circle cx="4647.64" cy="1027.22" r="31.4961" style=""/>
<circle cx="4047.64" cy="1027.22" r="31.4961" style=""/>
<circle cx="3544.02" cy="580.685" r="31.4961" style=""/>
<circle cx="3344.02" cy="580.685" r="31.4961" style=""/>
<circle cx="3144.02" cy="580.685" r="31.4961" style=""/>
<circle cx="2944.02" cy="580.685" r="31.4961" style=""/>
<circle cx="2744.02" cy="580.685" r="31.4961" style=""/>
<circle cx="2544.02" cy="580.685" r="31.4961" style=""/>
<circle cx="2344.02" cy="580.685" r="31.4961" style=""/>
<circle cx="2144.02" cy="580.685" r="31.4961" style=""/>
<circle cx="1864.02" cy="580.685" r="31.4961" style=""/>
<circle cx="1664.02" cy="580.685" r="31.4961" style=""/>
<circle cx="1464.02" cy="580.685" r="31.4961" style=""/>
<circle cx="1264.02" cy="580.685" r="31.4961" style=""/>
<circle cx="1064.02" cy="580.685" r="31.4961" style=""/>
<circle cx="864.016" cy="580.685" r="31.4961" style=""/>
<circle cx="664.016" cy="580.685" r="31.4961" style=""/>
<circle cx="464.016" cy="580.685" r="31.4961" style=""/>
<circle cx="463.228" cy="1665.49" r="31.4961" style=""/>
<circle cx="663.228" cy="1665.49" r="31.4961" style=""/>
<circle cx="863.228" cy="1665.49" r="31.4961" style=""/>
<circle cx="1063.23" cy="1665.49" r="31.4961" style=""/>
<circle cx="1263.23" cy="1665.49" r="31.4961" style=""/>
<circle cx="1463.23" cy="1665.49" r="31.4961" style=""/>
<circle cx="1663.23" cy="1665.49" r="31.4961" style=""/>
<circle cx="1863.23" cy="1665.49" r="31.4961" style=""/>
<circle cx="2144.02" cy="1665.49" r="31.4961" style=""/>
<circle cx="2344.02" cy="1665.49" r="31.4961" style=""/>
<circle cx="2544.02" cy="1665.49" r="31.4961" style=""/>
<circle cx="2744.02" cy="1665.49" r="31.4961" style=""/>
<circle cx="2944.02" cy="1665.49" r="31.4961" style=""/>
<circle cx="3144.02" cy="1665.49" r="31.4961" style=""/>
<circle cx="3344.02" cy="1665.49" r="31.4961" style=""/>
<circle cx="3544.02" cy="1665.49" r="31.4961" style=""/>
<circle cx="1081.5" cy="3073.2" r="39.3701" style=""/>
<circle cx="1281.5" cy="3073.2" r="39.3701" style=""/>
<circle cx="1481.5" cy="3073.2" r="39.3701" style=""/>
<circle cx="1681.5" cy="3073.2" r="39.3701" style=""/>
<circle cx="1881.5" cy="3073.2" r="39.3701" style=""/>
<circle cx="2081.5" cy="3073.2" r="39.3701" style=""/>
<circle cx="2281.5" cy="3073.2" r="39.3701" style=""/>
<circle cx="2481.5" cy="3073.2" r="39.3701" style=""/>
<circle cx="2681.5" cy="3073.2" r="39.3701" style=""/>
<circle cx="3141.5" cy="2553.6" r="39.3701" style=""/>
<circle cx="3141.5" cy="2353.6" r="39.3701" style=""/>
<circle cx="2781.5" cy="2553.99" r="39.3701" style=""/>
<circle cx="2781.5" cy="2353.99" r="39.3701" style=""/>
<circle cx="2421.5" cy="2553.99" r="39.3701" style=""/>
<circle cx="2421.5" cy="2353.99" r="39.3701" style=""/>
<circle cx="2061.5" cy="2553.99" r="39.3701" style=""/>
<circle cx="2061.5" cy="2353.99" r="39.3701" style=""/>
<circle cx="1701.5" cy="2553.99" r="39.3701" style=""/>
<circle cx="1701.5" cy="2353.99" r="39.3701" style=""/>
<circle cx="1341.5" cy="2553.6" r="39.3701" style=""/>
<circle cx="1341.5" cy="2353.6" r="39.3701" style=""/>
<circle cx="981.496" cy="2553.6" r="39.3701" style=""/>
<circle cx="621.496" cy="2553.6" r="39.3701" style=""/>
<circle cx="621.496" cy="2353.6" r="39.3701" style=""/>
<circle cx="981.496" cy="2353.6" r="39.3701" style=""/>
<circle cx="1083.23" cy="1985.49" r="39.3701" style=""/>
<circle cx="1283.23" cy="1985.49" r="39.3701" style=""/>
<circle cx="1483.23" cy="1985.49" r="39.3701" style=""/>
<circle cx="1683.23" cy="1985.49" r="39.3701" style=""/>
<circle cx="1883.23" cy="1985.49" r="39.3701" style=""/>
<circle cx="2083.23" cy="1985.49" r="39.3701" style=""/>
<circle cx="2283.23" cy="1985.49" r="39.3701" style=""/>
<circle cx="2483.23" cy="1985.49" r="39.3701" style=""/>
<circle cx="2683.23" cy="1985.49" r="39.3701" style=""/>
<circle cx="2423.23" cy="1465.49" r="39.3701" style=""/>
<circle cx="2423.23" cy="1265.49" r="39.3701" style=""/>
<circle cx="2063.23" cy="1265.49" r="39.3701" style=""/>
<circle cx="2063.23" cy="1465.49" r="39.3701" style=""/>
<circle cx="1703.23" cy="1265.49" r="39.3701" style=""/>
<circle cx="1703.23" cy="1465.49" r="39.3701" style=""/>
<circle cx="1343.23" cy="1265.49" r="39.3701" style=""/>
<circle cx="1343.23" cy="1465.49" r="39.3701" style=""/>
<circle cx="983.228" cy="1265.49" r="39.3701" style=""/>
<circle cx="983.228" cy="1465.49" r="39.3701" style=""/>
<circle cx="623.228" cy="1465.49" r="39.3701" style=""/>
<circle cx="623.228" cy="1265.49" r="39.3701" style=""/>
<circle cx="1083.23" cy="902.024" r="39.3701" style=""/>
<circle cx="1283.23" cy="902.024" r="39.3701" style=""/>
<circle cx="1483.23" cy="902.024" r="39.3701" style=""/>
<circle cx="1683.23" cy="902.024" r="39.3701" style=""/>
<circle cx="1883.23" cy="902.024" r="39.3701" style=""/>
<circle cx="2083.23" cy="902.024" r="39.3701" style=""/>
<circle cx="2283.23" cy="902.024" r="39.3701" style=""/>
<circle cx="2483.23" cy="902.024" r="39.3701" style=""/>
<circle cx="2683.23" cy="902.024" r="39.3701" style=""/>
<circle cx="2783.23" cy="1265.49" r="39.3701" style=""/>
<circle cx="2783.23" cy="1465.49" r="39.3701" style=""/>
<circle cx="3143.23" cy="1265.49" r="39.3701" style=""/>
<circle cx="3143.23" cy="1465.49" r="39.3701" style=""/>
<circle cx="4107.64" cy="1490.53" r="39.3701" style=""/>
<circle cx="4107.64" cy="1690.53" r="39.3701" style=""/>
<circle cx="4107.64" cy="1890.53" r="39.3701" style=""/>
<circle cx="4473.78" cy="2769.35" r="39.3701" style=""/>
<circle cx="4473.78" cy="2969.35" r="39.3701" style=""/>
<circle cx="5365.35" cy="2187.22" r="39.3701" style=""/>
<circle cx="5365.35" cy="1987.22" r="39.3701" style=""/>
<circle cx="5001.5" cy="1497.22" r="39.3701" style=""/>
<circle cx="5001.5" cy="1297.22" r="39.3701" style=""/>
<circle cx="5001.5" cy="1097.22" r="39.3701" style=""/>
<circle cx="5365.35" cy="605.094" r="39.3701" style=""/>
<circle cx="5365.35" cy="405.094" r="39.3701" style=""/>
<circle cx="4473.78" cy="409.74" r="39.3701" style=""/>
<circle cx="4473.78" cy="609.74" r="39.3701" style=""/>
<circle cx="3143.23" cy="181.079" r="39.3701" style=""/>
<circle cx="3143.23" cy="381.079" r="39.3701" style=""/>
<circle cx="2783.23" cy="181.079" r="39.3701" style=""/>
<circle cx="2783.23" cy="381.079" r="39.3701" style=""/>
<circle cx="2423.23" cy="181.079" r="39.3701" style=""/>
<circle cx="2423.23" cy="381.079" r="39.3701" style=""/>
<circle cx="2063.23" cy="181.079" r="39.3701" style=""/>
<circle cx="2063.23" cy="381.079" r="39.3701" style=""/>
<circle cx="1703.23" cy="181.079" r="39.3701" style=""/>
<circle cx="1703.23" cy="381.079" r="39.3701" style=""/>
<circle cx="1343.23" cy="181.079" r="39.3701" style=""/>
<circle cx="1343.23" cy="381.079" r="39.3701" style=""/>
<circle cx="983.228" cy="181.079" r="39.3701" style=""/>
<circle cx="983.228" cy="381.079" r="39.3701" style=""/>
<circle cx="623.228" cy="181.079" r="39.3701" style=""/>
<circle cx="623.228" cy="381.079" r="39.3701" style=""/>
</svg>

After

Width:  |  Height:  |  Size: 8.3 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 658 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 755 KiB

View File

@ -0,0 +1 @@
../../utils/run-pcb2gcode.sh