From b7a51fc7bd35b7fa574fe6f3529eccfa17a909f3 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com> Date: Mon, 22 Mar 2021 22:32:15 +0200 Subject: [PATCH] Revisit MOSFETs, fix pin/footprint mappings, close #4 --- fab.lib | 20 +++++++------- fab.pretty/SOT-23.kicad_mod | 34 ++++++++++++------------ fab.pretty/TO-252.kicad_mod | 45 ++++++++++++++++++++++++++++++++ fab.pretty/fab-SOT-23.kicad_mod | 30 --------------------- fab.pretty/fab-TO252.kicad_mod | 46 --------------------------------- 5 files changed, 72 insertions(+), 103 deletions(-) create mode 100644 fab.pretty/TO-252.kicad_mod delete mode 100644 fab.pretty/fab-SOT-23.kicad_mod delete mode 100644 fab.pretty/fab-TO252.kicad_mod diff --git a/fab.lib b/fab.lib index a813a42..62ed4c0 100644 --- a/fab.lib +++ b/fab.lib @@ -1894,10 +1894,10 @@ ENDDEF # # MOSFET_N-CH_30V_1.7A # -DEF MOSFET_N-CH_30V_1.7A Q 0 40 N N 1 L N +DEF MOSFET_N-CH_30V_1.7A Q 0 40 N N 1 F N F0 "Q" 100 100 45 H V L BNN F1 "MOSFET_N-CH_30V_1.7A" 100 0 45 H V L BNN -F2 "fab:fab-SOT-23" 30 150 20 H I C CNN +F2 "fab:SOT-23" 30 150 20 H I C CNN F3 "" 0 0 50 H I C CNN $FPLIST *SOT-23* @@ -1930,10 +1930,10 @@ ENDDEF # # MOSFET_N-CH_50V_16A # -DEF MOSFET_N-CH_50V_16A Q 0 40 N N 1 L N +DEF MOSFET_N-CH_50V_16A Q 0 40 N N 1 F N F0 "Q" 100 100 45 H V L BNN F1 "MOSFET_N-CH_50V_16A" 100 0 45 H V L BNN -F2 "fab:fab-TO252" 30 150 20 H I C CNN +F2 "fab:TO-252" 30 150 20 H I C CNN F3 "" 0 0 50 H I C CNN $FPLIST *TO252* @@ -1959,17 +1959,17 @@ P 2 1 0 0 55 120 55 30 N P 6 1 1 0 -60 0 -20 25 -20 25 -20 -25 -20 -25 -60 0 F P 6 1 1 0 55 30 80 -10 80 -10 30 -10 30 -10 55 30 F X G 1 -200 -100 100 R 40 40 1 1 P -X S 2 0 -200 100 U 40 40 1 1 P -X D 3 0 200 100 D 40 40 1 1 P +X D 2 0 200 100 D 40 40 1 1 P +X S 3 0 -200 100 U 40 40 1 1 P ENDDRAW ENDDEF # # MOSFET_P-CH_30V_1.1A # -DEF MOSFET_P-CH_30V_1.1A Q 0 40 N N 1 L N +DEF MOSFET_P-CH_30V_1.1A Q 0 40 N N 1 F N F0 "Q" 100 100 45 H V L BNN F1 "MOSFET_P-CH_30V_1.1A" 100 0 45 H V L BNN -F2 "fab:fab-SOT-23" 30 150 20 H I C CNN +F2 "fab:SOT-23" 30 150 20 H I C CNN F3 "" 0 0 50 H I C CNN $FPLIST *SOT-23* @@ -1994,9 +1994,9 @@ P 2 1 0 0 55 -20 55 -120 N P 2 1 0 0 55 120 55 15 N P 6 1 1 0 -5 0 -45 -25 -45 -25 -45 25 -45 25 -5 0 F P 6 1 1 0 55 -20 30 20 30 20 80 20 80 20 55 -20 F -X D 1 0 200 100 D 40 40 1 1 P +X G 1 -200 -100 100 R 40 40 1 1 P X S 2 0 -200 100 U 40 40 1 1 P -X G 3 -200 -100 100 R 40 40 1 1 P +X D 3 0 200 100 D 40 40 1 1 P ENDDRAW ENDDEF # diff --git a/fab.pretty/SOT-23.kicad_mod b/fab.pretty/SOT-23.kicad_mod index e266637..a874309 100644 --- a/fab.pretty/SOT-23.kicad_mod +++ b/fab.pretty/SOT-23.kicad_mod @@ -1,4 +1,4 @@ -(module SOT-23 (layer F.Cu) (tedit 58CE4E7E) +(module SOT-23 (layer F.Cu) (tedit 6058FDF1) (descr "SOT-23, Standard") (tags SOT-23) (attr smd) @@ -8,25 +8,25 @@ (fp_text value SOT-23 (at 0 2.5) (layer F.Fab) (effects (font (size 1 1) (thickness 0.15))) ) + (fp_line (start 0.76 1.58) (end -0.7 1.58) (layer F.SilkS) (width 0.12)) + (fp_line (start 0.76 -1.58) (end -1.4 -1.58) (layer F.SilkS) (width 0.12)) + (fp_line (start -1.7 1.75) (end -1.7 -1.75) (layer F.CrtYd) (width 0.05)) + (fp_line (start 1.7 1.75) (end -1.7 1.75) (layer F.CrtYd) (width 0.05)) + (fp_line (start 1.7 -1.75) (end 1.7 1.75) (layer F.CrtYd) (width 0.05)) + (fp_line (start -1.7 -1.75) (end 1.7 -1.75) (layer F.CrtYd) (width 0.05)) + (fp_line (start 0.76 -1.58) (end 0.76 -0.65) (layer F.SilkS) (width 0.12)) + (fp_line (start 0.76 1.58) (end 0.76 0.65) (layer F.SilkS) (width 0.12)) + (fp_line (start -0.7 1.52) (end 0.7 1.52) (layer F.Fab) (width 0.1)) + (fp_line (start 0.7 -1.52) (end 0.7 1.52) (layer F.Fab) (width 0.1)) + (fp_line (start -0.7 -0.95) (end -0.15 -1.52) (layer F.Fab) (width 0.1)) + (fp_line (start -0.15 -1.52) (end 0.7 -1.52) (layer F.Fab) (width 0.1)) + (fp_line (start -0.7 -0.95) (end -0.7 1.5) (layer F.Fab) (width 0.1)) (fp_text user %R (at 0 0 90) (layer F.Fab) (effects (font (size 0.5 0.5) (thickness 0.075))) ) - (fp_line (start -0.7 -0.95) (end -0.7 1.5) (layer F.Fab) (width 0.1)) - (fp_line (start -0.15 -1.52) (end 0.7 -1.52) (layer F.Fab) (width 0.1)) - (fp_line (start -0.7 -0.95) (end -0.15 -1.52) (layer F.Fab) (width 0.1)) - (fp_line (start 0.7 -1.52) (end 0.7 1.52) (layer F.Fab) (width 0.1)) - (fp_line (start -0.7 1.52) (end 0.7 1.52) (layer F.Fab) (width 0.1)) - (fp_line (start 0.76 1.58) (end 0.76 0.65) (layer F.SilkS) (width 0.12)) - (fp_line (start 0.76 -1.58) (end 0.76 -0.65) (layer F.SilkS) (width 0.12)) - (fp_line (start -1.7 -1.75) (end 1.7 -1.75) (layer F.CrtYd) (width 0.05)) - (fp_line (start 1.7 -1.75) (end 1.7 1.75) (layer F.CrtYd) (width 0.05)) - (fp_line (start 1.7 1.75) (end -1.7 1.75) (layer F.CrtYd) (width 0.05)) - (fp_line (start -1.7 1.75) (end -1.7 -1.75) (layer F.CrtYd) (width 0.05)) - (fp_line (start 0.76 -1.58) (end -1.4 -1.58) (layer F.SilkS) (width 0.12)) - (fp_line (start 0.76 1.58) (end -0.7 1.58) (layer F.SilkS) (width 0.12)) - (pad 3 smd rect (at 1 0) (size 0.9 0.8) (layers F.Cu F.Paste F.Mask)) - (pad 2 smd rect (at -1 0.95) (size 0.9 0.8) (layers F.Cu F.Paste F.Mask)) - (pad 1 smd rect (at -1 -0.95) (size 0.9 0.8) (layers F.Cu F.Paste F.Mask)) + (pad 3 smd rect (at 1 0) (size 1 1) (layers F.Cu F.Paste F.Mask)) + (pad 2 smd rect (at -1 0.85) (size 1 1) (layers F.Cu F.Paste F.Mask)) + (pad 1 smd rect (at -1 -0.85) (size 1 1) (layers F.Cu F.Paste F.Mask)) (model ${KISYS3DMOD}/TO_SOT_Packages_SMD.3dshapes/SOT-23.wrl (at (xyz 0 0 0)) (scale (xyz 1 1 1)) diff --git a/fab.pretty/TO-252.kicad_mod b/fab.pretty/TO-252.kicad_mod new file mode 100644 index 0000000..ab013f7 --- /dev/null +++ b/fab.pretty/TO-252.kicad_mod @@ -0,0 +1,45 @@ +(module TO-252 (layer F.Cu) (tedit 6058FA8E) + (descr "TO-252 Package") + (tags "DPAK TO-252 DPAK-3") + (attr smd) + (fp_text reference REF** (at 0 -4.5) (layer F.SilkS) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_text value TO-252 (at 0 4.5) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (fp_line (start 5.8 -3.5) (end -6 -3.5) (layer F.CrtYd) (width 0.05)) + (fp_line (start 5.8 3.5) (end 5.8 -3.5) (layer F.CrtYd) (width 0.05)) + (fp_line (start -6 3.5) (end 5.8 3.5) (layer F.CrtYd) (width 0.05)) + (fp_line (start -6 -3.5) (end -6 3.5) (layer F.CrtYd) (width 0.05)) + (fp_line (start -2.47 3.18) (end -3.57 3.18) (layer F.SilkS) (width 0.12)) + (fp_line (start -2.47 3.45) (end -2.47 3.18) (layer F.SilkS) (width 0.12)) + (fp_line (start -0.97 3.45) (end -2.47 3.45) (layer F.SilkS) (width 0.12)) + (fp_line (start -2.47 -3.18) (end -5.3 -3.18) (layer F.SilkS) (width 0.12)) + (fp_line (start -2.47 -3.45) (end -2.47 -3.18) (layer F.SilkS) (width 0.12)) + (fp_line (start -0.97 -3.45) (end -2.47 -3.45) (layer F.SilkS) (width 0.12)) + (fp_line (start -4.97 2.655) (end -2.27 2.655) (layer F.Fab) (width 0.1)) + (fp_line (start -4.97 1.905) (end -4.97 2.655) (layer F.Fab) (width 0.1)) + (fp_line (start -2.27 1.905) (end -4.97 1.905) (layer F.Fab) (width 0.1)) + (fp_line (start -4.97 -1.905) (end -2.27 -1.905) (layer F.Fab) (width 0.1)) + (fp_line (start -4.97 -2.655) (end -4.97 -1.905) (layer F.Fab) (width 0.1)) + (fp_line (start -1.865 -2.655) (end -4.97 -2.655) (layer F.Fab) (width 0.1)) + (fp_line (start -1.27 -3.25) (end 3.95 -3.25) (layer F.Fab) (width 0.1)) + (fp_line (start -2.27 -2.25) (end -1.27 -3.25) (layer F.Fab) (width 0.1)) + (fp_line (start -2.27 3.25) (end -2.27 -2.25) (layer F.Fab) (width 0.1)) + (fp_line (start 3.95 3.25) (end -2.27 3.25) (layer F.Fab) (width 0.1)) + (fp_line (start 3.95 -3.25) (end 3.95 3.25) (layer F.Fab) (width 0.1)) + (fp_line (start 4.95 2.7) (end 3.95 2.7) (layer F.Fab) (width 0.1)) + (fp_line (start 3.95 -2.7) (end 4.95 -2.7) (layer F.Fab) (width 0.1)) + (fp_text user %R (at 0 0) (layer F.Fab) + (effects (font (size 1 1) (thickness 0.15))) + ) + (pad 1 smd rect (at -4.2 -2.28) (size 3 1.5) (layers F.Cu F.Paste F.Mask)) + (pad 3 smd rect (at -4.2 2.28) (size 3 1.5) (layers F.Cu F.Paste F.Mask)) + (pad 2 smd rect (at 2.2 0) (size 6.6 6) (layers F.Cu F.Paste F.Mask)) + (model ${KISYS3DMOD}/Package_TO_SOT_SMD.3dshapes/TO-252-2.wrl + (at (xyz 0 0 0)) + (scale (xyz 1 1 1)) + (rotate (xyz 0 0 0)) + ) +) diff --git a/fab.pretty/fab-SOT-23.kicad_mod b/fab.pretty/fab-SOT-23.kicad_mod deleted file mode 100644 index e1fef58..0000000 --- a/fab.pretty/fab-SOT-23.kicad_mod +++ /dev/null @@ -1,30 +0,0 @@ -(module fab:fab-SOT-23 (layer F.Cu) (tedit 200000) - (descr "SMALL OUTLINE TRANSISTOR") - (tags "SMALL OUTLINE TRANSISTOR") - (attr smd) - (fp_text reference >NAME (at 1.778 -3.937) (layer F.SilkS) - (effects (font (size 1.27 1.27) (thickness 0.127))) - ) - (fp_text value >VALUE (at 2.413 -2.413) (layer F.SilkS) - (effects (font (size 1.27 1.27) (thickness 0.127))) - ) - (fp_line (start 0.7874 -0.4318) (end 1.1684 -0.4318) (layer F.SilkS) (width 0.06604)) - (fp_line (start 1.1684 -0.4318) (end 1.1684 -0.9398) (layer F.SilkS) (width 0.06604)) - (fp_line (start 0.7874 -0.9398) (end 1.1684 -0.9398) (layer F.SilkS) (width 0.06604)) - (fp_line (start 0.7874 -0.4318) (end 0.7874 -0.9398) (layer F.SilkS) (width 0.06604)) - (fp_line (start -1.143 -0.4318) (end -0.762 -0.4318) (layer F.SilkS) (width 0.06604)) - (fp_line (start -0.762 -0.4318) (end -0.762 -0.9398) (layer F.SilkS) (width 0.06604)) - (fp_line (start -1.143 -0.9398) (end -0.762 -0.9398) (layer F.SilkS) (width 0.06604)) - (fp_line (start -1.143 -0.4318) (end -1.143 -0.9398) (layer F.SilkS) (width 0.06604)) - (fp_line (start -0.1778 0.9398) (end 0.2032 0.9398) (layer F.SilkS) (width 0.06604)) - (fp_line (start 0.2032 0.9398) (end 0.2032 0.4318) (layer F.SilkS) (width 0.06604)) - (fp_line (start -0.1778 0.4318) (end 0.2032 0.4318) (layer F.SilkS) (width 0.06604)) - (fp_line (start -0.1778 0.9398) (end -0.1778 0.4318) (layer F.SilkS) (width 0.06604)) - (fp_line (start -1.4224 -0.381) (end 1.4732 -0.381) (layer B.SilkS) (width 0.1524)) - (fp_line (start 1.4732 -0.381) (end 1.4732 0.381) (layer B.SilkS) (width 0.1524)) - (fp_line (start 1.4732 0.381) (end -1.4224 0.381) (layer B.SilkS) (width 0.1524)) - (fp_line (start -1.4224 0.381) (end -1.4224 -0.381) (layer B.SilkS) (width 0.1524)) - (pad 1 smd rect (at 0.0254 1.016) (size 0.7874 0.889) (layers F.Cu F.Paste F.Mask)) - (pad 2 smd rect (at -0.9398 -1.016) (size 0.7874 0.889) (layers F.Cu F.Paste F.Mask)) - (pad 3 smd rect (at 0.9906 -1.016) (size 0.7874 0.889) (layers F.Cu F.Paste F.Mask)) -) diff --git a/fab.pretty/fab-TO252.kicad_mod b/fab.pretty/fab-TO252.kicad_mod deleted file mode 100644 index 28c2186..0000000 --- a/fab.pretty/fab-TO252.kicad_mod +++ /dev/null @@ -1,46 +0,0 @@ -(module fab:fab-TO252 (layer F.Cu) (tedit 200000) - (descr "SMALL OUTLINE TRANSISTOR") - (tags "SMALL OUTLINE TRANSISTOR") - (attr smd) - (fp_text reference >NAME (at -4.445 -0.635 90) (layer F.SilkS) - (effects (font (size 1.27 1.27) (thickness 0.1016))) - ) - (fp_text value >VALUE (at 4.445 -1.27 90) (layer F.SilkS) - (effects (font (size 1.27 1.27) (thickness 0.1016))) - ) - (fp_line (start -2.7178 5.1562) (end -1.8542 5.1562) (layer F.SilkS) (width 0.06604)) - (fp_line (start -1.8542 5.1562) (end -1.8542 2.2606) (layer F.SilkS) (width 0.06604)) - (fp_line (start -2.7178 2.2606) (end -1.8542 2.2606) (layer F.SilkS) (width 0.06604)) - (fp_line (start -2.7178 5.1562) (end -2.7178 2.2606) (layer F.SilkS) (width 0.06604)) - (fp_line (start 1.8542 5.1562) (end 2.7178 5.1562) (layer F.SilkS) (width 0.06604)) - (fp_line (start 2.7178 5.1562) (end 2.7178 2.2606) (layer F.SilkS) (width 0.06604)) - (fp_line (start 1.8542 2.2606) (end 2.7178 2.2606) (layer F.SilkS) (width 0.06604)) - (fp_line (start 1.8542 5.1562) (end 1.8542 2.2606) (layer F.SilkS) (width 0.06604)) - (fp_line (start -0.4318 3.0226) (end 0.4318 3.0226) (layer B.SilkS) (width 0.06604)) - (fp_line (start 0.4318 3.0226) (end 0.4318 2.2606) (layer B.SilkS) (width 0.06604)) - (fp_line (start -0.4318 2.2606) (end 0.4318 2.2606) (layer B.SilkS) (width 0.06604)) - (fp_line (start -0.4318 3.0226) (end -0.4318 2.2606) (layer B.SilkS) (width 0.06604)) - (fp_line (start 3.2766 -3.8354) (end 3.2766 2.159) (layer B.SilkS) (width 0.2032)) - (fp_line (start 3.2766 2.159) (end -3.2766 2.159) (layer B.SilkS) (width 0.2032)) - (fp_line (start -3.2766 2.159) (end -3.2766 -3.8354) (layer B.SilkS) (width 0.2032)) - (fp_line (start -3.2766 -3.83286) (end 3.2766 -3.83286) (layer F.SilkS) (width 0.2032)) - (fp_line (start -3.97256 -5.9817) (end 3.97256 -5.9817) (layer F.SilkS) (width 0.0508)) - (fp_line (start 3.97256 5.9817) (end -3.97256 5.9817) (layer F.SilkS) (width 0.0508)) - (fp_line (start -3.97256 5.9817) (end -3.97256 -5.9817) (layer F.SilkS) (width 0.0508)) - (fp_line (start 3.97256 -5.9817) (end 3.97256 5.9817) (layer F.SilkS) (width 0.0508)) - (fp_line (start -2.5654 -3.937) (end -2.5654 -4.6482) (layer F.SilkS) (width 0.2032)) - (fp_line (start -2.5654 -4.6482) (end -2.1082 -5.1054) (layer F.SilkS) (width 0.2032)) - (fp_line (start -2.1082 -5.1054) (end 2.1082 -5.1054) (layer F.SilkS) (width 0.2032)) - (fp_line (start 2.1082 -5.1054) (end 2.5654 -4.6482) (layer F.SilkS) (width 0.2032)) - (fp_line (start 2.5654 -4.6482) (end 2.5654 -3.937) (layer F.SilkS) (width 0.2032)) - (fp_line (start 2.5654 -3.937) (end -2.5654 -3.937) (layer F.SilkS) (width 0.2032)) - (fp_line (start -2.5654 -3.937) (end -2.5654 -4.6482) (layer F.SilkS) (width 0.19812)) - (fp_line (start -2.5654 -4.6482) (end -2.1082 -5.1054) (layer F.SilkS) (width 0.19812)) - (fp_line (start -2.1082 -5.1054) (end 2.1082 -5.1054) (layer F.SilkS) (width 0.19812)) - (fp_line (start 2.1082 -5.1054) (end 2.5654 -4.6482) (layer F.SilkS) (width 0.19812)) - (fp_line (start 2.5654 -4.6482) (end 2.5654 -3.937) (layer F.SilkS) (width 0.19812)) - (fp_line (start 2.5654 -3.937) (end -2.5654 -3.937) (layer F.SilkS) (width 0.19812)) - (pad 1 smd rect (at -2.27838 4.79806) (size 0.99822 1.59766) (layers F.Cu F.Paste F.Mask)) - (pad 2 smd rect (at 2.27838 4.79806) (size 0.99822 1.59766) (layers F.Cu F.Paste F.Mask)) - (pad 3 smd rect (at 0 -2.49936) (size 5.3975 6.1976) (layers F.Cu F.Paste F.Mask)) -) -- GitLab