2 # Copyright 2011 by Bdale Garbee <bdale@gag.com>. GPLv2
4 # Program to emit PCB footprint for a 16 pin
5 # Tyco/AMP Micro-MaTch vertical through-hole female connectors
6 # overlaid with a 10-pin
7 # Tyco Electronics Buchanan 2.54mm pitch terminal blocks
10 # dimensions in mm from C_215079_v.pdf datasheet
11 BUPinDiam = 1.1 # screw terminals
12 MMPinDiam = 0.8 # micromatch
26 # we're going to use the 1/100 of a mil fundamental unit form
28 return int( mm / 25.4 * 1000.0 * 100.0 + 0.5 )
35 print '# author: Bdale Garbee'
36 print '# email: bdale@gag.com'
37 print '# dist-license: GPL 2'
38 print '# use-license: unlimited'
40 print 'Element[0x0 "tphybrid" "" "" 0 0 0 0 0 100 0x0]'
42 for col in range ((pins+1)/2):
48 pinnum = (col * 2) + row + 1
59 mm2mils100((pinnum-1)*PinSpacing), \
60 mm2mils100(spacing), \
61 mm2mils100(PinDiam + 0.70), \
63 mm2mils100(PinDiam + 0.86), \
64 mm2mils100(PinDiam), \
65 '"pin%i"' % pinnum, '"%i"' % pinnum, Flags, ']'
68 mm2mils100((-2)*PinSpacing), \
69 mm2mils100(RowSpacing), \
70 mm2mils100(PinDiam + 0.32), \
72 mm2mils100(PinDiam + 0.48), \
73 mm2mils100(PinDiam), \
74 '"pin18"' , '"18"', Flags, ']'
76 # add a hole for the index pin. plated to save non-plated-hole extra fab cost.
79 mm2mils100(RowSpacing-MntY), \
80 mm2mils100(MntDiam)+1400, \
82 mm2mils100(MntDiam)+1400+600, \
83 mm2mils100(MntDiam), \
84 '"mnt" "0"', '0x0001', ']'
86 # pins-2 accounts for the extra pin used by screw terminal overlay
87 BoxX = (pins - 2) * PinSpacing + BoxXbase
90 # re-compute X1 after computing X2 to account for screw terminal overlay
91 BoxX1 = -2*PinSpacing - BoxEnd
92 BoxY1 = -(BoxY - RowSpacing)/2
95 print ' ElementLine[', \
102 print ' ElementLine[', \
109 print ' ElementLine[', \
116 print ' ElementLine[', \