From d42f01cb321c8db9c9aa12da696852605eb645e4 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Sun, 2 Apr 2023 14:23:52 +0300
Subject: [PATCH] Fix connector symbols

---
 fab.kicad_sym | 123 +++++++++++++++++++++++++++-----------------------
 1 file changed, 66 insertions(+), 57 deletions(-)

diff --git a/fab.kicad_sym b/fab.kicad_sym
index fbe642b..4d7af31 100644
--- a/fab.kicad_sym
+++ b/fab.kicad_sym
@@ -970,7 +970,7 @@
     (property "ki_description" "Male JST PH 4 pin connector" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "*Header*JST*PH*" (at 0 0 0)
+    (property "ki_fp_filters" "*Header*JST*SH*" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Conn_Header_JST_SH_1x04_P1mm_Vertical_SMD_0_1"
@@ -1005,10 +1005,10 @@
     (property "Value" "Conn_Jack_Stereo_3.5mm_SMD_RA" (at 0 0 0)
       (effects (font (size 1.27 1.27)))
     )
-    (property "Footprint" "" (at -2.54 0 0)
+    (property "Footprint" "fab:Conn_Jack_Stereo_3.5mm_CUI_SJ-3523-SMT-TR" (at -2.54 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "Datasheet" "" (at -2.54 0 0)
+    (property "Datasheet" "https://www.cuidevices.com/product/resource/sj-352x-smt.pdf" (at -2.54 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (property "ki_keywords" "3.5mm Mini Plug Headphone Phone Jack Stereo TRS Connector Solder CUI Devices SJ-3523-SMT-TR" (at 0 0 0)
@@ -1017,6 +1017,9 @@
     (property "ki_description" "CONN JACK STEREO 3.5MM SMD R/A" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
+    (property "ki_fp_filters" "*CUI?SJ?3523?SMT?TR*" (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
     (symbol "Conn_Jack_Stereo_3.5mm_SMD_RA_0_1"
       (rectangle (start -5.08 3.81) (end 5.08 -3.81)
         (stroke (width 0.254) (type default))
@@ -3139,7 +3142,7 @@
     )
   )
   (symbol "Conn_PinHeader_FTDI_1x06_P2.54mm_Horizontal_SMD" (in_bom yes) (on_board yes)
-    (property "Reference" "J" (at 0 7.62 0)
+    (property "Reference" "J" (at 0 10.16 0)
       (effects (font (size 1.27 1.27)))
     )
     (property "Value" "Conn_PinHeader_FTDI_1x06_P2.54mm_Horizontal_SMD" (at 0 -10.16 0)
@@ -3161,10 +3164,6 @@
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Conn_PinHeader_FTDI_1x06_P2.54mm_Horizontal_SMD_0_0"
-      (rectangle (start -2.54 6.35) (end 2.54 -8.89)
-        (stroke (width 0.254) (type default))
-        (fill (type background))
-      )
       (polyline
         (pts
           (xy 2.54 -7.62)
@@ -3292,6 +3291,12 @@
         (effects (font (size 0.75 0.75)) (justify left))
       )
     )
+    (symbol "Conn_PinHeader_FTDI_1x06_P2.54mm_Horizontal_SMD_1_0"
+      (rectangle (start -2.54 8.89) (end 2.54 -8.89)
+        (stroke (width 0.254) (type default))
+        (fill (type none))
+      )
+    )
     (symbol "Conn_PinHeader_FTDI_1x06_P2.54mm_Horizontal_SMD_1_1"
       (pin passive line (at -5.08 5.08 0) (length 2.54)
         (name "" (effects (font (size 1.27 1.27))))
@@ -3728,14 +3733,10 @@
     (property "ki_description" "Top or Bottom Entry Connector 0.100\" (2.54mm) Surface Mount Tin" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "*PinSocket*1x02*" (at 0 0 0)
+    (property "ki_fp_filters" "*PinSocket*1x03*" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Conn_PinSocket_1x03_P2.54mm_Vertical_SMD_0_0"
-      (rectangle (start -2.54 3.81) (end 2.54 -3.81)
-        (stroke (width 0.254) (type default))
-        (fill (type background))
-      )
       (polyline
         (pts
           (xy 0 0)
@@ -3791,6 +3792,12 @@
         (fill (type outline))
       )
     )
+    (symbol "Conn_PinSocket_1x03_P2.54mm_Vertical_SMD_1_0"
+      (rectangle (start -2.54 3.81) (end 2.54 -3.81)
+        (stroke (width 0.254) (type default))
+        (fill (type none))
+      )
+    )
     (symbol "Conn_PinSocket_1x03_P2.54mm_Vertical_SMD_1_1"
       (pin passive line (at 5.08 2.54 180) (length 2.54)
         (name "Pin_1" (effects (font (size 1.27 1.27))))
@@ -3807,10 +3814,10 @@
     )
   )
   (symbol "Conn_PinSocket_1x04_P2.54mm_Vertical_SMD" (pin_names hide) (in_bom yes) (on_board yes)
-    (property "Reference" "J" (at 0 6.35 0)
+    (property "Reference" "J" (at 0 7.62 0)
       (effects (font (size 1.27 1.27)))
     )
-    (property "Value" "Conn_PinSocket_1x04_P2.54mm_Vertical_SMD" (at 0 -6.35 0)
+    (property "Value" "Conn_PinSocket_1x04_P2.54mm_Vertical_SMD" (at 0 -7.62 0)
       (effects (font (size 1.27 1.27)))
     )
     (property "Footprint" "fab:PinSocket_1x04_P2.54mm_Vertical_SMD" (at 0 0 0)
@@ -3825,101 +3832,103 @@
     (property "ki_description" "Top or Bottom Entry Connector 0.100\" (2.54mm) Surface Mount Tin" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "*PinSocket*1x02*" (at 0 0 0)
+    (property "ki_fp_filters" "*PinSocket*1x04*" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Conn_PinSocket_1x04_P2.54mm_Vertical_SMD_0_0"
-      (rectangle (start -2.54 5.08) (end 2.54 -5.08)
-        (stroke (width 0.254) (type default))
-        (fill (type background))
-      )
       (polyline
         (pts
-          (xy 0 -3.81)
-          (xy -2.54 -3.81)
+          (xy 0 -5.08)
+          (xy -2.54 -5.08)
         )
         (stroke (width 0) (type default))
         (fill (type none))
       )
       (polyline
         (pts
-          (xy 0 1.27)
-          (xy -2.54 1.27)
+          (xy 0 0)
+          (xy -2.54 0)
         )
         (stroke (width 0) (type default))
         (fill (type none))
       )
       (polyline
         (pts
-          (xy 2.54 -1.27)
-          (xy 0 -1.27)
+          (xy 2.54 -2.54)
+          (xy 0 -2.54)
         )
         (stroke (width 0) (type default))
         (fill (type none))
       )
       (polyline
         (pts
-          (xy 2.54 3.81)
-          (xy 0 3.81)
+          (xy 2.54 2.54)
+          (xy 0 2.54)
         )
         (stroke (width 0) (type default))
         (fill (type none))
       )
       (polyline
         (pts
+          (xy 0 -5.715)
+          (xy -0.635 -5.08)
           (xy 0 -4.445)
-          (xy -0.635 -3.81)
-          (xy 0 -3.175)
-          (xy 0 -4.445)
+          (xy 0 -5.715)
         )
         (stroke (width 0) (type default))
         (fill (type outline))
       )
       (polyline
         (pts
+          (xy 0 -3.175)
+          (xy 0.635 -2.54)
           (xy 0 -1.905)
-          (xy 0.635 -1.27)
-          (xy 0 -0.635)
-          (xy 0 -1.905)
+          (xy 0 -3.175)
         )
         (stroke (width 0) (type default))
         (fill (type outline))
       )
       (polyline
         (pts
+          (xy 0 -0.635)
+          (xy -0.635 0)
           (xy 0 0.635)
-          (xy -0.635 1.27)
-          (xy 0 1.905)
-          (xy 0 0.635)
+          (xy 0 -0.635)
         )
         (stroke (width 0) (type default))
         (fill (type outline))
       )
       (polyline
         (pts
+          (xy 0 1.905)
+          (xy 0.635 2.54)
           (xy 0 3.175)
-          (xy 0.635 3.81)
-          (xy 0 4.445)
-          (xy 0 3.175)
+          (xy 0 1.905)
         )
         (stroke (width 0) (type default))
         (fill (type outline))
       )
     )
+    (symbol "Conn_PinSocket_1x04_P2.54mm_Vertical_SMD_1_0"
+      (rectangle (start -2.54 6.35) (end 2.54 -6.35)
+        (stroke (width 0.254) (type default))
+        (fill (type none))
+      )
+    )
     (symbol "Conn_PinSocket_1x04_P2.54mm_Vertical_SMD_1_1"
-      (pin passive line (at 5.08 3.81 180) (length 2.54)
+      (pin passive line (at 5.08 2.54 180) (length 2.54)
         (name "Pin_1" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
       )
-      (pin passive line (at -5.08 1.27 0) (length 2.54)
+      (pin passive line (at -5.08 0 0) (length 2.54)
         (name "Pin_2" (effects (font (size 1.27 1.27))))
         (number "2" (effects (font (size 1.27 1.27))))
       )
-      (pin passive line (at 5.08 -1.27 180) (length 2.54)
+      (pin passive line (at 5.08 -2.54 180) (length 2.54)
         (name "Pin_1" (effects (font (size 1.27 1.27))))
         (number "3" (effects (font (size 1.27 1.27))))
       )
-      (pin passive line (at -5.08 -3.81 0) (length 2.54)
+      (pin passive line (at -5.08 -5.08 0) (length 2.54)
         (name "Pin_2" (effects (font (size 1.27 1.27))))
         (number "4" (effects (font (size 1.27 1.27))))
       )
@@ -3944,14 +3953,10 @@
     (property "ki_description" "Top or Bottom Entry Connector 0.100\" (2.54mm) Surface Mount Tin" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "*PinSocket*1x02*" (at 0 0 0)
+    (property "ki_fp_filters" "*PinSocket?1x05*" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Conn_PinSocket_1x05_P2.54mm_Vertical_SMD_0_0"
-      (rectangle (start -2.54 6.35) (end 2.54 -6.35)
-        (stroke (width 0.254) (type default))
-        (fill (type background))
-      )
       (polyline
         (pts
           (xy 0 -2.54)
@@ -4043,6 +4048,12 @@
         (fill (type outline))
       )
     )
+    (symbol "Conn_PinSocket_1x05_P2.54mm_Vertical_SMD_1_0"
+      (rectangle (start -2.54 6.35) (end 2.54 -6.35)
+        (stroke (width 0.254) (type default))
+        (fill (type none))
+      )
+    )
     (symbol "Conn_PinSocket_1x05_P2.54mm_Vertical_SMD_1_1"
       (pin passive line (at 5.08 5.08 180) (length 2.54)
         (name "Pin_1" (effects (font (size 1.27 1.27))))
@@ -4067,7 +4078,7 @@
     )
   )
   (symbol "Conn_PinSocket_FTDI_1x06_P2.54mm_Horizontal_SMD" (in_bom yes) (on_board yes)
-    (property "Reference" "J" (at 0 7.62 0)
+    (property "Reference" "J" (at 0 10.16 0)
       (effects (font (size 1.27 1.27)))
     )
     (property "Value" "Conn_PinSocket_FTDI_1x06_P2.54mm_Horizontal_SMD" (at 0 -10.16 0)
@@ -4176,13 +4187,11 @@
         (effects (font (size 0.75 0.75)) (justify left))
       )
     )
-    (symbol "Conn_PinSocket_FTDI_1x06_P2.54mm_Horizontal_SMD_0_1"
-      (rectangle (start -5.08 6.35) (end 5.08 -8.89)
+    (symbol "Conn_PinSocket_FTDI_1x06_P2.54mm_Horizontal_SMD_1_1"
+      (rectangle (start -5.08 8.89) (end 5.08 -8.89)
         (stroke (width 0.254) (type default))
-        (fill (type background))
+        (fill (type none))
       )
-    )
-    (symbol "Conn_PinSocket_FTDI_1x06_P2.54mm_Horizontal_SMD_1_1"
       (pin passive line (at -7.62 5.08 0) (length 2.54)
         (name "" (effects (font (size 1.27 1.27))))
         (number "1" (effects (font (size 1.27 1.27))))
@@ -4795,7 +4804,7 @@
     (property "ki_description" "CONN RCPT USB2.0 MICRO B SMD R/A" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "*USB*A*" (at 0 0 0)
+    (property "ki_fp_filters" "*WurthElektronik?629105136821*" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Conn_USB_microB_Socket_WurthElektronik_629105136821_0_1"
@@ -4846,7 +4855,7 @@
     (property "ki_description" "CONN RCPT USB2.0 MINI B SMD R/A" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "ki_fp_filters" "*USB*A*" (at 0 0 0)
+    (property "ki_fp_filters" "*CUIDevices?UJ2?MBH?1?SMT?TR*" (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (symbol "Conn_USB_miniB_Socket_CUIDevices_UJ2-MBH-1-SMT-TR_0_1"
-- 
GitLab