X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=3d-printables%2Fwheel.scad;h=4ca975bc11b634ed8e62442b10098bdbde7ccd8b;hb=fd6dae02a5ee04fbd2ca5196a33c9fba8666b05c;hp=bcf91f883e5df16e76b63d3c28169af1830084db;hpb=403f9f0ce4e56304a1b82b1ab3b4df8d5d2a409b;p=challenge-bot diff --git a/3d-printables/wheel.scad b/3d-printables/wheel.scad index bcf91f8..4ca975b 100644 --- a/3d-printables/wheel.scad +++ b/3d-printables/wheel.scad @@ -11,21 +11,21 @@ $fn = 100; use -qr_size = 54; +qr_size = 45; qr_height = 2; wall_width = 3; -wheel_width = 6; +wheel_width = 9; wheel_radius = sqrt(2 * pow(qr_size / 2, 2)) + wall_width / 2; motor_shaft_radius = 3.7; motor_shaft_flat_width = 4.8; -tread_radius = 2.5 / 2; +tread_radius = 4 / 2; module mounting_screw_flat(){ - square(2, center = true);} + circle(0.75);} module motor_shaft_flat(radius, flat_width){ intersection(){ @@ -101,9 +101,38 @@ module wheel(radius, tread_radius); wheel_white();} +module wheel_solid(radius, + width, + shaft_radius, + shaft_flat_width, + wall_width, + tread_radius){ + difference(){ + rim(radius, wall_width * 2, width); + translate([0, 0, width / 2]){ + tread(radius, tread_radius);}} + linear_extrude(height = qr_height){ + difference (){ + square(qr_size, center = true); + mounting_screw_flat(); } } + translate([0, 0, qr_height]){ + motor_shaft_holder(shaft_radius, + shaft_flat_width, + wall_width, + width - qr_height);}} + +/* wheel(wheel_radius, wheel_width, motor_shaft_radius, motor_shaft_flat_width, wall_width, tread_radius); +*/ + +wheel_solid(wheel_radius, + wheel_width, + motor_shaft_radius, + motor_shaft_flat_width, + wall_width, + tread_radius);