summaryrefslogtreecommitdiff
path: root/prototype/mech_pcbs/bearing_mount_top.scad
diff options
context:
space:
mode:
Diffstat (limited to 'prototype/mech_pcbs/bearing_mount_top.scad')
-rw-r--r--prototype/mech_pcbs/bearing_mount_top.scad34
1 files changed, 34 insertions, 0 deletions
diff --git a/prototype/mech_pcbs/bearing_mount_top.scad b/prototype/mech_pcbs/bearing_mount_top.scad
new file mode 100644
index 0000000..1c76a1f
--- /dev/null
+++ b/prototype/mech_pcbs/bearing_mount_top.scad
@@ -0,0 +1,34 @@
+/* Linear units are mm */
+
+ext_dia = 32.0;
+int_dia = 6.2;
+h = 10;
+
+mnth_dia = 3.2;
+mnth_ins_dia = 6.0;
+mnth_ins_h = 2.0;
+mnth_center_r = 12.0;
+mnth_num = 4;
+
+bearing_od = 19.0;
+bearing_h = 6.0;
+
+$fn = 64;
+
+translate([0, 0, h])
+rotate(180, [0, 1, 0])
+difference() {
+ cylinder(d=ext_dia, h=h);
+ cylinder(d=int_dia, h=h);
+
+ for (alpha = [0 : 360/mnth_num : 359.9999]) {
+ rotate(alpha, [0, 0, 1])
+ translate([-mnth_center_r, 0, 0])
+ union() {
+ cylinder(d=mnth_dia, h=h);
+ translate([0, 0, h-mnth_ins_h]) cylinder(d=mnth_ins_dia, h=mnth_ins_h);
+ }
+ }
+
+ cylinder(d=bearing_od, h=bearing_h);
+}