From 5b76fbab2a898e9312d3255d3b98d51d429af585 Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Tue, 30 Mar 2021 17:04:15 +0300
Subject: [PATCH] Add StepStick connector

---
 fab.dcm                             |  6 ++++
 fab.lib                             | 28 ++++++++++++++++++
 fab.pretty/Conn_StepStick.kicad_mod | 45 +++++++++++++++++++++++++++++
 3 files changed, 79 insertions(+)
 create mode 100644 fab.pretty/Conn_StepStick.kicad_mod

diff --git a/fab.dcm b/fab.dcm
index 0821609..afa348e 100644
--- a/fab.dcm
+++ b/fab.dcm
@@ -190,6 +190,12 @@ K male FTDI connector
 F ~
 $ENDCMP
 #
+$CMP Conn_StepStick
+D Socket forgGeneric StepStick based on the TMC SilentStepStick layout
+K stepstick motor driver connector
+F https://www.trinamic.com/fileadmin/assets/Products/Eval_Drawings/SilentStepStick-TMC2100_v13.pdf
+$ENDCMP
+#
 $CMP Conn_UPDI_01x02_Male
 D Male UPDI 2 pin connector
 K male UPDI connector
diff --git a/fab.lib b/fab.lib
index 848f6fd..23e32af 100644
--- a/fab.lib
+++ b/fab.lib
@@ -1351,6 +1351,34 @@ X RTS 6 200 -300 150 L 50 50 1 1 P
 ENDDRAW
 ENDDEF
 #
+# Conn_StepStick
+#
+DEF Conn_StepStick J 0 40 Y Y 1 F N
+F0 "J" 100 500 50 H V L CNN
+F1 "Conn_StepStick" 200 -600 50 H V L CNN
+F2 "fab:Conn_StepStick" 200 -700 50 H I L CNN
+F3 "" 0 400 50 H I C CNN
+DRAW
+S -300 -500 300 400 0 1 10 f
+X DIR 1 -400 100 100 R 50 50 1 1 I
+X GND 10 0 -600 100 U 50 50 1 1 W
+X M2B 11 400 0 100 L 50 50 1 1 O
+X M2A 12 400 100 100 L 50 50 1 1 O
+X M1A 13 400 200 100 L 50 50 1 1 O
+X M1B 14 400 300 100 L 50 50 1 1 O
+X VIO 15 -100 500 100 D 50 50 1 1 W
+X GND 16 100 -600 100 U 50 50 1 1 W
+X STEP 2 -400 0 100 R 50 50 1 1 I
+X NC 3 400 -300 100 L 50 50 1 1 N
+X NC 4 400 -400 100 L 50 50 1 1 N
+X CFG3 5 -400 -100 100 R 50 50 1 1 I
+X CFG2 6 -400 -200 100 R 50 50 1 1 I
+X CFG1 7 -400 -300 100 R 50 50 1 1 I
+X EN 8 -400 -400 100 R 50 50 1 1 I
+X VM 9 0 500 100 D 50 50 1 1 W
+ENDDRAW
+ENDDEF
+#
 # Conn_UPDI_01x02_Male
 #
 DEF Conn_UPDI_01x02_Male J 0 40 Y Y 1 F N
diff --git a/fab.pretty/Conn_StepStick.kicad_mod b/fab.pretty/Conn_StepStick.kicad_mod
new file mode 100644
index 0000000..8ca5d09
--- /dev/null
+++ b/fab.pretty/Conn_StepStick.kicad_mod
@@ -0,0 +1,45 @@
+(module Conn_StepStick (layer F.Cu) (tedit 60632F5B)
+  (fp_text reference REF** (at 6.8 -2.54) (layer F.SilkS)
+    (effects (font (size 1 1) (thickness 0.15)))
+  )
+  (fp_text value Conn_StepStick (at 6.35 20.32) (layer F.Fab)
+    (effects (font (size 1 1) (thickness 0.15)))
+  )
+  (fp_line (start -1.27 -1.27) (end 13.97 -1.27) (layer F.SilkS) (width 0.12))
+  (fp_line (start 13.97 -1.27) (end 13.97 19.05) (layer F.SilkS) (width 0.12))
+  (fp_line (start 13.97 19.05) (end -1.27 19.05) (layer F.SilkS) (width 0.12))
+  (fp_line (start -1.27 19.05) (end -1.27 -1.27) (layer F.SilkS) (width 0.12))
+  (fp_line (start -1.5 -1.5) (end 14.2 -1.5) (layer F.CrtYd) (width 0.05))
+  (fp_line (start 14.2 -1.5) (end 14.2 19.3) (layer F.CrtYd) (width 0.05))
+  (fp_line (start 14.2 19.3) (end -1.5 19.3) (layer F.CrtYd) (width 0.05))
+  (fp_line (start -1.5 19.3) (end -1.5 -1.5) (layer F.CrtYd) (width 0.05))
+  (fp_line (start 1.27 -1.27) (end 1.27 19.05) (layer F.SilkS) (width 0.12))
+  (fp_line (start 11.43 -1.27) (end 11.43 19.05) (layer F.SilkS) (width 0.12))
+  (fp_line (start -1.27 -1.27) (end 1.27 -1.27) (layer F.Fab) (width 0.1))
+  (fp_line (start 1.27 -1.27) (end 1.27 19.05) (layer F.Fab) (width 0.1))
+  (fp_line (start 1.27 19.05) (end -1.27 19.05) (layer F.Fab) (width 0.1))
+  (fp_line (start -1.27 19.05) (end -1.27 -1.27) (layer F.Fab) (width 0.1))
+  (fp_line (start 11.43 -1.27) (end 13.97 -1.27) (layer F.Fab) (width 0.1))
+  (fp_line (start 13.97 -1.27) (end 13.97 19.05) (layer F.Fab) (width 0.1))
+  (fp_line (start 13.97 19.05) (end 11.43 19.05) (layer F.Fab) (width 0.1))
+  (fp_line (start 11.43 19.05) (end 11.43 -1.27) (layer F.Fab) (width 0.1))
+  (fp_text user %R (at 6.35 8.89) (layer F.Fab)
+    (effects (font (size 1 1) (thickness 0.15)))
+  )
+  (pad 1 thru_hole rect (at 0 0) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 2 thru_hole circle (at 0 2.54) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 3 thru_hole circle (at 0 5.08) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 4 thru_hole circle (at 0 7.62) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 5 thru_hole circle (at 0 10.16) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 6 thru_hole circle (at 0 12.7) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 7 thru_hole circle (at 0 15.24) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 8 thru_hole circle (at 0 17.78) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 9 thru_hole circle (at 12.7 17.78) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 10 thru_hole circle (at 12.7 15.24) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 11 thru_hole circle (at 12.7 12.7) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 12 thru_hole circle (at 12.7 10.16) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 13 thru_hole circle (at 12.7 7.62) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 14 thru_hole circle (at 12.7 5.08) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 15 thru_hole circle (at 12.7 2.54) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+  (pad 16 thru_hole circle (at 12.7 0) (size 2.2 2.2) (drill 1.5) (layers *.Cu *.Mask))
+)
-- 
GitLab