make deck flange smaller to print caster faster
[challenge-bot] / caster-standoff.scad
CommitLineData
858028a5 1// challenge-bot
2// GNU AGPLv3 (or later at your option)
3// project available at these locations:
4// https://gitorious.org/ozzloy/challenge-bot
5// https://github.com/waynegramlich/challenge-bot
6
4b158a5e 7standoff_radius = 14.732 / 2; // 0.580 / 2 inches from spec sheet
6bb05589 8standoff_height = 55; // eyeballed
4b158a5e 9
6bb05589 10nut_short_side = 4.7; // from calipers
11nut_height = 1.6; // from calipers
4b158a5e 12
6bb05589 13// eyeballed caster flange height, (0.580/5) inches, times 2 to be stronger
7a0bd024 14caster_flange_height = 5;
6bb05589 15caster_flange_width = 20.32; // 0.800 inches
4b158a5e 16caster_flange_screw_radius = 2.286 / 2; // 0.090 inches
17caster_flange_screw_length = 8; // eyeballed
18
969236b8 19deck_grid_width = 25.4; // measured center to center on grid on pegboard
20deck_flange_height = 2.9464;
cbc5ea88 21deck_flange_screw_radius = 3.556 / 2; // For #6 machine screws
8b2ab502 22deck_flange_radius = (deck_grid_width) / 2 + deck_flange_screw_radius + 3;
4b158a5e 23
24module deck_flange(){
25 difference(){
2a66d46f 26 cylinder(h = deck_flange_height, r = deck_flange_radius, $fn = 50);
4b158a5e 27 for(ii = [-1, 1]){
8b2ab502 28 translate([deck_grid_width / 2 * ii, 0, -.1])
4b158a5e 29 cylinder(h = deck_flange_height * 1.1,
30 r = deck_flange_screw_radius,
8b2ab502 31 $fn = 20);
32 translate([0, deck_grid_width / 2 * ii, -.1])
4b158a5e 33 cylinder(h = deck_flange_height * 1.1,
8b2ab502 34 r = deck_flange_screw_radius,
35 $fn = 20);}}}
4b158a5e 36
37module deck_flange_reinforcement(){
38 translate([-deck_flange_radius,
969236b8 39 -.5 * deck_flange_height / 2,
4b158a5e 40 deck_flange_height]){
41 difference (){
969236b8 42 cube([deck_flange_radius, deck_flange_height / 2, deck_flange_radius]);
4b158a5e 43 translate([-.1, -.05 * deck_flange_height, 0]){
44 rotate([0, -45, 0]){
45 cube([deck_flange_radius * 1.5, // 1.5 is bigger than sqrt(2)
46 deck_flange_height * 1.1, // 1.1 is bigger than 1
47 deck_flange_radius]);}}}}}
6bb05589 48
49module caster_flange_screws(){
50 translate([standoff_radius, 0, 0])
4b158a5e 51 cylinder(h = caster_flange_screw_length,
52 r = caster_flange_screw_radius,
53 $fn = 20);
6bb05589 54 translate([-standoff_radius, 0, 0])
4b158a5e 55 cylinder(h = caster_flange_screw_length,
56 r = caster_flange_screw_radius,
57 $fn = 20);}
858028a5 58
f2a874c1 59module caster_flange(){
6bb05589 60 side_radius = caster_flange_width / 2 - standoff_radius;
54d7ed6b 61 hull(){
2a66d46f 62 cylinder(h = caster_flange_height, r = standoff_radius, $fn = 100);
6bb05589 63 translate([standoff_radius, 0, 0])
2a66d46f 64 cylinder(h = caster_flange_height, r = side_radius, $fn = 40);
6bb05589 65 translate([-standoff_radius, 0, 0])
2a66d46f 66 cylinder(h = caster_flange_height, r = side_radius, $fn = 40);}}
54d7ed6b 67
6bb05589 68module nut(size, height){
69 width = size/1.75;
70 for (r = [-60, 0, 60]) rotate([0,0,r]) cube([width, size, height], true);}
f2a874c1 71
54d7ed6b 72module nuts(){
6bb05589 73 translate([standoff_radius, 0, nut_height/2])
36b61248 74 nut(nut_short_side, nut_height + .1);
6bb05589 75 translate([-standoff_radius, 0, nut_height/2])
36b61248 76 nut(nut_short_side, nut_height + .1);}
54d7ed6b 77
7a0bd024 78module _2_screw (){
79 //measured with calipers
36b61248 80 screw_length = 8;
7a0bd024 81 thread_radius = 2.17 / 2 - 0.1; // subtract 0.1 to make squeeze fit
82 head_height = 1.8;
83 head_radius = 4.1 / 2;
2a66d46f 84 cylinder(r = thread_radius, h = screw_length, $fn = 20);
7a0bd024 85 cylinder(r = head_radius, h = head_height, $fn = 20);}
86
36b61248 87module caster_standoff_deck_side(){
858028a5 88 difference(){
36b61248 89 cylinder(h = standoff_height - caster_flange_height,
90 r = standoff_radius,
91 $fn = 50);
7c438e19 92 translate([0, 0, standoff_height - caster_flange_screw_length * 1.1 + 0.1])
93 scale([1, 1, 1.1])
94 caster_flange_screws();
95 translate([0, 0, standoff_height - (caster_flange_height + nut_height)])
7a0bd024 96 nuts();
97 translate([0, 0, standoff_height]){
98 // make hole to get to screw head depth
99 cylinder(r = 4.1 / 2, h = 3, center = true, $fn = 20);
100 translate([0, 0, -0.7])
101 rotate([180, 0, 0])
102 _2_screw(r = 0.5, h = 5, $fn = 20);}}
4b158a5e 103 deck_flange();
104 for(ii = [0:3]){
105 rotate([0, 0, 45 + 90 * ii])
106 deck_flange_reinforcement();}}
858028a5 107
36b61248 108module caster_standoff_caster_side(){
109 difference(){
110 caster_flange();
111 translate([0, 0, caster_flange_height - 0.7]){
112 rotate([180, 0, 0]){
113 _2_screw();}}
114 // make hole to get to screw head
115 translate([0, 0, caster_flange_height - 0.8]){
116 cylinder(r = 4.1 / 2, h = 10, $fn = 20);}
117 translate([0, 0, -.1]){
118 caster_flange_screws();}}}
13d2458d 119
36b61248 120caster_standoff_deck_side();
121translate([caster_flange_width / 2 + deck_flange_radius + 1, 0, 0]){
122 caster_standoff_caster_side();}