From 2a258b92ff4b244afd62514a1feed2027b4deb3a Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Sun, 3 Apr 2022 15:47:41 +0300
Subject: [PATCH] Fix coin cell battery holder according to KLC

---
 fab.kicad_sym                                 | 76 +++++++++++++------
 ...in-Cell_CR2032_Linx_BAT-HLD-001.kicad_mod} |  0
 2 files changed, 54 insertions(+), 22 deletions(-)
 rename fab.pretty/{Coin-Battery-Holder_Linx_BAT-HLD-001_D20mm.kicad_mod => Battery-Holder_Coin-Cell_CR2032_Linx_BAT-HLD-001.kicad_mod} (100%)

diff --git a/fab.kicad_sym b/fab.kicad_sym
index b46bb26..2bd9545 100644
--- a/fab.kicad_sym
+++ b/fab.kicad_sym
@@ -62,17 +62,17 @@
       )
     )
   )
-  (symbol "Battery_Cell" (pin_numbers hide) (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
-    (property "Reference" "BT" (id 0) (at 2.54 2.54 0)
+  (symbol "Battery-Holder_Coin-Cell_CR2032_Linx_BAT-HLD-001" (pin_numbers hide) (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
+    (property "Reference" "BT" (id 0) (at 5.715 1.27 0)
       (effects (font (size 1.27 1.27)) (justify left))
     )
-    (property "Value" "Battery_Cell" (id 1) (at 2.54 0 0)
+    (property "Value" "Battery-Holder_Coin-Cell_CR2032_Linx_BAT-HLD-001" (id 1) (at 5.715 -1.27 0)
       (effects (font (size 1.27 1.27)) (justify left))
     )
-    (property "Footprint" "fab:Coin-Battery-Holder_Linx_BAT-HLD-001_D20mm" (id 2) (at 0 1.524 90)
+    (property "Footprint" "fab:Battery-Holder_Coin-Cell_CR2032_Linx_BAT-HLD-001" (id 2) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (property "Datasheet" "https://linxtechnologies.com/wp/wp-content/uploads/bat-hld-001.pdf" (id 3) (at 0 1.524 90)
+    (property "Datasheet" "https://linxtechnologies.com/wp/wp-content/uploads/bat-hld-001.pdf" (id 3) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
     (property "ki_keywords" "battery cell 2025 2032 retainer holder 20mm" (id 4) (at 0 0 0)
@@ -81,54 +81,86 @@
     (property "ki_description" "Single-cell battery, Linx BAT-HLD-001, Battery Retainer Coin, 20.0mm 1 Cell SMD (SMT) Tab" (id 5) (at 0 0 0)
       (effects (font (size 1.27 1.27)) hide)
     )
-    (symbol "Battery_Cell_0_1"
-      (rectangle (start -2.286 1.778) (end 2.286 1.524)
+    (property "ki_fp_filters" "*Battery?Holder*" (id 6) (at 0 0 0)
+      (effects (font (size 1.27 1.27)) hide)
+    )
+    (symbol "Battery-Holder_Coin-Cell_CR2032_Linx_BAT-HLD-001_0_1"
+      (polyline
+        (pts
+          (xy 0.635 3.81)
+          (xy 1.905 3.81)
+        )
         (stroke (width 0) (type default) (color 0 0 0 0))
-        (fill (type outline))
+        (fill (type none))
       )
-      (rectangle (start -1.5748 1.1938) (end 1.4732 0.6858)
+      (polyline
+        (pts
+          (xy 1.27 4.445)
+          (xy 1.27 3.175)
+        )
         (stroke (width 0) (type default) (color 0 0 0 0))
-        (fill (type outline))
+        (fill (type none))
       )
       (polyline
         (pts
-          (xy 0 0.762)
-          (xy 0 0)
+          (xy -4.445 0)
+          (xy -5.08 0)
+          (xy -5.08 -1.27)
+          (xy -4.445 -1.27)
         )
         (stroke (width 0) (type default) (color 0 0 0 0))
         (fill (type none))
       )
       (polyline
         (pts
-          (xy 0 1.778)
-          (xy 0 2.54)
+          (xy -2.54 0.635)
+          (xy -2.54 -1.27)
+          (xy -1.905 -1.27)
+          (xy -1.905 0.635)
         )
         (stroke (width 0) (type default) (color 0 0 0 0))
         (fill (type none))
       )
       (polyline
         (pts
-          (xy 0.508 3.429)
-          (xy 1.524 3.429)
+          (xy 1.905 0.635)
+          (xy 1.905 -1.27)
+          (xy 2.54 -1.27)
+          (xy 2.54 0.635)
         )
-        (stroke (width 0.254) (type default) (color 0 0 0 0))
+        (stroke (width 0) (type default) (color 0 0 0 0))
         (fill (type none))
       )
       (polyline
         (pts
-          (xy 1.016 3.937)
-          (xy 1.016 2.921)
+          (xy 4.445 0)
+          (xy 5.08 0)
+          (xy 5.08 -1.27)
+          (xy 4.445 -1.27)
         )
-        (stroke (width 0.254) (type default) (color 0 0 0 0))
+        (stroke (width 0) (type default) (color 0 0 0 0))
+        (fill (type none))
+      )
+      (polyline
+        (pts
+          (xy -3.175 2.54)
+          (xy 3.175 2.54)
+          (xy 4.445 1.27)
+          (xy 4.445 -2.54)
+          (xy -4.445 -2.54)
+          (xy -4.445 1.27)
+          (xy -3.175 2.54)
+        )
+        (stroke (width 0) (type default) (color 0 0 0 0))
         (fill (type none))
       )
     )
-    (symbol "Battery_Cell_1_1"
+    (symbol "Battery-Holder_Coin-Cell_CR2032_Linx_BAT-HLD-001_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 -2.54 90) (length 2.54)
+      (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))))
       )
diff --git a/fab.pretty/Coin-Battery-Holder_Linx_BAT-HLD-001_D20mm.kicad_mod b/fab.pretty/Battery-Holder_Coin-Cell_CR2032_Linx_BAT-HLD-001.kicad_mod
similarity index 100%
rename from fab.pretty/Coin-Battery-Holder_Linx_BAT-HLD-001_D20mm.kicad_mod
rename to fab.pretty/Battery-Holder_Coin-Cell_CR2032_Linx_BAT-HLD-001.kicad_mod
-- 
GitLab