From d6146b915ab1b8a7f46d73e20954941b2f9f206b Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sat, 7 Jan 2017 12:09:15 -0700 Subject: [PATCH] switch to preferred parts --- Makefile | 80 +++++-------------------------------------------- attribs | 8 +++-- lipocharger.sch | 78 ++++------------------------------------------- 3 files changed, 18 insertions(+), 148 deletions(-) diff --git a/Makefile b/Makefile index ee2bb76..611e079 100644 --- a/Makefile +++ b/Makefile @@ -1,77 +1,13 @@ +# name of project, also used for PCB file PROJECT=lipocharger -AM=../altusmetrum -SCHEME=$(AM)/scheme -# intentionally want to rebuild drc and bom on every invocation -all: drc partslist partslist.csv pcb +# list of schematic files that make up this design +SCHEMATICS=lipocharger.sch -drc: lipocharger.sch Makefile - -gnetlist -g drc2 lipocharger.sch -o lipocharger.drc +# number of PCB layers +LAYERS=2 -partslist: lipocharger.sch Makefile - gnetlist -g bom -o lipocharger.unsorted lipocharger.sch - head -n1 lipocharger.unsorted > partslist - tail -n+2 lipocharger.unsorted | sort >> partslist - rm -f lipocharger.unsorted - -partslist.csv: lipocharger.sch Makefile - gnetlist -L $(SCHEME) -g partslistgag \ - -o lipocharger.unsorted lipocharger.sch - head -n1 lipocharger.unsorted > partslist.csv - tail -n+2 lipocharger.unsorted | sort -t \, -k 8 >> partslist.csv - rm -f lipocharger.unsorted - -partslist.dk: $(PROJECT).sch Makefile $(SCHEME)/gnet-partslist-bom.scm - gnetlist -L $(SCHEME) -g partslist-bom -Ovendor=digikey -o $@ $(PROJECT).sch - -pcb: lipocharger.sch project Makefile - gsch2pcb project - -# note that 'gschlas -e foo.sch' will embed all symbols in the schematic, this -# might be a really good idea for publishing designs to the web that others -# might review? Like this example from DJ: -# -#web : -# for i in channel.sch ethernet.sch power.sch mcu.sch; do \ -# cp $$i tmp.sch ; \ -# gschlas -e tmp.sch ; \ -# mv tmp.sch ${WEB}/$$i; \ -# done - -# this shoves local work out to the git.gag.com repository -push: - git push --mirror - -lipocharger.xy: lipocharger.pcb - pcb -x bom lipocharger.pcb - -lipocharger.bottom.gbr: lipocharger.pcb - pcb -x gerber lipocharger.pcb - -zip: lipocharger.bottom.gbr lipocharger.bottommask.gbr lipocharger.fab.gbr lipocharger.top.gbr lipocharger.topmask.gbr lipocharger.toppaste.gbr lipocharger.topsilk.gbr lipocharger.plated-drill.cnc lipocharger.xy Makefile # lipocharger.xls - zip lipocharger.zip lipocharger.*.gbr lipocharger.*.cnc lipocharger.xy # lipocharger.xls - -oshpark: lipocharger.bottom.gbr lipocharger.bottommask.gbr lipocharger.top.gbr lipocharger.topmask.gbr lipocharger.plated-drill.cnc - mv lipocharger.bottom.gbr bottom\ layer.ger - mv lipocharger.bottommask.gbr bottom\ solder\ mask.ger - mv lipocharger.bottomsilk.gbr bottom\ silk\ screen.ger - mv lipocharger.outline.gbr board\ outline.ger - mv lipocharger.top.gbr top\ layer.ger - mv lipocharger.topmask.gbr top\ solder\ mask.ger - mv lipocharger.plated-drill.cnc drills.xln - zip lipocharger-oshpark.zip *.ger *.xln - -stencil: lipocharger.bottom.gbr lipocharger.toppaste.gbr lipocharger.outline.gbr - zip lipocharger-stencil.zip lipocharger.toppaste.gbr lipocharger.outline.gbr - -clean: - rm -f *.bom *.drc *.log *~ lipocharger.ps *.gbr *.cnc *bak* *- *.zip - rm -f *.net *.xy *.cmd *.png partslist partslist.csv *.ger *.xln - rm -f *.partslist *.new.pcb *.unsorted lipocharger.xls muffin-5267.pdf - rm -f partslist.dk - -muffins: partslist.csv $(AM)/glabels/muffin-short-5267.glabels - glabels-3-batch $(AM)/glabels/muffin-short-5267.glabels \ - -i partslist.csv -o muffin-5267.ps >/dev/null && \ - ps2pdf muffin-5267.ps && rm muffin-5267.ps +# sides with silkscreen, can be none|top|bottom|both +SILK=bottom +include ../altusmetrum/pcb.mk diff --git a/attribs b/attribs index 92a91e7..d7af178 100644 --- a/attribs +++ b/attribs @@ -1,6 +1,8 @@ +device value -vendor -vendor_part_number footprint loadstatus -device +provided +mfg_part_number +vendor +vendor_part_number diff --git a/lipocharger.sch b/lipocharger.sch index 7b32840..4647894 100644 --- a/lipocharger.sch +++ b/lipocharger.sch @@ -30,18 +30,10 @@ T 46900 49300 5 10 0 0 90 0 1 device=CAPACITOR T 47800 49850 5 10 1 1 180 0 1 refdes=C1 -T 46700 49300 5 10 0 0 90 0 1 -symversion=0.1 T 47550 49200 5 10 1 1 0 0 1 value=4.7uF T 47600 49100 5 10 0 0 0 0 1 -vendor_part_number=445-5947-1-ND -T 47600 49100 5 10 0 0 0 0 1 footprint=0402 -T 47600 49100 5 10 0 0 0 0 1 -vendor=digikey -T 47600 49100 5 10 0 1 0 0 1 -loadstatus=smt } C 55800 49800 1 270 0 battery.sym { @@ -49,20 +41,12 @@ T 56700 49500 5 10 0 1 270 0 1 device=CONNECTOR T 56300 49700 5 10 1 1 0 0 1 refdes=J2 -T 57100 49500 5 10 0 0 270 0 1 -symversion=0.1 T 56300 49300 5 10 1 1 0 0 1 value=LiPo T 55800 49800 5 10 0 0 0 0 1 -footprint=S2B-PH-SM4 -T 55800 49800 5 10 0 0 0 0 1 -loadstatus=smt +footprint=S2B-PH-SM T 55800 49800 5 10 0 1 0 0 1 device=CONNECTOR -T 55800 49800 5 10 0 1 0 0 1 -vendor=digikey -T 55800 49800 5 10 0 1 0 0 1 -vendor_part_number=455-1749-1-ND } T 56800 41800 9 30 1 0 0 0 1 LipoCharger @@ -88,18 +72,10 @@ T 54200 49300 5 10 0 0 90 0 1 device=CAPACITOR T 55150 49850 5 10 1 1 180 0 1 refdes=C2 -T 54000 49300 5 10 0 0 90 0 1 -symversion=0.1 T 54900 49200 5 10 1 1 0 0 1 value=4.7uF T 54900 49100 5 10 0 0 0 0 1 -vendor_part_number=445-5947-1-ND -T 54900 49100 5 10 0 0 0 0 1 footprint=0402 -T 54900 49100 5 10 0 0 0 0 1 -vendor=digikey -T 54900 49100 5 10 0 1 0 0 1 -loadstatus=smt } C 54600 48800 1 0 0 gnd.sym N 52700 50000 56000 50000 4 @@ -112,12 +88,6 @@ T 48700 47700 5 10 0 0 180 6 1 device=LED T 48750 48300 5 10 0 1 180 6 1 footprint=0605 -T 48800 48300 5 10 0 0 180 6 1 -vendor=digikey -T 48800 48300 5 10 0 0 180 6 1 -vendor_part_number=160-1452-1-ND -T 48800 48300 5 10 0 1 0 0 1 -loadstatus=smt T 48800 48300 5 10 1 1 0 0 1 refdes=D1 T 48800 48300 5 10 0 1 0 0 1 @@ -133,12 +103,6 @@ T 48700 49095 5 10 0 1 90 0 1 footprint=0402 T 49000 49500 5 10 1 1 180 0 1 value=1k -T 48700 49100 5 10 0 1 90 0 1 -vendor=digikey -T 48700 49100 5 10 0 1 90 0 1 -vendor_part_number=P1.00KLCT-ND -T 48700 49100 5 10 0 1 90 0 1 -loadstatus=smt } C 53400 46400 1 90 0 resistor.sym { @@ -150,12 +114,6 @@ T 53400 46395 5 10 0 1 90 0 1 footprint=0402 T 53000 46700 5 10 1 1 180 0 1 value=2k -T 53400 46400 5 10 0 1 90 0 1 -vendor=digikey -T 53400 46400 5 10 0 1 90 0 1 -loadstatus=smt -T 53400 46400 5 10 0 1 0 0 1 -vendor_part_number=P2.00KLCT-ND } C 53500 46100 1 0 0 gnd.sym C 49300 46300 1 0 0 gnd.sym @@ -169,28 +127,18 @@ T 54000 46400 5 10 0 1 0 0 1 footprint=0402 T 54100 46600 5 10 1 1 0 0 1 value=10k -T 54000 46400 5 10 0 1 0 0 1 -loadstatus=smt -T 54000 46400 5 10 0 1 0 0 1 -vendor=digikey -T 54000 46400 5 10 0 1 0 0 1 -vendor_part_number=P10.0KLCT-ND } N 53300 46400 53900 46400 4 C 50300 49000 1 0 0 MCP73831.sym { T 50995 50295 5 10 0 1 0 0 1 -device=MCP73831 +device=IC T 50695 50595 5 10 1 1 0 0 1 refdes=U1 T 50295 47095 5 10 0 1 0 0 1 footprint=SOT23-5 T 50300 49000 5 10 0 1 0 0 1 -loadstatus=smt -T 50300 49000 5 10 0 1 0 0 1 -vendor=digikey -T 50300 49000 5 10 0 1 0 0 1 -vendor_part_number=MCP73831T-2ACI/OTCT-ND +value=MCP73831 } N 48400 48600 48400 47800 4 N 48400 47800 48800 47800 4 @@ -208,13 +156,7 @@ footprint=ZX62-B-5PA T 46800 48000 5 10 0 1 0 0 1 device=CONNECTOR T 46800 48000 5 10 0 1 0 0 1 -loadstatus=smt -T 46800 48000 5 10 0 1 0 0 1 -vendor=mouser -T 46800 48000 5 10 0 1 0 0 1 -vendor_part_number=798-ZX62-B-5PA11 -T 46800 48000 5 10 0 1 0 0 1 -value=microUSB +value=USBmicroB } C 53000 48800 1 270 0 spdt.sym { @@ -225,11 +167,7 @@ footprint=PCM12SMTR T 53000 48800 5 10 0 1 0 0 1 device=SWITCH T 53000 48800 5 10 0 1 0 0 1 -loadstatus=smt -T 53000 48800 5 10 0 1 0 0 1 -vendor=mouser -T 53000 48800 5 10 0 1 0 0 1 -vendor_part_number=611-PCM12SMTR +value=SPDT } N 53600 48300 53600 49600 4 T 52600 45600 9 10 1 0 0 0 2 @@ -245,12 +183,6 @@ T 49500 46595 5 10 0 1 90 0 1 footprint=0402 T 49800 47000 5 10 1 1 180 0 1 value=1k -T 49500 46600 5 10 0 1 90 0 1 -vendor=digikey -T 49500 46600 5 10 0 1 90 0 1 -vendor_part_number=P1.00KLCT-ND -T 49500 46600 5 10 0 1 90 0 1 -loadstatus=smt } N 48600 49100 48600 48200 4 N 48400 48600 49400 48600 4 -- 2.30.2