X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=caster-standoff.scad;h=c9d60d96ddda70f2529ad352e313d4b3e47f90a9;hb=49bffb72609471e105123fa43e98a2cb65fc67e5;hp=7325c2f9153e6c4b71333607be69d94885b43955;hpb=7a0bd02483eb2a3d225392e34037ba8cd7d6131a;p=challenge-bot diff --git a/caster-standoff.scad b/caster-standoff.scad index 7325c2f..c9d60d9 100644 --- a/caster-standoff.scad +++ b/caster-standoff.scad @@ -4,6 +4,9 @@ // https://gitorious.org/ozzloy/challenge-bot // https://github.com/waynegramlich/challenge-bot +// use 10 ish for development, 100 or so for printing +$fn = 10; + standoff_radius = 14.732 / 2; // 0.580 / 2 inches from spec sheet standoff_height = 55; // eyeballed @@ -19,21 +22,18 @@ 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; +deck_flange_radius = (deck_grid_width) / 2 + deck_flange_screw_radius + 3; module deck_flange(){ difference(){ cylinder(h = deck_flange_height, r = deck_flange_radius); for(ii = [-1, 1]){ - translate([deck_grid_width * ii, 0, -.1]) + translate([deck_grid_width / 2 * 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]) + r = deck_flange_screw_radius); + translate([0, deck_grid_width / 2 * ii, -.1]) cylinder(h = deck_flange_height * 1.1, - r = deck_flange_screw_radius, - $fn = 20);}}} + r = deck_flange_screw_radius);}}} module deck_flange_reinforcement(){ translate([-deck_flange_radius, @@ -50,12 +50,10 @@ module deck_flange_reinforcement(){ module caster_flange_screws(){ translate([standoff_radius, 0, 0]) cylinder(h = caster_flange_screw_length, - r = caster_flange_screw_radius, - $fn = 20); + r = caster_flange_screw_radius); translate([-standoff_radius, 0, 0]) cylinder(h = caster_flange_screw_length, - r = caster_flange_screw_radius, - $fn = 20);} + r = caster_flange_screw_radius);} module caster_flange(){ side_radius = caster_flange_width / 2 - standoff_radius; @@ -72,25 +70,23 @@ module nut(size, height){ module nuts(){ translate([standoff_radius, 0, nut_height/2]) - nut(nut_short_side, nut_height); + nut(nut_short_side, nut_height + .1); translate([-standoff_radius, 0, nut_height/2]) - nut(nut_short_side, nut_height);} + nut(nut_short_side, nut_height + .1);} module _2_screw (){ //measured with calipers - screw_height = 8; + screw_length = 8; thread_radius = 2.17 / 2 - 0.1; // subtract 0.1 to make squeeze fit head_height = 1.8; head_radius = 4.1 / 2; - cylinder(r = thread_radius, h = screw_height, $fn = 20); - cylinder(r = head_radius, h = head_height, $fn = 20);} + cylinder(r = thread_radius, h = screw_length); + cylinder(r = head_radius, h = head_height);} -module caster_standoff(){ +module caster_standoff_deck_side(){ difference(){ - union(){ - cylinder(h = standoff_height, r = standoff_radius); - translate([0, 0, standoff_height - caster_flange_height]) - caster_flange();} + cylinder(h = standoff_height - caster_flange_height, + r = standoff_radius); translate([0, 0, standoff_height - caster_flange_screw_length * 1.1 + 0.1]) scale([1, 1, 1.1]) caster_flange_screws(); @@ -98,22 +94,27 @@ module caster_standoff(){ nuts(); translate([0, 0, standoff_height]){ // make hole to get to screw head depth - cylinder(r = 4.1 / 2, h = 3, center = true, $fn = 20); + cylinder(r = 4.1 / 2, h = 3, center = true); translate([0, 0, -0.7]) rotate([180, 0, 0]) - _2_screw(r = 0.5, h = 5, $fn = 20);}} + _2_screw(r = 0.5, h = 5);}} deck_flange(); for(ii = [0:3]){ rotate([0, 0, 45 + 90 * ii]) deck_flange_reinforcement();}} -module caster_standoff_top(){ - translate([0, 0, caster_flange_height - standoff_height]){ - difference(){ - caster_standoff(); - translate([-deck_flange_radius, -deck_flange_radius, -0.1]) - cube([deck_flange_radius * 2, - deck_flange_radius * 2, - standoff_height - caster_flange_height + 0.1]);}}} +module caster_standoff_caster_side(){ + difference(){ + caster_flange(); + translate([0, 0, caster_flange_height - 0.7]){ + rotate([180, 0, 0]){ + _2_screw();}} + // make hole to get to screw head + translate([0, 0, caster_flange_height - 0.8]){ + cylinder(r = 4.1 / 2, h = 10);} + translate([0, 0, -.1]){ + caster_flange_screws();}}} -caster_standoff_top(); +caster_standoff_deck_side(); +translate([caster_flange_width / 2 + deck_flange_radius + 1, 0, 0]){ + caster_standoff_caster_side();}