3d printable wheel
authordaniel watson <ozzloy@gmail.com>
Sun, 8 Sep 2013 01:02:38 +0000 (18:02 -0700)
committerdaniel watson <ozzloy@gmail.com>
Sun, 8 Sep 2013 01:20:19 +0000 (18:20 -0700)
wheel.scad [new file with mode: 0644]

diff --git a/wheel.scad b/wheel.scad
new file mode 100644 (file)
index 0000000..aa3d268
--- /dev/null
@@ -0,0 +1,30 @@
+// challenge-bot
+// GNU AGPLv3 (or later at your option)
+// project available at these locations:
+// https://gitorious.org/ozzloy/challenge-bot
+// https://github.com/waynegramlich/challenge-bot
+
+module encoder_shaft(){
+  motor_shaft_big = 7/2;
+  motor_shaft_small = 4.65;
+  motor_shaft_length = 7.65 / 2;
+
+  intersection(){
+    cylinder(h = motor_shaft_length,
+             r = motor_shaft_big,
+             center = true,
+             $fn=100);
+    cube([motor_shaft_big * 2.1, motor_shaft_small, motor_shaft_length],
+         center = true);}}
+
+module wheel(){
+  depth = 7.65;
+  radius = 68/2;
+  difference(){
+    cylinder(h = depth, r = radius, center = true, $fn=100);
+    translate([0, 0, 7.65/4])
+      scale([1, 1, 1.1])
+        encoder_shaft();
+    cylinder(h = depth * 1.1, r = 1, $fn = 100, center = true);}}
+
+translate([0, 0, 7.65/2]) wheel();