Date:2011-03-13 03:43:00 (8 years 3 months ago)
Author:Werner Almesberger
Commit:cdf3825d2461b7c4dde5f48c28ff87ffdc0d40c8
Message:atusb: added fab file generation, like in atben

- Makefile (VERSION, DIR): added board version and parent directory name
- Makefile: added generation of Gerbers and other fab files
- Makefile (gen): this never worked, changed --plot to --plot=ps
- Makefile: added section titles
- README-PCB: PCB making instructions
Files: atusb/Makefile (3 diffs)
atusb/README-PCB (1 diff)

Change Details

atusb/Makefile
11PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones
22
33NAME = atusb
4VERSION = 110214
5DIR = $(NAME)
46
57.PHONY: all gen generate sch brd xpdf front back clean
8.PHONY: gerber gerbv fab
69
710all:
811        @echo "make what ? target: gen sch brd xpdf front back clean"
912        @exit 1
1013
1114gen generate:
12        eeschema --plot `pwd`/$(NAME).sch
15        eeschema --plot=ps `pwd`/$(NAME).sch
1316        # need scripts
1417
1518sch:
...... 
2730back: $(NAME)-Back.ps
2831        lpr $<
2932
33# --- DIY production (toner transfer) -----------------------------------------
34
3035#
3136# Postscript for production of front/back layer, using the toner transfer
3237# method. Note that other artwork transfer methods may require different
...... 
4449%-Back.ps: %.brd
4550        $(PLOT_BRD) -l Back $<
4651
52# --- Industrial production ---------------------------------------------------
53
54PCB_FILES = README-PCB $(NAME)-PCB_Edges.dxf $(NAME).drl \
55        $(NAME)-SilkS_Front.gto $(NAME)-Mask_Front.gts \
56        $(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \
57        $(NAME)-PCB_Edges.gbr
58
59gerber:
60        pcbnew --plot=gerber \
61          -l `pcbnew --list-layers $(NAME).brd | tr '\012' ,` \
62          --fill-all-zones $(NAME).brd \
63          --exclude-pcb-edge
64
65fab: gerber
66        pcbnew --plot=dxf -l PCB_Edges $(NAME).brd
67        pcbnew --drill $(NAME).brd
68        tar Ccfz .. $(NAME)-$(VERSION).tar.gz $(PCB_FILES:%=$(DIR)/%)
69        cd ..; zip -l $(DIR)/$(NAME)-$(VERSION).zip \
70          $(PCB_FILES:%=$(DIR)/%)
71
72gerbv:
73        gerbv $(NAME)-Comments.gbr \
74          $(NAME)-SilkS_Front.gto \
75          $(NAME)-SoldP_Front.gtp \
76          $(NAME)-Front.gtl \
77          $(NAME)-Mask_Front.gts \
78          $(NAME)-Back.gbl
79
80# --- Cleanup -----------------------------------------------------------------
81
4782clean:
4883        rm -f $(NAME)-Front.ps $(NAME)-Back.ps
49        rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr
84        rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr $(NAME)-PCB_Edges.dxf
5085        rm -f $(NAME)-Front.gtl $(NAME)-Mask_Front.gts
5186        rm -f $(NAME)-SilkS_Front.gto $(NAME)-SoldP_Front.gtp
5287        rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs
atusb/README-PCB
1Board characteristics:
2
3- stacking: 2 layers, solder mask on front and back, silk screen on front
4- board material: FR4, thickness 0.8 mm, 1 oz copper
5- surface finish: TBD, both ENIG and tin are acceptable
6- via holes: diameter is nominally 10 mil, but any size <= 15 mil can be used
7- mechanical tolerances: <= +/- 0.1 mm on all sides
8
9Layer stacking, from top to bottom:
10
11atusb-SilkS_Front.gto Front silk screen
12atusb-Mask_Front.gts Front solder mask
13atusb-Front.gtl Front copper
14atusb-Back.gbl Back copper
15atusb-Mask_Back.gbs Back solder mask (empty)
16
17Other design files:
18
19atusb-PCB_Edges.gbr Board edges, for routing (Gerber)
20atusb.dxf idem (AutoCAD DXF)
21atusb.drl Excellon drill file
22
23Interpretation of files:
24
25- do not print PCB edges on front/back copper
26- do not print component values on silk screen
27- the center (!) of the board edge line marks the true board edge, e.g.,
28
29                             Edge line (5 mil)
30                        =======
31         ------- - - - - - ----------
32               | |
33   PCB outside | | PCB inside
34               | |
35         ------- - - - - - ----------
36                     |
37               Volume removed when cutting
38               (width depends on tool used)

Archive Download the corresponding diff file



interactive