2 # Copyright 2020 by Bdale Garbee <bdale@gag.com>. GPLv3
4 # Program to emit PCB footprint for switchcraft 5-pin mini-XLR, TRAPC5MX
7 # dimensions in mils from TRAPC_X-TRASM_X_SERIES_CD.PDF
8 # reference plane is board edge (shoulder for box wall opening)
10 BodyWidth = 530 # connector body outline
12 NoseWidth = 437 # threaded "snout" that projects through box wall
15 Mnt_Y = 135 # how far mounting studs are back from plane
16 Mnt_X = 470 # mounting studs center to center
17 Mnt_Drill = 70 # mounting hole diameter
18 Mnt_Thickness = 120 # mounting hole pad diameter
19 Mnt_Mask = 130 # opening in mask for mounting hole
21 Pin_Y = (110 + Mnt_Y) # how far first pin row is back from plane
22 PinSpacing = 100 # space between rows and between pins in a row
23 Pin_Drill = 40 # signal pin hole diameter
24 Pin_Thickness = 65 # signal pin hole pad diameter
25 Pin_Mask = 75 # opening in mask for signal pin
32 print ('# author: Bdale Garbee')
33 print ('# email: bdale@gag.com')
34 print ('# dist-license: GPL 3')
35 print ('# use-license: unlimited')
37 # Pin (rX rY Thickness Clearance Mask Drill "Name" "Number" NFlags)
39 print ('Element[0x0 "trapc5mx" "" "" 0 0 0 0 0 100 0x0]')
79 (Pin_Y + PinSpacing), \
88 (Pin_Y + PinSpacing), \
97 (Pin_Y + PinSpacing), \
102 '"pin4" "4" 0x0001)')
104 print (' ElementLine(',\
112 print (' ElementLine(',\
120 print (' ElementLine(',\
128 print (' ElementLine(',\
136 print (' ElementLine(',\
144 print (' ElementLine(',\
152 print (' ElementLine(',\
160 print (' ElementLine(',\