From bec2c6e17c2294ba33ce70c33080bbbe64bfa4e0 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Fri, 13 Jan 2023 12:16:46 +0100
Subject: [PATCH] Add XIAO RP2040 footprint

---
 fab.kicad_sym                    | 209 +++++++++++++++++++++++++++++++
 fab.pretty/XIAO-RP2040.kicad_mod |  54 ++++++++
 2 files changed, 263 insertions(+)
 create mode 100644 fab.pretty/XIAO-RP2040.kicad_mod

diff --git a/fab.kicad_sym b/fab.kicad_sym
index 47c36bc..5dd5c26 100644
--- a/fab.kicad_sym
+++ b/fab.kicad_sym
@@ -504,6 +504,88 @@
       )
     )
   )
+  (symbol "CP_Elec_D8.0mm" (pin_numbers hide) (in_bom yes) (on_board yes)
+    (property "Reference" "C" (id 0) (at 1.27 2.54 0)
+      (effects (font (size 1.27 1.27)) (justify left))
+    )
+    (property "Value" "CP_Elec_D8.0mm" (id 1) (at 1.27 -2.54 0)
+      (effects (font (size 1.27 1.27)) (justify left))
+    )
+    (property "Footprint" "fab:CP_Elec_D8.0mm" (id 2) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "Datasheet" "https://na.industrial.panasonic.com/file-download/19641" (id 3) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_keywords" "cap capacitor" (id 4) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_description" "Polarized capacitor, SMD, radial" (id 5) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_fp_filters" "*CP*" (id 6) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (symbol "CP_Elec_D8.0mm_0_1"
+      (rectangle (start -2.54 -0.635) (end 2.54 -1.27)
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type outline))
+      )
+      (polyline
+        (pts
+          (xy -1.27 1.905)
+          (xy -1.27 3.175)
+        )
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy -0.635 2.54)
+          (xy -1.905 2.54)
+        )
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy 0 -1.27)
+          (xy 0 -2.54)
+        )
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy 0 2.54)
+          (xy 0 1.27)
+        )
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy -2.54 -1.27)
+          (xy -2.54 1.27)
+          (xy 2.54 1.27)
+          (xy 2.54 -1.27)
+          (xy -2.54 -1.27)
+        )
+        (stroke (width 0.254) (type default) (color 0 0 0 0))
+        (fill (type background))
+      )
+    )
+    (symbol "CP_Elec_D8.0mm_1_1"
+      (pin passive line (at 0 5.08 270) (length 2.54)
+        (name "~" (effects (font (size 1.27 1.27))))
+        (number "1" (effects (font (size 1.27 1.27))))
+      )
+      (pin passive line (at 0 -5.08 90) (length 2.54)
+        (name "~" (effects (font (size 1.27 1.27))))
+        (number "2" (effects (font (size 1.27 1.27))))
+      )
+    )
+  )
   (symbol "C_1206" (pin_numbers hide) (in_bom yes) (on_board yes)
     (property "Reference" "C" (id 0) (at 0.635 2.54 0)
       (effects (font (size 1.27 1.27)) (justify left))
@@ -8012,6 +8094,90 @@
       )
     )
   )
