X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=wheel.scad;h=87ec2865c38c456da267159bce0b19b41291c92d;hb=2b2202ff20d0fc729637c5191e9481260b0e8eac;hp=2ba290a5985de42f99fe0f43595b7421b0ad2bfe;hpb=6af76e9d99aaacefde6229c1c51721763b1edfd5;p=challenge-bot diff --git a/wheel.scad b/wheel.scad index 2ba290a..87ec286 100644 --- a/wheel.scad +++ b/wheel.scad @@ -4,32 +4,34 @@ // https://gitorious.org/ozzloy/challenge-bot // https://github.com/waynegramlich/challenge-bot +// use $fn = 20 while developing, 100 when about to print +// 20 will make previews fast +// 100 will make printing smooth +$fn = 20; + wheel_depth = 6; wheel_radius = 68/2; module encoder_shaft(){ // measured with calipers, checked against the motor shaft - motor_shaft_big = 3.7; - motor_shaft_small = 4.8; + motor_shaft_big = 3.7; // radius, gets doubled in cylinder + motor_shaft_small = 4.8; // total length of box motor_shaft_length = wheel_depth * 3 / 4; intersection(){ - cylinder(h = motor_shaft_length, - r = motor_shaft_big, - center = true, - $fn = 30); + cylinder(h = motor_shaft_length, r = motor_shaft_big, center = true); // x direction is multiplied by 2 because the radius of the cylinder // goes in both directions. the extra .1 is for overlap cube([motor_shaft_big * 2.1, motor_shaft_small, motor_shaft_length], center = true);}} module mounting_screw(){ - cylinder(h = wheel_depth * 1.1, r = 1, $fn = 30, center = true);} + cylinder(h = wheel_depth * 1.1, r = 1, center = true);} module wheel(){ translate([0, 0, wheel_depth / 2]){ difference(){ - cylinder(h = wheel_depth, r = wheel_radius, center = true, $fn = 30); + cylinder(h = wheel_depth, r = wheel_radius, center = true); translate([0, 0, wheel_depth / 4]){ scale([1, 1, 1.1]){ encoder_shaft();}} @@ -66,6 +68,6 @@ module pie_slice(){ module between_spokes(){ minkowski(){ pie_slice(); - cylinder(h = wheel_depth / 2, r = 1, $fn = 30);}} + cylinder(h = wheel_depth / 2, r = 1);}} wheel();