From bc02cd240d188c85cc1333510e63b2a2ff516bc7 Mon Sep 17 00:00:00 2001 From: daniel watson Date: Sat, 7 Sep 2013 18:02:38 -0700 Subject: [PATCH] 3d printable wheel --- wheel.scad | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 wheel.scad diff --git a/wheel.scad b/wheel.scad new file mode 100644 index 0000000..aa3d268 --- /dev/null +++ b/wheel.scad @@ -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(); -- 2.30.2