From b3d76021a0c22eda39bf05a6a5ddfcfe436e17b5 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 22 Dec 2012 22:22:41 -0300 Subject: [PATCH] modules/inductor-2p.fpd: footprints for 2-SMD inductors (3mmx3mm for now) --- AUTHORS | 1 + modules/HIERARCHY | 2 ++ modules/INFO | 5 +++++ modules/Makefile | 2 +- modules/inductor-2p.fpd | 47 +++++++++++++++++++++++++++++++++++++++++ 5 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 modules/inductor-2p.fpd diff --git a/AUTHORS b/AUTHORS index 8797c67..1d20a74 100644 --- a/AUTHORS +++ b/AUTHORS @@ -96,6 +96,7 @@ Werner Almesberger modules/dfn.fpd modules/lga.fpd modules/8_10-socket-ra-push-pull.fpd + modules/inductor-2p.fpd Xiangfu diff --git a/modules/HIERARCHY b/modules/HIERARCHY index 2d77cb5..9b3dba7 100644 --- a/modules/HIERARCHY +++ b/modules/HIERARCHY @@ -246,6 +246,8 @@ Discrete_2P c-smd-6.3mmx8mm c-smd-8mmx10.5mm c-smd-10mmx10.5mm + Inductor + inductor-2p-3mmx3mm Diode DO-214AA LEDSMD-0603R diff --git a/modules/INFO b/modules/INFO index 657440c..0a6b8ae 100644 --- a/modules/INFO +++ b/modules/INFO @@ -572,3 +572,8 @@ F: 8_10-SOCKET-RA-PUSH-PULL # # http://media.digikey.com/pdf/Data%20Sheets/Amphenol%20PDFs/114-00841-68.pdf # + +F: INDUCTOR-2P-3mmx3mm +# +# http://www.bourns.com/data/global/pdfs/SRN3015.pdf +# diff --git a/modules/Makefile b/modules/Makefile index 5f60b93..727f7fa 100644 --- a/modules/Makefile +++ b/modules/Makefile @@ -5,7 +5,7 @@ MODULES=8_10-card 8_10-socket-ra 8_10-socket-ra-push-pull \ e-switch320 eus evqq7 \ fiducial \ header he-2row-dip he-shrouded \ - ir \ + inductor-2p ir \ lga ledsmd \ mdip meander-2450MHz mic-ra-dip mini-usb\ pads pads-array phonejack \ diff --git a/modules/inductor-2p.fpd b/modules/inductor-2p.fpd new file mode 100644 index 0000000..f903f72 --- /dev/null +++ b/modules/inductor-2p.fpd @@ -0,0 +1,47 @@ +/* MACHINE-GENERATED ! */ + +frame pads { + set y = (2*i-1)*(py+gap)/2 + + set name = i+1 + + loop i = 0, 1 + + __0: vec @(0mm, y) + __1: vec .(px/2, py/2) + __2: vec __0(-px/2, -py/2) + pad "$name" . __1 +} + +frame outline { + __0: vec @(sizex/2, sizey/2) + __1: vec .(clear, clear) + __2: vec @(sizex/2, -sizey/2) + __3: vec .(clear, -clear) + line . __1 w + __4: vec @(-sizex/2, sizey/2) + __5: vec .(-clear, clear) + __6: vec @(-sizex/2, -sizey/2) + __7: vec .(-clear, -clear) + line . __5 w +} + +package "INDUCTOR-2P-${sizex}x${sizey}" +unit mm + +table + { sizex, sizey, px, py, gap } + { 3mm, 3mm, 2.7mm, 1mm, 1.2mm } + +set clear = 0.1mm+w/2 + +set w = 5mil + +frame pads @ +frame outline @ +measy pads.__2 >> pads.__1 1.5mm +measx pads.__2 -> pads.__1 -1mm +measy pads.__2 -> pads.__1 1mm +measy pads.__1 >> pads.__2 px+1mm +measx outline.__6 >> outline.__2 -1.5mm +measy outline.__2 >> outline.__0 -1mm