From ea28493d0604bee743422567b91e4bff09c1b0f1 Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Mon, 3 Dec 2018 23:05:59 -0700 Subject: [PATCH] add footprints from pcb used in test stand board that weren't in our library --- packages/0.125W_Carbon_Resistor.fp | 12 +++++ packages/SO16.fp | 73 ++++++++++++++++++++++++++++++ packages/SOT23.fp | 30 ++++++++++++ pcb-rnd.mk | 3 +- 4 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 packages/0.125W_Carbon_Resistor.fp create mode 100644 packages/SO16.fp create mode 100644 packages/SOT23.fp diff --git a/packages/0.125W_Carbon_Resistor.fp b/packages/0.125W_Carbon_Resistor.fp new file mode 100644 index 0000000..33388ba --- /dev/null +++ b/packages/0.125W_Carbon_Resistor.fp @@ -0,0 +1,12 @@ + +Element(0x00000000 "" "R11" "" 1800 1050 56 -138 0 100 0x00000000) +( + Pin(0 0 60 30 60 28 "" "1" 0x00000001) + Pin(0 -300 60 30 60 28 "" "2" 0x00000001) + ElementLine (0 -50 0 -90 10) + ElementLine (40 -90 -40 -90 10) + ElementLine (-40 -90 -40 -210 10) + ElementLine (-40 -210 40 -210 10) + ElementLine (40 -210 40 -90 10) + ElementLine (0 -210 0 -250 10) + ) diff --git a/packages/SO16.fp b/packages/SO16.fp new file mode 100644 index 0000000..08dfc3a --- /dev/null +++ b/packages/SO16.fp @@ -0,0 +1,73 @@ + # number of pads + # pad width in 1/1000 mil + # pad length in 1/1000 mil + # pad pitch 1/1000 mil + # seperation between pads on opposite sides 1/1000 mil + # X coordinates for the right hand column of pads (1/100 mils) + # pad clearance to plane layer in 1/100 mil + # pad soldermask width in 1/100 mil + # silk screen width (1/100 mils) + # figure out if we have an even or odd number of pins per side + # silk bounding box is -XMAX,-YMAX, XMAX,YMAX (1/100 mils) +# element_flags, description, pcb-name, value, mark_x, mark_y, +# text_x, text_y, text_direction, text_scale, text_flags +Element[0x00000000 "Small outline package, narrow (150mil)" "" "SO16" 0 0 -2000 -6000 0 100 0x00000000] +( +# +# Pad[x1, y1, x2, y2, thickness, clearance, mask, name , pad number, flags] + Pad[ -13500 -17500 + -7000 -17500 + 2000 1000 3000 "1" "1" 0x00000100] + Pad[ -13500 -12500 + -7000 -12500 + 2000 1000 3000 "2" "2" 0x00000100] + Pad[ -13500 -7500 + -7000 -7500 + 2000 1000 3000 "3" "3" 0x00000100] + Pad[ -13500 -2500 + -7000 -2500 + 2000 1000 3000 "4" "4" 0x00000100] + Pad[ -13500 2500 + -7000 2500 + 2000 1000 3000 "5" "5" 0x00000100] + Pad[ -13500 7500 + -7000 7500 + 2000 1000 3000 "6" "6" 0x00000100] + Pad[ -13500 12500 + -7000 12500 + 2000 1000 3000 "7" "7" 0x00000100] + Pad[ -13500 17500 + -7000 17500 + 2000 1000 3000 "8" "8" 0x00000100] + Pad[ 13500 17500 + 7000 17500 + 2000 1000 3000 "9" "9" 0x00000100] + Pad[ 13500 12500 + 7000 12500 + 2000 1000 3000 "10" "10" 0x00000100] + Pad[ 13500 7500 + 7000 7500 + 2000 1000 3000 "11" "11" 0x00000100] + Pad[ 13500 2500 + 7000 2500 + 2000 1000 3000 "12" "12" 0x00000100] + Pad[ 13500 -2500 + 7000 -2500 + 2000 1000 3000 "13" "13" 0x00000100] + Pad[ 13500 -7500 + 7000 -7500 + 2000 1000 3000 "14" "14" 0x00000100] + Pad[ 13500 -12500 + 7000 -12500 + 2000 1000 3000 "15" "15" 0x00000100] + Pad[ 13500 -17500 + 7000 -17500 + 2000 1000 3000 "16" "16" 0x00000100] + ElementLine[-15500 -19500 -15500 19500 1000] + ElementLine[-15500 19500 15500 19500 1000] + ElementLine[ 15500 19500 15500 -19500 1000] + ElementLine[-15500 -19500 -2500 -19500 1000] + ElementLine[ 15500 -19500 2500 -19500 1000] + # punt on the arc on small parts as it can cover the pads + ElementArc[0 -19500 2500 2500 0 180 1000] +) diff --git a/packages/SOT23.fp b/packages/SOT23.fp new file mode 100644 index 0000000..4f89c2d --- /dev/null +++ b/packages/SOT23.fp @@ -0,0 +1,30 @@ + # 78 for SOT23 + # 82 for SOT23 + # 41 for SOT23 + # 34 for SOT23, 24 for SOT25 +Element(0x00 "SMT transistor, 3 pins" "" "SOT23" 148 0 3 100 0x00) +( + ElementLine(0 0 0 139 10) + ElementLine(0 139 128 139 10) + ElementLine(128 139 128 0 10) + ElementLine(128 0 0 0 10) + # 1st side, 1st pin + Pad(25 107 + 25 113 + 34 + "1" "1" 0x100) + # 1st side, 2nd pin + # 1st side, 3rd pin + Pad(103 107 + 103 113 + 34 + "2" "2" 0x100) + # 2nd side, 3rd pin + # 2nd side, 2nd pin + Pad(64 25 + 64 31 + 34 + "3" "3" 0x100) + # 2nd side, 1st pin + Mark(25 110) +) diff --git a/pcb-rnd.mk b/pcb-rnd.mk index daa1efe..b957e48 100644 --- a/pcb-rnd.mk +++ b/pcb-rnd.mk @@ -57,6 +57,7 @@ pcb: $(SCHEMATICS) Makefile $(CONFIG) lepton-netlist -g tEDAx -o $(PROJECT).tdx $(SCHEMATICS) echo 'LoadTedaxFrom(netlist, $(PROJECT).tdx); SaveTo(Layout)' | \ pcb-rnd --gui batch $(PROJECT).lht +# echo "Run pcb-rnd and import $(PROJECT).tdx" $(PROJECT).xy: $(PROJECT).lht $(CONFIG) pcb-rnd -x XY $(PROJECT).lht @@ -241,7 +242,7 @@ stencil: $(PROJECT).lht mv $(PROJECT).toppaste.gbr stencil.gbr clean: - rm -f *.bom *.drc *.log *~ $(PROJECT).ps *.gbr *.cnc *bak* *- *.zip *.tdx + rm -f *.bom *.drc *.log *~ $(PROJECT).ps *.gbr *.cnc *bak* *- *.zip *.tdx *.backup rm -f *.net *.xy *.cmd *.png partslist partslist.csv *.ger *.xln PCB*save rm -f *.partslist *.unsorted $(PROJECT).xls muffin-*.pdf rm -f partslist-check.dk partslist-dk.csv partslist-mouser.csv partslist-other.csv -- 2.47.2