--- /dev/null
+/*
+ * Copyright © 2015 Keith Packard <keithp@keithp.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+/* TE 2013499-1 USB micro B with solder tangs. Y origin is the board edge */
+
+load "footprint.5c"
+import Footprint;
+
+real pad_width = 0.4;
+real pad_height = 1.35;
+real pad_spacing = 0.65;
+real pad_y = 1.45 + 3.35 - pad_height/2;
+
+real tab_width = 1.9;
+real tab_height = 1.9;
+real tab_x = 0.5 + tab_width / 2;
+real tab_y = 1.45;
+
+real tang_y = 1.45;
+real tang_radius = 0.36;
+real tang_length = 1.2;
+real tang_x = 5.8/2 + tang_radius;
+real tang_copper = 0.22;
+
+real wing_width = 1.6;
+real wing_height = 1.4;
+real wing_x = 2.4 + wing_width/2;
+real wing_y = 1.45 + 3.35 - 0.9;
+
+real pkg_width = 6.1;
+real pkg_height = 7.9;
+real edge_height = 4.8;
+real edge_width = 2 * (wing_inner + wing_width);
+
+element_start("2013499-1");
+
+pad_mm(pad_spacing* 2, pad_y, pad_width, pad_height, "VBUS", "1");
+pad_mm(pad_spacing* 1, pad_y, pad_width, pad_height, "D-", "2");
+pad_mm(pad_spacing* 0, pad_y, pad_width, pad_height, "D+", "3");
+pad_mm(pad_spacing*-1, pad_y, pad_width, pad_height, "HS", "4");
+pad_mm(pad_spacing*-2, pad_y, pad_width, pad_height, "GND", "5");
+
+/* "Wings", which are next to the signal pads */
+
+pad_mm_clear(-wing_x, wing_y, wing_width, wing_height, 0, "GND", "5");
+pad_mm_clear( wing_x, wing_y, wing_width, wing_height, 0, "GND", "5");
+
+/* Tabs under package */
+
+pad_mm_clear(-tab_x, tab_y, tab_width, tab_height, 0, "GND", "5");
+pad_mm_clear( tab_x, tab_y, tab_width, tab_height, 0, "GND", "5");
+
+/* tangs at edges of package */
+
+pin_mm_clear(-tang_x, tang_y - tang_length / 2, tang_radius * 2, tang_copper, 0, "GND", "5");
+pin_mm_clear(-tang_x, tang_y + tang_length / 2, tang_radius * 2, tang_copper, 0, "GND", "5");
+
+pin_mm_clear( tang_x, tang_y - tang_length / 2, tang_radius * 2, tang_copper, 0, "GND", "5");
+pin_mm_clear( tang_x, tang_y + tang_length / 2, tang_radius * 2, tang_copper, 0, "GND", "5");
+
+element_end();
--- /dev/null
+/*
+ * Copyright © 2015 Keith Packard <keithp@keithp.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+ */
+
+/* TO-252/DPAK footprint from ST */
+
+load "footprint.5c";
+import Footprint;
+
+real gnd_width = 6.3;
+real gnd_height = 6.1;
+
+real pad_width = 1.5;
+real pad_height = 2.8;
+real pad_space = 4.572;
+
+real total_height = 10.7;
+real gnd_y = pad_height / 2 + gnd_height / 2 - total_height;
+
+real pkg_width = 6.5;
+real pkg_height = 6.1;
+real pkg_center_y = 1.5/2 - 2.8 - pkg_height/2;
+
+element_start("TO252");
+
+pad_mm(-pad_space/2, 0,
+ pad_width, pad_height,
+ "1", "1");
+
+pad_mm(0, gnd_y,
+ gnd_width, gnd_height,
+ "2", "2");
+
+pad_mm(pad_space/2, 0,
+ pad_width, pad_height,
+ "3", "3");
+
+rect(-pkg_width / 2, pkg_center_y - pkg_height/2, pkg_width, pkg_height);
+
+element_end();
CAPACITOR 0.01uF 0402 smt no CC0402KRX7R9BB103 digikey 311-1349-1-ND
CAPACITOR 0.1uF 0402 smt no C0402C104K8PACTU digikey 399-3027-1-ND
CAPACITOR 0.22uF 0402 smt no LMK105BJ224KV-F digikey 587-1228-1-ND
+CAPACITOR 0.33uF 0402 smt no C1005X5R1E334K050BB digikey 445-8018-1-ND
CAPACITOR 100pF 0402 smt no CC0402JRNPO9BN101 digikey 311-1024-1-ND
CAPACITOR 10nF 0402 smt no 250R07W103KV4T digikey 709-1132-1-ND
CAPACITOR 10pF 0402 smt no GRM1555C1H100JA01D digikey 490-5921-1-ND
CAPACITOR 1.8nF 0402 smt no GRM155R71H182KA01D digikey 490-3246-1-ND
CAPACITOR 18pF 0402 smt no GRM1555C1H180FA01D digikey 490-6203-1-ND
CAPACITOR 1uF 0402 smt no GRM155R60J105KE19D digikey 490-1320-1-ND
+CAPACITOR 10uF 0805 smt no C0805C106Z8VACTU digikey 399-8015-1-ND
CAPACITOR 220pF 0402 smt no UMK105CG221JV-F digikey 587-1215-1-ND
CAPACITOR 22pF 0402 smt no CC0402JRNPO9BN220 digikey 311-1018-1-ND
CAPACITOR 2.2pF 0402 smt no GRM1555C1H2R2CA01D digikey 490-5932-1-ND
CONNECTOR Terminal-4 282834-4 throughhole no 20067 4ucon 20087
CONNECTOR USBcable usbcable handload no 88728-3400 mouser 538-88728-3400
CONNECTOR USBmicroB ZX62-B-5PA smt yes 18575 4ucon 18575
+CONNECTOR USBmicroB 2013499-1 smt no 2013499-1 digikey A107962CT-ND
CONNECTOR USBmicroV 1051330011 smt no 1051330011 digikey WM10134CT-ND
CONNECTOR BNC v-bite smt no 361V504ET digikey 991-1037-ND
CONNECTOR BigTerminal-10 mkds5n-10 throughhole no 1777626 mouser 651-1777626
IC DS1307 SOIJ8 smt no DS1307Z+T&R mouser 700-DS1307ZT&R
IC FT232RQ TI-QFN32 smt no FT232RQ-REEL digikey 768-1008-1-ND
IC HMC5883L LPCC16 smt no HMC5883L-TR digikey 342-1082-1-ND
+IC LD29150DT50R TO252 smt no LD29150DT50R digikey 497-3468-1-ND
IC LM293 8ufson2x2 smt no LM293QT mouser 511-LM293QT
IC LP2985 SOT23-5 smt no LP2985-50DBVR digikey 296-20717-1-ND
IC LPC11U14FHI33 hvqfn33 smt no LPC11U14FHI33/201 avnet LPC11U14FHI33/201
RESISTOR 9.09k 0402 smt no ERJ-2RKF9091X digikey P9.09KLCT-ND
SWITCH On/OFF PNswitchDPDT throughhole no PN22SJNA03QE digikey CKN1191-ND
SWITCH SPDT cus-12 smt no CUS-12TB digikey 563-1102-1-ND
+SWITCH DPST DIP16 throughhole no 206-214 digikey CT206214-ND