X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=caster-standoff.scad;h=21e9fca2d0c66c52f3730fe279a372ee516234df;hb=13d2458d4b938f3695fef00958325cbe1416b137;hp=3e5a085e39f8db4e737acc719e0640d9c0444471;hpb=f2a874c1149aca85083703362e435599ae211736;p=challenge-bot diff --git a/caster-standoff.scad b/caster-standoff.scad index 3e5a085..21e9fca 100644 --- a/caster-standoff.scad +++ b/caster-standoff.scad @@ -4,57 +4,111 @@ // https://gitorious.org/ozzloy/challenge-bot // https://github.com/waynegramlich/challenge-bot -$fn = 100; +standoff_radius = 14.732 / 2; // 0.580 / 2 inches from spec sheet +standoff_height = 55; // eyeballed -module ball_screws(){ - between = 14.732; // 0.580 inches - screw_radius = 2.286/2; // 0.090 inches - screw_length = 8; // i eyeballed this - translate([between/2, 0, 0]) cylinder(h = screw_length, r = screw_radius); - translate([-between/2, 0, 0]) cylinder(h = screw_length, r = screw_radius);} +nut_short_side = 4.7; // from calipers +nut_height = 1.6; // from calipers + +// eyeballed caster flange height, (0.580/5) inches, times 2 to be stronger +caster_flange_height = 2.9464; +caster_flange_width = 20.32; // 0.800 inches +caster_flange_screw_radius = 2.286 / 2; // 0.090 inches +caster_flange_screw_length = 8; // eyeballed + +deck_grid_width = 25.4; // measured center to center on grid on pegboard +deck_flange_height = 2.9464; +deck_flange_screw_radius = 3.556 / 2; // For #6 machine screws +deck_flange_radius = deck_grid_width * 1.22; + +module deck_flange(){ + difference(){ + cylinder(h = deck_flange_height, r = deck_flange_radius); + for(ii = [-1, 1]){ + translate([deck_grid_width * ii, 0, -.1]) + cylinder(h = deck_flange_height * 1.1, + r = deck_flange_screw_radius, + $fn = 20);} + for(ii = [-1, 1]){ + translate([0, deck_grid_width * ii, -.1]) + cylinder(h = deck_flange_height * 1.1, + r = deck_flange_screw_radius, + $fn = 20);}}} + +module deck_flange_reinforcement(){ + translate([-deck_flange_radius, + -.5 * deck_flange_height / 2, + deck_flange_height]){ + difference (){ + cube([deck_flange_radius, deck_flange_height / 2, deck_flange_radius]); + translate([-.1, -.05 * deck_flange_height, 0]){ + rotate([0, -45, 0]){ + cube([deck_flange_radius * 1.5, // 1.5 is bigger than sqrt(2) + deck_flange_height * 1.1, // 1.1 is bigger than 1 + deck_flange_radius]);}}}}} + +module caster_flange_screws(){ + translate([standoff_radius, 0, 0]) + cylinder(h = caster_flange_screw_length, + r = caster_flange_screw_radius, + $fn = 20); + translate([-standoff_radius, 0, 0]) + cylinder(h = caster_flange_screw_length, + r = caster_flange_screw_radius, + $fn = 20);} module caster_flange(){ - // i eyeballed this too, it's (0.580/5) inches, times 2 to be stronger - height = 2.9464 * 2; - width = 20.32; // 0.800 inches - between = 14.732; //0.580 inches - side_radius = (width - between)/2; + side_radius = caster_flange_width / 2 - standoff_radius; hull(){ - cylinder(h = height, r = between/2); - translate([between/2, 0, 0]) cylinder(h = height, r = side_radius); - translate([-between/2, 0, 0]) cylinder(h = height, r = side_radius);}} + cylinder(h = caster_flange_height, r = standoff_radius); + translate([standoff_radius, 0, 0]) + cylinder(h = caster_flange_height, r = side_radius); + translate([-standoff_radius, 0, 0]) + cylinder(h = caster_flange_height, r = side_radius);}} -module hexagon(size, height){ - boxWidth = size/1.75; - for (r = [-60, 0, 60]) rotate([0,0,r]) cube([boxWidth, size, height], true);} +module nut(size, height){ + width = size/1.75; + for (r = [-60, 0, 60]) rotate([0,0,r]) cube([width, size, height], true);} module nuts(){ - height = 1.6; // from calipers - overall_width = 20.32; // 0.800 inches - between = 14.732; // 0.580 inches - short_side_nut = 4.7; // from calipers - translate([between/2, 0, height/2]) hexagon(4.7, height); - translate([-between/2, 0, height/2]) hexagon(4.7, height);} - -module ziptie(){ - ziptie_width = 4.7625; // 3/16 inch - ziptie_height = 3; // i'm guessing - standoff_radius = 14.732; // 0.580 inches - translate([-standoff_radius/2, -ziptie_width/2, 0]) - cube([standoff_radius, ziptie_width, ziptie_height]);} + translate([standoff_radius, 0, nut_height/2]) + nut(nut_short_side, nut_height); + translate([-standoff_radius, 0, nut_height/2]) + nut(nut_short_side, nut_height);} module caster_standoff(){ - height = 43; - caster_radius = 14.732/2; - caster_flange_height = 2.9464 * 2; difference(){ union(){ - cylinder(h = height, r = caster_radius); - caster_flange();} - translate([0, 0, -.1]) scale([1, 1, 1.1]) ball_screws(); - translate([0, 0, caster_flange_height]) nuts(); - translate([0, 0, height * 3 / 4]) scale([1.1, 1, 1]) ziptie(); - rotate([0, 0, 90]) translate([0, 0, height * 1 / 2]) scale([1.1, 1, 1]) - ziptie();}} - -caster_standoff(); + cylinder(h = standoff_height, r = standoff_radius); + translate([0, 0, standoff_height - caster_flange_height]) + caster_flange();} + translate([0, 0, standoff_height - caster_flange_screw_length * 1.1 + 0.1]) + scale([1, 1, 1.1]) + caster_flange_screws(); + translate([0, 0, standoff_height - (caster_flange_height + nut_height)]) + nuts();} + deck_flange(); + for(ii = [0:3]){ + rotate([0, 0, 45 + 90 * ii]) + deck_flange_reinforcement();}} + +module caster_top_half(){ + difference(){ + caster_standoff(); + cylinder(r1 = deck_flange_radius * 4 / 3, + r2 = 0, + h = standoff_height * 3 / 4);}} + +module caster_bottom_half (){ + intersection (){ + caster_standoff(); + cylinder(r1 = deck_flange_radius * 4 / 3, + r2 = 0, + h = standoff_height * 3 / 4);}} + +translate([0, deck_flange_radius + standoff_radius + 1, standoff_height]){ + rotate([0, 180, 0]){ + caster_top_half();}} +difference(){ + caster_bottom_half(); + translate([0, 0, standoff_height * 3 / 4 - 1]) cylinder(r = 2, h = 2);}