3 # generate lihata footprint for 4ucon 11071 tabbed micro USB connector
4 # Copyright 2020 by Bdale Garbee <bdale@gag.com>
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
19 # dimensions taken from 4ucon part drawing
20 # note that we define Y origin to be the board edge, not center mass
25 pad_y = 1.45 + 3.35 - pad_height/2
29 tab_x = 0.2 + tab_width / 2
36 slot_copper = (2.15 - 1.55) / 2
46 fp.description = "4ucon 11071 tabbed micro USB connector"
47 fp.copyright = "Copyright 2020 by Bdale Garbee <bdale@gag.com>"
49 fp.pad({'x' : pad_spacing* 2,
52 'height' : pad_height,
55 fp.pad({'x' : pad_spacing* 1,
58 'height' : pad_height,
61 fp.pad({'x' : pad_spacing* 0,
64 'height' : pad_height,
67 fp.pad({'x' : pad_spacing* -1,
70 'height' : pad_height,
73 fp.pad({'x' : pad_spacing* -2,
76 'height' : pad_height,
80 # mounting "wings", or tabs next to the signal pads
82 fp.pad({'x' : -wing_x,
85 'height' : wing_height,
92 'height' : wing_height,
97 # mounting tabs under package
102 'height' : tab_height,
109 'height' : tab_height,
114 # slots for through-hole mounting tabs
115 fp.slot({'x' : -slot_x,
117 'width' : slot_width,
118 'height' : slot_height,
119 'thickness' : slot_width + slot_copper * 2,
122 fp.slot({'x' : slot_x,
124 'width' : slot_width,
125 'height' : slot_height,
126 'thickness' : slot_width + slot_copper * 2,