Date:2011-01-03 17:43:54 (9 years 14 days ago)
Author:Werner Almesberger
Commit:59ae88ddf410c876f58c31cca5eb45a8a5645253
Message:atusb/cam2: renamed to atusb/cam

Files: atusb/cam/Makefile (1 diff)
atusb/cam/mkmk (1 diff)
atusb/cam2/Makefile (1 diff)
atusb/cam2/mkmk (1 diff)

Change Details

atusb/cam/Makefile
1.PHONY: all clean
2
3all: Makefile.mkmk
4
5Makefile.mkmk: mkmk ../atusb.drl ../atusb-PCB_Edges.gbr
6            ./mkmk
7
8../atusb.drl: ../atusb.brd
9            pcbnew --drill `pwd`/../atusb.brd
10
11../atusb-PCB_Edges.gbr: ../atusb.brd
12            pcbnew --plot=gerber -l PCB_Edges `pwd`/../atusb.brd
13
14-include Makefile.mkmk
15
16clean::
17            rm -f Makefile.mkmk
atusb/cam/mkmk
1#!/bin/sh
2PATH=$PATH:/home/qi/cae-tools/cameo
3PATH=$PATH:/home/moko/svn.openmoko.org/developers/werner/cncmap/gp2rml
4
5cameo <<EOF
6mm
7
8gerber 35mil ../atusb-PCB_Edges.gbr
9align 1 4.6mm 9.0mm # align relative to board corner
10translate 3mm 3mm # move to PCB zone assigned to project
11array 20mm 37mm 1 1 # skip over previous boards
12z 0 -58.9mm # board surface (tool fully retracted)
13z 1.5mm # slack for extending the tool
14z -0.8mm # board thickness
15z -0.5mm # tool extra depth
16clear
17
18excellon ../atusb.drl
19drill 7mil 15mil # 12.5-13.5 mil drill
20optimize
21write drill.gp
22
23remainder
24mill 20mil 0.01mm # 35 mil endmill; pretend it is a little smaller,
25            # to compensate for tool/board deflections
26write mill.gp
27
28remainder
29empty
30
31gerber 20mil ../atusb-PCB_Edges.gbr # 35 mil endmill, 15 mil deflection
32offset
33append mill.gp
34EOF
35
36
37gp2rml 2 0.5 0.5 mill.gp >mill.rml
38gp2rml 2 0.1 0.5 drill.gp >drill.rml
39
40
41cat <<EOF >Makefile.mkmk
42SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
43CNGT=/home/qi/cae-tools/cngt/cngt
44
45.PHONY: mill drill cng plot dplot
46
47mill:
48        PORT=/dev/ttyUSB0 \$(SPOOL) mill.rml
49
50drill:
51        PORT=/dev/ttyUSB0 \$(SPOOL) drill.rml
52
53cng:
54        \$(CNGT) -57.4 20 mill.gp
55
56plot:
57        echo 'plot "drill.gp" with points, "mill.gp" with lines' | \\
58          gnuplot -persist
59
60dplot:
61        echo 'plot "< sed /^\$\$/d drill.gp" with linespoints' | \\
62          gnuplot -persist
63
64clean::
65        rm -f mill.gp mill.rml drill.gp drill.rml
66EOF
atusb/cam2/Makefile
1.PHONY: all clean
2
3all: Makefile.mkmk
4
5Makefile.mkmk: mkmk ../atusb.drl ../atusb-PCB_Edges.gbr
6            ./mkmk
7
8../atusb.drl: ../atusb.brd
9            pcbnew --drill `pwd`/../atusb.brd
10
11../atusb-PCB_Edges.gbr: ../atusb.brd
12            pcbnew --plot=gerber -l PCB_Edges `pwd`/../atusb.brd
13
14-include Makefile.mkmk
15
16clean::
17            rm -f Makefile.mkmk
atusb/cam2/mkmk
1#!/bin/sh
2PATH=$PATH:/home/qi/cae-tools/cameo
3PATH=$PATH:/home/moko/svn.openmoko.org/developers/werner/cncmap/gp2rml
4
5cameo <<EOF
6mm
7
8gerber 35mil ../atusb-PCB_Edges.gbr
9align 1 4.6mm 9.0mm # align relative to board corner
10translate 3mm 3mm # move to PCB zone assigned to project
11array 20mm 37mm 1 1 # skip over previous boards
12z 0 -58.9mm # board surface (tool fully retracted)
13z 1.5mm # slack for extending the tool
14z -0.8mm # board thickness
15z -0.5mm # tool extra depth
16clear
17
18excellon ../atusb.drl
19drill 7mil 15mil # 12.5-13.5 mil drill
20optimize
21write drill.gp
22
23remainder
24mill 20mil 0.01mm # 35 mil endmill; pretend it is a little smaller,
25            # to compensate for tool/board deflections
26write mill.gp
27
28remainder
29empty
30
31gerber 20mil ../atusb-PCB_Edges.gbr # 35 mil endmill, 15 mil deflection
32offset
33append mill.gp
34EOF
35
36
37gp2rml 2 0.5 0.5 mill.gp >mill.rml
38gp2rml 2 0.1 0.5 drill.gp >drill.rml
39
40
41cat <<EOF >Makefile.mkmk
42SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
43CNGT=/home/qi/cae-tools/cngt/cngt
44
45.PHONY: mill drill cng plot dplot
46
47mill:
48        PORT=/dev/ttyUSB0 \$(SPOOL) mill.rml
49
50drill:
51        PORT=/dev/ttyUSB0 \$(SPOOL) drill.rml
52
53cng:
54        \$(CNGT) -57.4 20 mill.gp
55
56plot:
57        echo 'plot "drill.gp" with points, "mill.gp" with lines' | \\
58          gnuplot -persist
59
60dplot:
61        echo 'plot "< sed /^\$\$/d drill.gp" with linespoints' | \\
62          gnuplot -persist
63
64clean::
65        rm -f mill.gp mill.rml drill.gp drill.rml
66EOF

Archive Download the corresponding diff file



interactive