+  (symbol "Module_XIAO-RP2040" (in_bom yes) (on_board yes)
+    (property "Reference" "M" (id 0) (at 0 0 0)
+      (effects (font (size 1.27 1.27)))
+    )
+    (property "Value" "Module_XIAO-RP2040" (id 1) (at 0 2.54 0)
+      (effects (font (size 1.27 1.27)))
+    )
+    (property "Footprint" "fab:XIAO-RP2040" (id 2) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "Datasheet" "https://wiki.seeedstudio.com/XIAO-RP2040/" (id 3) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_keywords" "XIAO RP2040" (id 4) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_description" "RP2040 XIAO RP2040 - ARM® Cortex®-M0+ MCU 32-Bit Embedded Evaluation Board" (id 5) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (symbol "Module_XIAO-RP2040_0_1"
+      (rectangle (start -12.7 10.16) (end 13.97 -10.16)
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type background))
+      )
+    )
+    (symbol "Module_XIAO-RP2040_1_1"
+      (pin bidirectional line (at -15.24 7.62 0) (length 2.54)
+        (name "D0" (effects (font (size 1.27 1.27))))
+        (number "1" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at 16.51 -2.54 180) (length 2.54)
+        (name "D9" (effects (font (size 1.27 1.27))))
+        (number "10" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at 16.51 0 180) (length 2.54)
+        (name "D10" (effects (font (size 1.27 1.27))))
+        (number "11" (effects (font (size 1.27 1.27))))
+      )
+      (pin power_in line (at 16.51 2.54 180) (length 2.54)
+        (name "3V3" (effects (font (size 1.27 1.27))))
+        (number "12" (effects (font (size 1.27 1.27))))
+      )
+      (pin power_in line (at 16.51 5.08 180) (length 2.54)
+        (name "GND" (effects (font (size 1.27 1.27))))
+        (number "13" (effects (font (size 1.27 1.27))))
+      )
+      (pin power_in line (at 16.51 7.62 180) (length 2.54)
+        (name "5V" (effects (font (size 1.27 1.27))))
+        (number "14" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -15.24 5.08 0) (length 2.54)
+        (name "D1" (effects (font (size 1.27 1.27))))
+        (number "2" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -15.24 2.54 0) (length 2.54)
+        (name "D2" (effects (font (size 1.27 1.27))))
+        (number "3" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -15.24 0 0) (length 2.54)
+        (name "D3" (effects (font (size 1.27 1.27))))
+        (number "4" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -15.24 -2.54 0) (length 2.54)
+        (name "D4" (effects (font (size 1.27 1.27))))
+        (number "5" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -15.24 -5.08 0) (length 2.54)
+        (name "D5" (effects (font (size 1.27 1.27))))
+        (number "6" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at -15.24 -7.62 0) (length 2.54)
+        (name "D6" (effects (font (size 1.27 1.27))))
+        (number "7" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at 16.51 -7.62 180) (length 2.54)
+        (name "D7" (effects (font (size 1.27 1.27))))
+        (number "8" (effects (font (size 1.27 1.27))))
+      )
+      (pin bidirectional line (at 16.51 -5.08 180) (length 2.54)
+        (name "D8" (effects (font (size 1.27 1.27))))
+        (number "9" (effects (font (size 1.27 1.27))))
+      )
+    )
+  )
   (symbol "MotorDriver_BipolarStepper_A4982" (in_bom yes) (on_board yes)
     (property "Reference" "U" (id 0) (at -12.7 24.13 0)
       (effects (font (size 1.27 1.27)) (justify left))
@@ -10375,6 +10541,49 @@
       )
     )
   )
