mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-22 08:10:17 +02:00
added generation of SMT fab file package (in progress)
- atben/README-SMT, atusb/README-SMT: description for SMT fab files - bom/Makefile (%-smt.csv, spotless): renamed *-smt.csv to *-bom.csv - makefiles/Makefile.kicad (fab): split into "fab" (PCB and SMT) and fab-pcb (previous "fab"; only PCB) - makefiles/Makefile.kicad (fab-smt): added packaging process for SMT fab files
This commit is contained in:
parent
8885467617
commit
d53c2c2b72
23
atben/README-SMT
Normal file
23
atben/README-SMT
Normal file
@ -0,0 +1,23 @@
|
||||
Board characteristics:
|
||||
|
||||
- two layers, components only on front
|
||||
- smallest components are 0402 and 0.5 mm pitch QFN
|
||||
- the following orientation markings are on the silk screen:
|
||||
B1: circle near pin 1
|
||||
U1: triangle at the corner between pins 1 and 32
|
||||
|
||||
|
||||
Design files:
|
||||
|
||||
atben-bom.csv Bill of materials
|
||||
atben-pos.csv Automatic insertion file
|
||||
* footprints
|
||||
|
||||
The PCB design files are in a separate archive, atben-pcb-*
|
||||
|
||||
|
||||
Interpretation of files:
|
||||
|
||||
- for all coordinates, the origin is the lower left corner of the board
|
||||
- coordinates in atben-pos.csv are in inches
|
||||
- rotation in atben-pos.csv is in degrees, counter-clockwise
|
25
atusb/README-SMT
Normal file
25
atusb/README-SMT
Normal file
@ -0,0 +1,25 @@
|
||||
Board characteristics:
|
||||
|
||||
- two layers, components only on front
|
||||
- smallest components are 0402 and 0.5 mm pitch QFN
|
||||
- one through-hole component: USB connector CON1
|
||||
- the following orientation markings are on the silk screen:
|
||||
B1: circle near pin 1
|
||||
D1: plus sign at the anode
|
||||
U1, U2: triangle at the corner between pins 1 and 32
|
||||
|
||||
|
||||
Design files:
|
||||
|
||||
atusb-bom.csv Bill of materials
|
||||
atusb-pos.csv Automatic insertion file
|
||||
* footprints
|
||||
|
||||
The PCB design files are in a separate archive, atusb-pcb-*
|
||||
|
||||
|
||||
Interpretation of files:
|
||||
|
||||
- for all coordinates, the origin is the lower left corner of the board
|
||||
- coordinates in atusb-pos.csv are in inches
|
||||
- rotation in atusb-pos.csv is in degrees, counter-clockwise
|
@ -40,7 +40,7 @@ show-%: %.ord $(DSC)
|
||||
grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
|
||||
sed 's/^... //'
|
||||
|
||||
%-smt.csv: %.ord $(DSC)
|
||||
%-bom.csv: %.ord $(DSC)
|
||||
grep -vw ATRF $< | $(BOOM) prettyord -f -c -r - $(DSC) >$@ || \
|
||||
{ rm -f $@; exit 1; }
|
||||
|
||||
@ -48,5 +48,5 @@ spotless:
|
||||
$(MAKE) -C dk spotless
|
||||
rm -f atusb.lst atusb.par atusb.ord
|
||||
rm -f atben.lst atben.par atben.ord
|
||||
rm -f atusb-smt.csv atben-smt.csv cntr-smt.csv
|
||||
rm -f atusb-bom.csv atben-bom.csv cntr-bom.csv
|
||||
rm -f cntr.lst cntr.par cntr.ord
|
||||
|
@ -82,6 +82,8 @@ PCB_FILES = README-PCB $(NAME)-PCB_Edges.dxf $(NAME).drl \
|
||||
$(NAME)-Front.gtl $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs \
|
||||
$(NAME)-PCB_Edges.gbr
|
||||
|
||||
SMT_FILES = README-SMT $(NAME)-bom.csv $(NAME)-pos.csv
|
||||
|
||||
gerber:
|
||||
pcbnew --plot=gerber --origin=aux \
|
||||
-l `pcbnew --list-layers $(BRD) | tr '\012' ,` \
|
||||
@ -91,7 +93,9 @@ gerber:
|
||||
|| { rm -rf _tmp; exit 1; }
|
||||
mv _tmp $(NAME)-SilkS_Front.gto
|
||||
|
||||
fab: gerber
|
||||
fab: fab-pcb fab-smt
|
||||
|
||||
fab-pcb: gerber
|
||||
pcbnew --plot=dxf --origin=aux -l PCB_Edges $(BRD)
|
||||
pcbnew --drill --origin=aux $(BRD)
|
||||
mkdir -p fab
|
||||
@ -115,6 +119,19 @@ $(NAME)-pos.csv: $(NAME)Front.pos $(NAME).cmp
|
||||
$(POS2FAB) $(NAME)Front.pos $(NAME).cmp >$@ || \
|
||||
{ rm -f "$@"; exit 1; }
|
||||
|
||||
../bom/$(NAME)-bom.csv:
|
||||
$(MAKE) -C ../bom $(NAME)-bom.csv
|
||||
|
||||
$(NAME)-bom.csv: ../bom/$(NAME)-bom.csv
|
||||
mv $< $@
|
||||
|
||||
fab-smt: $(NAME)-pos.csv $(NAME)-bom.csv
|
||||
mkdir -p fab
|
||||
tar Ccfz .. fab/$(NAME)-smt-$(VERSION).tar.gz \
|
||||
$(SMT_FILES:%=$(DIR)/%)
|
||||
cd ..; zip -l $(DIR)/fab/$(NAME)-smt-$(VERSION).zip \
|
||||
$(SMT_FILES:%=$(DIR)/%)
|
||||
|
||||
upload:
|
||||
qippl fab/$(NAME)-pcb-$(VERSION).tar.gz \
|
||||
fab/$(NAME)-pcb-$(VERSION).zip wpan/fab
|
||||
|
Loading…
Reference in New Issue
Block a user