From e0357bc029545555f7b2e1a08d151a9da5d64159 Mon Sep 17 00:00:00 2001
From: Jochen Vothknecht <jochen3120@gmail.com>
Date: Mon, 12 Sep 2022 08:03:26 +0200
Subject: [PATCH] Begin developing toothed belt stuff

---
 scad/gears/ToothedBelt.scad | 38 +++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 scad/gears/ToothedBelt.scad

diff --git a/scad/gears/ToothedBelt.scad b/scad/gears/ToothedBelt.scad
new file mode 100644
index 0000000..2a32dd6
--- /dev/null
+++ b/scad/gears/ToothedBelt.scad
@@ -0,0 +1,38 @@
+
+// TODO: is this a good idea?
+// Diskussion: the other modules (piping etc.) all have a 'strength'-parameter
+// should we just assume a global '$str'-param, set it to our standard value here and let the user override it globally / per call / what ever ?
+// this would avoid repetition and give better integration with our coding scheme!
+$str = 3;
+
+
+
+function ToothedBeltPulleyDiameter(teeth, toothDiameter) = (2 * teeth * toothDiameter) / PI;
+
+
+module ToothedBeltPulleyProfile(teeth, toothDiameter=3) {
+  
+  t  = teeth;
+  td = toothDiameter;
+  
+  d  = ToothedBeltPulleyDiameter(t, td);
+
+
+
+  difference() {
+
+    circle(d=d);
+
+    for (rz=[0 : 360/(teeth) : 360])
+      rotate([0, 0, rz])
+      translate([0, d/2, 0])
+      circle(d=td);
+
+  }  
+  
+}
+
+
+ToothedBeltPulleyProfile(100/2, 3*2, $fn=100);
+
+
-- 
GitLab