+  (symbol "Regulator_Linear_TI_LM1085ISX-5.0V-3A" (in_bom yes) (on_board yes)
+    (property "Reference" "U" (id 0) (at -5.08 6.35 0)
+      (effects (font (size 1.27 1.27)) (justify left))
+    )
+    (property "Value" "Regulator_Linear_TI_LM1085ISX-5.0V-3A" (id 1) (at -5.08 3.81 0)
+      (effects (font (size 1.27 1.27)) (justify left))
+    )
+    (property "Footprint" "fab:TO-263-3" (id 2) (at 6.35 -8.89 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "Datasheet" "https://www.ti.com/lit/ds/symlink/lm1085.pdf" (id 3) (at 15.24 -6.35 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_keywords" "LDO linear regulator fixed " (id 4) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_description" "3A 5.0V Linear LDO Regulator " (id 5) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (property "ki_fp_filters" "SOT?223*TabPin2*" (id 6) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (symbol "Regulator_Linear_TI_LM1085ISX-5.0V-3A_0_1"
+      (rectangle (start -5.08 2.54) (end 5.08 -2.54)
+        (stroke (width 0.254) (type default) (color 0 0 0 0))
+        (fill (type background))
+      )
+    )
+    (symbol "Regulator_Linear_TI_LM1085ISX-5.0V-3A_1_1"
+      (pin power_in line (at -7.62 0 0) (length 2.54)
+        (name "GND" (effects (font (size 1.27 1.27))))
+        (number "1" (effects (font (size 1.27 1.27))))
+      )
+      (pin power_out line (at 0 -5.08 90) (length 2.54)
+        (name "VO" (effects (font (size 1.27 1.27))))
+        (number "2" (effects (font (size 1.27 1.27))))
+      )
+      (pin power_in line (at 7.62 0 180) (length 2.54)
+        (name "VI" (effects (font (size 1.27 1.27))))
+        (number "3" (effects (font (size 1.27 1.27))))
+      )
+    )
+  )
   (symbol "Regulator_Linear_ZLDO1117-3.3V-1A" (in_bom yes) (on_board yes)
     (property "Reference" "U" (id 0) (at -5.08 6.35 0)
       (effects (font (size 1.27 1.27)) (justify left))
diff --git a/fab.pretty/XIAO-RP2040.kicad_mod b/fab.pretty/XIAO-RP2040.kicad_mod
new file mode 100644
index 0000000..856cab8
--- /dev/null
+++ b/fab.pretty/XIAO-RP2040.kicad_mod
@@ -0,0 +1,54 @@
+(footprint "XIAO-RP2040" (version 20211014) (generator pcbnew)
+  (layer "F.Cu")
+  (tedit 63C13CAB)
+  (attr through_hole)
+  (fp_text reference "REF**" (at 0.0025 -2.149 unlocked) (layer "F.SilkS")
+    (effects (font (size 1 1) (thickness 0.15)))
+    (tstamp cfa6ece6-c4c2-463e-8243-39f87684a7cc)
+  )
+  (fp_text value "XIAO-RP2040" (at 0.0025 0.391 unlocked) (layer "F.Fab")
+    (effects (font (size 1 1) (thickness 0.15)))
+    (tstamp 2b94326e-f7bf-4dbf-8a23-87f97d0455b1)
+  )
+  (fp_text user "${REFERENCE}" (at 0.0025 2.931 unlocked) (layer "F.Fab")
+    (effects (font (size 1 1) (thickness 0.15)))
+    (tstamp e73ce984-61c1-440b-8d6a-e6928e7cdf0d)
+  )
+  (fp_line (start 8.8925 -9.261) (end 8.8925 9.281) (layer "F.SilkS") (width 0.12) (tstamp 38245fc1-692f-48ac-9b95-5dcdd53bb2cc))
+  (fp_line (start 7.6225 10.551) (end -7.6175 10.551) (layer "F.SilkS") (width 0.12) (tstamp 638e5762-3393-4aac-bae2-df655c0ccfc4))
+  (fp_line (start -7.6175 -10.531) (end 7.6225 -10.531) (layer "F.SilkS") (width 0.12) (tstamp 71460dc8-1303-4cb6-9774-8aa1dc362bbf))
+  (fp_line (start -8.8875 9.281) (end -8.8875 -9.261) (layer "F.SilkS") (width 0.12) (tstamp 80000a89-87b5-4e6a-92e9-64ba20dbcc58))
+  (fp_rect (start -4.4975 -10.531) (end 4.5025 -12.055) (layer "F.SilkS") (width 0.12) (fill none) (tstamp 253b9a93-2e8d-4cf3-ba9b-71ba91ed7a3a))
+  (fp_arc (start -7.6175 10.551) (mid -8.515526 10.179026) (end -8.8875 9.281) (layer "F.SilkS") (width 0.12) (tstamp 4dcf95d2-8f09-4bdb-8a06-5c371d680091))
+  (fp_arc (start 8.8925 9.281) (mid 8.520526 10.179026) (end 7.6225 10.551) (layer "F.SilkS") (width 0.12) (tstamp 77107900-8d99-4f0d-b62a-0b3ea5be1118))
+  (fp_arc (start 7.6225 -10.531) (mid 8.520526 -10.159026) (end 8.8925 -9.261) (layer "F.SilkS") (width 0.12) (tstamp 97526e5b-f3c1-4be4-bbaf-223c60948cda))
+  (fp_arc (start -8.8875 -9.261) (mid -8.515526 -10.159026) (end -7.6175 -10.531) (layer "F.SilkS") (width 0.12) (tstamp c7439e90-c6b8-47b2-9d17-a06c395fe26e))
+  (pad "1" thru_hole circle (at -7.615 -7.62) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp 0978854b-7f2d-4e70-81ad-b8366855ab91))
+  (pad "1" smd rect (at -7.615 -7.62) (size 3 1.6) (drill (offset -1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp d31db8db-89c1-40f0-bfab-e8bf15aede48))
+  (pad "2" smd rect (at -7.615 -5.08) (size 3 1.6) (drill (offset -1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 66350bd0-f7fa-476b-9807-83f8d68f96d0))
+  (pad "2" thru_hole circle (at -7.615 -5.08) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp bd512a59-de1d-4b9c-8048-3f49a128aa46))
+  (pad "3" smd rect (at -7.615 -2.54) (size 3 1.6) (drill (offset -1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 316a2aa5-275a-46f4-8059-1682a5450774))
+  (pad "3" thru_hole circle (at -7.615 -2.54) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp b16db6aa-eff9-4560-94eb-8f1df0edf71a))
+  (pad "4" smd rect (at -7.615 0) (size 3 1.6) (drill (offset -1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 42529937-07e7-472e-ac82-336cf5a05677))
+  (pad "4" thru_hole circle (at -7.615 0) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp 5c7cb454-2c18-4846-afaf-f5e10d93d187))
+  (pad "5" smd rect (at -7.615 2.54) (size 3 1.6) (drill (offset -1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 24bd586a-829a-40ac-b56a-11246cefbefb))
+  (pad "5" thru_hole circle (at -7.615 2.54) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp f7436f03-26d9-479c-aab0-e11def7d02be))
+  (pad "6" thru_hole circle (at -7.615 5.08) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp 4b36c223-022d-4c3f-ac57-c5ae053b1f9e))
+  (pad "6" smd rect (at -7.615 5.08) (size 3 1.6) (drill (offset -1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 6e25e182-ccfc-4fe3-bca2-f4f98164aa72))
+  (pad "7" thru_hole circle (at -7.615 7.62) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp 0cad7052-77a5-4b90-bf34-0ed84016ddb3))
+  (pad "7" smd rect (at -7.615 7.62) (size 3 1.6) (drill (offset -1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 35d69fe0-7251-4c42-8f23-384a09007d17))
+  (pad "8" smd rect (at 7.62 7.62) (size 3 1.6) (drill (offset 1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp ae5bbd03-cbcc-45c1-b3d1-432748b0274a))
+  (pad "8" thru_hole circle (at 7.62 7.62) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp f1c90a01-d865-4407-8359-f50e1ba5b802))
+  (pad "9" thru_hole circle (at 7.62 5.08) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp 7ad10d3a-09b1-4e8b-a5e8-efa9e0b3237d))
+  (pad "9" smd rect (at 7.62 5.08) (size 3 1.6) (drill (offset 1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 93b15e6e-ce64-44f0-bc4f-290ec39b1310))
+  (pad "10" smd rect (at 7.62 2.54) (size 3 1.6) (drill (offset 1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 10764568-1563-4aa0-99cb-bf752e02b3a9))
+  (pad "10" thru_hole circle (at 7.62 2.54) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp 60446987-166e-4f5e-a379-f511e2f43c81))
+  (pad "11" smd rect (at 7.62 0) (size 3 1.6) (drill (offset 1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 7dda8ea0-8b74-497e-98e4-0dbfe15141f6))
+  (pad "11" thru_hole circle (at 7.62 0) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp f269a509-6bf1-4ac7-8fb0-11dc2a89d75a))
+  (pad "12" thru_hole circle (at 7.62 -2.54) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp caf74a56-3653-4b15-9eb3-a201b31ab6ac))
+  (pad "12" smd rect (at 7.62 -2.54) (size 3 1.6) (drill (offset 1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp fbb8f479-da94-4390-a23a-87ce541abc9a))
+  (pad "13" smd rect (at 7.62 -5.08) (size 3 1.6) (drill (offset 1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 09b901c3-622a-41d4-bf24-31eb343b71c7))
+  (pad "13" thru_hole circle (at 7.62 -5.08) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp f1a2b3d3-f238-4c2b-afc9-11873f409bc5))
+  (pad "14" smd rect (at 7.62 -7.62) (size 3 1.6) (drill (offset 1 0)) (layers "F.Cu" "F.Paste" "F.Mask") (tstamp 411fe260-6962-4a42-bab6-fe9c8baa008e))
+  (pad "14" thru_hole circle (at 7.62 -7.62) (size 1.6 1.6) (drill 0.8) (layers *.Cu *.Mask) (tstamp fd78f13b-b630-4092-83f4-19bcc526489b))
+)
-- 
GitLab