fix SMA edge connector to have exposed copper on the back, broader gnd pads
[hw/bdale] / pkg / newlib / sma-edge.py
1 #!/usr/bin/python
2 # Copyright 2007 by Bdale Garbee <bdale@gag.com>.  GPLv2
3 #
4 # Program to emit PCB footprint for edge-launch SMA connector
5 #
6
7 # dimensions in 1/100 mil from CONSMA003.062.pdf datasheet, modified to
8 # accomidate a wider range of new and surplus edge-launched SMA connectors
9 PinWidth =    6000      # the center pin
10 GndWidth =   13000      # the "side" pins for the gnd "wings" 
11 PinHeight =  19000
12 PinSpacing = PinWidth / 2 + 4000
13
14 import sys
15
16 print '# author: Bdale Garbee'
17 print '# email: bdale@gag.com'
18 print '# dist-license: GPL 2'
19 print '# use-license: unlimited'
20
21 print 'Element[0x0 "sma-edge" "" "" 0 0 0 0 0 0 0x0]'
22 print "("
23
24 print '   Pad[',\
25         (-PinSpacing - GndWidth/2), \
26         (GndWidth/2), \
27         (-PinSpacing - GndWidth/2), \
28         (PinHeight - GndWidth/2), \
29         (GndWidth), \
30         0, \
31         (GndWidth + 600), \
32         '"pin2"', '"2"', '"square,nopaste"]'
33 print '   Pad[',\
34         (-PinSpacing - GndWidth/2), \
35         (GndWidth/2), \
36         (-PinSpacing - GndWidth/2), \
37         (PinHeight - GndWidth/2), \
38         (GndWidth), \
39         0, \
40         (GndWidth + 600), \
41         '"pin2"', '"2"', '"onsolder,square,nopaste"]'
42 print '   Pad[',\
43         0, \
44         (PinWidth/2), \
45         0, \
46         (PinHeight - PinWidth/2), \
47         (PinWidth), \
48         0, \
49         (PinWidth + 600), \
50         '"pin1"', '"1"', '"square,nopaste"]'
51 print '   Pad[',\
52         (PinSpacing + GndWidth/2), \
53         (GndWidth/2), \
54         (PinSpacing + GndWidth/2), \
55         (PinHeight - GndWidth/2), \
56         (GndWidth), \
57         0, \
58         (GndWidth + 600), \
59         '"pin2"', '"2"', '"square,nopaste"]'
60 print '   Pad[',\
61         (PinSpacing + GndWidth/2), \
62         (GndWidth/2), \
63         (PinSpacing + GndWidth/2), \
64         (PinHeight - GndWidth/2), \
65         (GndWidth), \
66         0, \
67         (GndWidth + 600), \
68         '"pin2"', '"2"', '"onsolder,square,nopaste"]'
69
70 print ")"