From a0e651d1057ed785fb18f7de0bf4a994632c184a Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Sun, 21 Jun 2020 21:22:45 +0300
Subject: [PATCH] Add Regulator_Linear_LM3480-3.3V with valid SOT-23 footprint

---
 fab.dcm                     |  6 ++++++
 fab.lib                     | 18 ++++++++++++++++++
 fab.pretty/SOT-23.kicad_mod | 35 +++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)
 create mode 100644 fab.pretty/SOT-23.kicad_mod

diff --git a/fab.dcm b/fab.dcm
index fed4260..e111bfa 100644
--- a/fab.dcm
+++ b/fab.dcm
@@ -151,6 +151,12 @@ K resistor variable trimmer
 F https://www.ttelectronics.com/TTElectronics/media/ProductFiles/Trimmers/Datasheets/23.pdf
 $ENDCMP
 #
+$CMP Regulator_Linear_LM3480-3.3V
+D 100mA, Quasi Low Dropout Voltage Regulator, 3.3V positive fixed output, SOT-23 package
+K ldo linear fixed positive
+F https://www.ti.com/lit/ds/symlink/lm3480.pdf
+$ENDCMP
+#
 $CMP STEPPER_DRIVER_A4982
 D Bipolar Motor Driver DMOS Logic 24-TSSOP-EP Allegro MicroSystems A4982SLPTR-T
 K bipolar half bridge h-bridge motor driver allegro microsystems
diff --git a/fab.lib b/fab.lib
index ff16c7b..159b8af 100644
--- a/fab.lib
+++ b/fab.lib
@@ -2572,6 +2572,24 @@ X 3 3 0 -150 50 U 50 50 1 1 P
 ENDDRAW
 ENDDEF
 #
+# Regulator_Linear_LM3480-3.3V
+#
+DEF Regulator_Linear_LM3480-3.3V U 0 10 Y Y 1 F N
+F0 "U" -150 125 50 H V C CNN
+F1 "Regulator_Linear_LM3480-3.3V" 0 125 50 H V L CNN
+F2 "fab:SOT-23" 0 225 50 H I C CIN
+F3 "" 0 0 50 H I C CNN
+$FPLIST
+ SOT?23*
+$ENDFPLIST
+DRAW
+S -200 75 200 -200 0 1 10 f
+X VO 1 300 0 100 L 50 50 1 1 w
+X VI 2 -300 0 100 R 50 50 1 1 W
+X GND 3 0 -300 100 U 50 50 1 1 W
+ENDDRAW
+ENDDEF
+#
 # SOLDER_JUMPER
 #
 DEF SOLDER_JUMPER M 0 40 N Y 1 L N
diff --git a/fab.pretty/SOT-23.kicad_mod b/fab.pretty/SOT-23.kicad_mod
new file mode 100644
index 0000000..e266637
--- /dev/null
+++ b/fab.pretty/SOT-23.kicad_mod
@@ -0,0 +1,35 @@
+(module SOT-23 (layer F.Cu) (tedit 58CE4E7E)
+  (descr "SOT-23, Standard")
+  (tags SOT-23)
+  (attr smd)
+  (fp_text reference REF** (at 0 -2.5) (layer F.SilkS)
+    (effects (font (size 1 1) (thickness 0.15)))
+  )
+  (fp_text value SOT-23 (at 0 2.5) (layer F.Fab)
+    (effects (font (size 1 1) (thickness 0.15)))
+  )
+  (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))
+  (model ${KISYS3DMOD}/TO_SOT_Packages_SMD.3dshapes/SOT-23.wrl
+    (at (xyz 0 0 0))
+    (scale (xyz 1 1 1))
+    (rotate (xyz 0 0 0))
+  )
+)
-- 
GitLab