add switching diode to library

This commit is contained in:
King Kévin 2014-03-12 15:32:12 +01:00
parent 8e3d4d4dc4
commit ee25d366b8
3 changed files with 109 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# footprint for a switching diode
# manufacturer: Diodes
# part number: S1M-13-F
# datasheet: http://www.diodes.com/datasheets/ds16003.pdf
Element["" "SMA" "" "diodes S1M-13-F" 0 0 0 0 0 100 ""]
(
ElementLine[-2.15mm -1.303mm 2.15mm -1.303mm 0.2mm]
ElementLine[2.15mm -1.303mm 2.15mm 1.303mm 0.2mm]
ElementLine[2.15mm 1.303mm -2.15mm 1.303mm 0.2mm]
ElementLine[-2.15mm 1.303mm -2.15mm -1.303mm 0.2mm]
ElementLine[-1.15mm 1.303mm -1.15mm -1.303mm 0.2mm]
Pad[-2.4mm 0.0mm -1.75mm 0.0mm 1.7mm 0.4mm 1.85mm "" "C" "square"]
Pad[1.6mm 0.0mm 2.25mm 0.0mm 1.7mm 0.4mm 1.85mm "" "A" "square"]
)

View File

@ -0,0 +1,46 @@
#!/usr/bin/env ruby
# encoding: utf-8
# written for ruby 2.1.0
# generate a footprint (see script for more information)
require_relative 'element'
# global dimensions
UNIT = "mm"
SILKSCREEN = 0.2
SOLDERMASK = 0.075
CLEARANCE = 0.4
name = File.basename(__FILE__,".rb")+".fp"
File.open(name,"w") do |fp|
# put some information
fp.puts "# footprint for a switching diode"
fp.puts "# manufacturer: Diodes"
fp.puts "# part number: S1M-13-F"
fp.puts "# datasheet: http://www.diodes.com/datasheets/ds16003.pdf"
# define element
# center is center of device
fp.puts element("Element",["","SMA","","diodes S1M-13-F",:"0",:"0",:"0",:"0",:"0",:"100",""])
fp.puts "("
# outline
bottom = (2.29+2.92)/2/2
top = -1*bottom
right = (4.0+4.6)/2/2
left = -1*right
fp.puts element("ElementLine",[left,top,right,top,SILKSCREEN])
fp.puts element("ElementLine",[right,top,right,bottom,SILKSCREEN])
fp.puts element("ElementLine",[right,bottom,left,bottom,SILKSCREEN])
fp.puts element("ElementLine",[left,bottom,left,top,SILKSCREEN])
# add cathode band
fp.puts element("ElementLine",[left+1,bottom,left+1,top,SILKSCREEN])
# pads
fp.puts element("Pad",[-4.0/2-2.5/2+1.7/2,0,-4.0/2+2.5/2-1,0,1.7,CLEARANCE,1.7+2*SOLDERMASK,"","C","square"])
fp.puts element("Pad",[4.0/2-2.5/2+1.7/2,0,4.0/2+2.5/2-1,0,1.7,CLEARANCE,1.7+2*SOLDERMASK,"","A","square"])
# end of element
fp.puts ")"
end

View File

@ -0,0 +1,49 @@
v 20140308 2
L 300 400 300 0 3 0 0 0 -1 -1
L 300 400 600 200 3 0 0 0 -1 -1
T 0 700 5 10 0 0 0 0 1
device=switching
L 600 200 300 0 3 0 0 0 -1 -1
L 600 400 600 0 3 0 0 0 -1 -1
P 0 200 200 200 1 0 0
{
T 100 250 5 8 0 1 0 0 1
pinnumber=A
T 100 250 5 8 0 0 0 0 1
pinseq=1
T 100 250 5 8 0 1 0 0 1
pinlabel=anode
T 100 250 5 8 0 1 0 0 1
pintype=pas
}
P 900 200 700 200 1 0 0
{
T 700 250 5 8 0 1 0 0 1
pinnumber=C
T 700 250 5 8 0 0 0 0 1
pinseq=2
T 700 250 5 8 0 1 0 0 1
pinlabel=cathode
T 700 250 5 8 0 1 0 0 1
pintype=pas
}
L 700 200 600 200 3 0 0 0 -1 -1
L 300 200 200 200 3 0 0 0 -1 -1
T 0 500 8 10 1 1 0 0 1
refdes=D?
T 0 900 8 10 0 0 0 0 1
category=diode
T 600 500 8 10 1 1 0 0 1
value=1000V,1A
T 0 1500 8 10 0 0 0 0 1
description=1000V, 1A, 1.1V
T 0 1100 8 10 0 0 0 0 1
manufacturer=diodes
T 0 1300 8 10 0 0 0 0 1
manufacturer-id=S1M-13-F
T 0 1700 8 10 0 0 0 0 1
datasheet=http://www.diodes.com/datasheets/ds16003.pdf
T 0 1900 8 10 0 0 0 0 1
digikey-id=S1M-FDICT-ND
T 0 2100 8 10 0 0 0 0 1
footprint=diode_switching_diodes_S1M-13-F.fp