--- /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,
+ "G", "3");
+
+pad_mm(0, gnd_y,
+ gnd_width, gnd_height,
+ "D", "1");
+
+pad_mm(pad_space/2, 0,
+ pad_width, pad_height,
+ "S", "2");
+
+rect(-pkg_width / 2, pkg_center_y - pkg_height/2, pkg_width, pkg_height);
+
+element_end();
LED red 0603diode smt no LTST-C190KAKT digikey 160-1433-1-ND
LED yellow 0603diode smt no LTST-C191KSKT digikey 160-1448-1-ND
MOSFET Si7232DN 1212-8 smt no SI7232DN-T1-GE3 mouser 781-SI7232DN-GE3
-MOSFET IRLR8743PbF TO252AA smt no IRLR8743PbF digikey IRLR8743PBF-ND
+MOSFET IRLR8743PbF TO252FET smt no IRLR8743PbF digikey IRLR8743PBF-ND
NPN_TRANSISTOR MMBT2222A SOT23 smt no MMBT2222A digikey MMBT2222AFSCT-ND
PHOTORESISTOR PDV-P8103 100mil2pin throughhole no PDV-P8103 digikey PDV-P8103-ND
RELAY G5RL-1(A) g5rl1ae throughhole no G5RL-1A-E-HR-DC5 mouser 653-G5RL-1AEHR-DC5
P 600 0 600 200 1 0 0
{
T 700 150 5 10 1 1 180 6 1
-pinnumber=1
+pinnumber=3
T 550 100 9 10 1 1 180 0 1
pinlabel=G
T 500 0 5 10 0 0 90 0 1
-pinseq=1
+pinseq=3
T 500 0 5 10 0 0 90 0 1
pintype=pas
}
P 200 500 0 500 1 0 1
{
T 105 545 5 10 1 1 0 6 1
-pinnumber=2
+pinnumber=1
T 55 295 9 10 1 1 0 0 1
pinlabel=D
T 100 300 5 10 0 0 90 0 1
-pinseq=2
+pinseq=1
T 100 300 5 10 0 0 90 0 1
pintype=pas
}
P 600 500 800 500 1 0 1
{
T 695 545 5 10 1 1 0 0 1
-pinnumber=3
+pinnumber=2
T 745 295 9 10 1 1 0 6 1
pinlabel=S
T 800 300 5 10 0 0 90 0 1
-pinseq=3
+pinseq=2
T 800 300 5 10 0 0 90 0 1
pintype=pas
}
L 200 200 600 200 3 0 0 0 -1 -1
L 400 250 400 400 3 0 0 0 -1 -1
L 400 400 600 400 3 0 0 0 -1 -1
-T -5 -30 8 10 0 1 0 0 1
-footprint=TO252