X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=3d-printables%2Fwheel-data.scad;h=70dc71039d081f537db10ccc54f10b20bcce0a10;hb=e8e5701429b510a164ee9cac12920913692fac75;hp=97b885bd31f6567bf8e5c080a23c010575ad0bcd;hpb=c513c8ee3d93c136e08ec45c88d1a162745db0e1;p=challenge-bot diff --git a/3d-printables/wheel-data.scad b/3d-printables/wheel-data.scad index 97b885b..70dc710 100644 --- a/3d-printables/wheel-data.scad +++ b/3d-printables/wheel-data.scad @@ -21,8 +21,8 @@ wheel_width = 7; wheel_radius = sqrt(2 * pow(wheel_square_spoke_size / 2, 2)) + wall_width / 2 + 1; -motor_shaft_radius = 3.7; -motor_shaft_flat_width = 4.8; +motor_shaft_radius = 3.9; +motor_shaft_flat_width = 5.2; tread_radius = 4 / 2; @@ -67,13 +67,19 @@ module wheel(radius, shaft_flat_width, wall_width, tread_radius) { + spoke_count = 7; + spoke_width = radius / 3; difference() { rim(radius, wall_width * 2, width); translate([0, 0, width / 2]) { tread(radius, tread_radius); } } linear_extrude(height = wheel_square_spoke_thickness) { difference() { - square(wheel_square_spoke_size, center = true); + union(){ + for(spoke = [0: spoke_count - 1]) { + rotate(spoke * 360 / spoke_count) { + translate([-spoke_width / 2, 0]){ + square([spoke_width, radius - 2]); } } } } mounting_screw_flat(); } } translate([0, 0, wheel_square_spoke_thickness]) { motor_shaft_holder(shaft_radius,