1
0
mirror of git://projects.qi-hardware.com/kicad-libs.git synced 2024-11-07 19:35:19 +02:00
kicad-libs/modules/sod.fpd
Werner Almesberger 34bf59dd80 sod.fpd (SOD-123): add SOD-123 (~4.5 x 1.7 mm diode) footprint
Guesswork based on the following body and footprint measures:

Dimension	Comchip (CGRKM400x)	Rohm (RR264M-400)	MCC (SM400xPL)
---------	-------------------	-----------------	--------------
B		1.4 -  1.8		1.6 +/- 0.1		1.40 - 1.90
H		2.4 -  2.8		2.6 +/- 0.1		2.55 - 3.10
Cx		3.30			3.05			129 mil = 3.3 mm
Px		1.40			0.85			39 mil = 0.9 mm
Py		1.90			1.2			48 mil = 1.2 mm
C

Gap		1.90			2.20			93 mil = 2.4 mm
End-to-end pad	4.70			3.90			165 mil = 4.2 mm

End-to-end pin	3.30-3.70		3.5 +/- 0.12		3.55 - 3.85
2015-01-05 22:42:46 -03:00

61 lines
990 B
Plaintext

/* MACHINE-GENERATED ! */
frame pads {
table
{ n, dx }
{ 1, -1 }
{ 2, 1 }
set x = dx*Cx/2
__0: vec @(x, 0mm)
__1: vec .(Px/2, Py/2)
__2: vec __0(-Px/2, -Py/2)
pad "$n" . __1
}
frame outline {
set _ = 0
loop i = 0, 1
__0: vec @(-H/2, B*(i-0.5))
__1: vec .(H, 0mm)
line __0 . w
}
frame symbol {
set s = B/2-w*2
__0: vec @(-s, s)
__1: vec @(-s, -s)
line . __0 w
__2: vec @(s, 0mm)
line __0 . w
line __1 . w
__3: vec .(0mm, s)
__4: vec __2(0mm, -s)
line __3 . w
}
package "SOD-$name"
unit mm
table
{ name, B, H, Cx, Px, Py }
{ "323", 1.3mm, 1.7mm, 2.4mm, 0.6mm, 0.6mm }
{ "123", 1.8mm, 3mm, 3.3mm, 1mm, 1.2mm }
set w = 5mil
frame pads @
frame outline @
frame symbol @
measy outline.__0 >> outline.__0 1mm
measx outline.__1 << outline.__0 0.5mm
measx pads.__0 >> pads.__0 -B/2-0.5mm
measy pads.__2 -> pads.__1 0.2mm
measx pads.__2 -> pads.__1 -0.2mm
measx pads.__1 >> pads.__2 (B-Py)/2+0.7mm
measx pads.__2 >> pads.__1 -(B-Py)/2-0.7mm