7. hold the ball and allow spin
[challenge-bot] / 3d-printables / caster-standoff.scad
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
7 // use 10 ish for development, 60 or so for printing
8 $fn = 60;
9
10 standoff_radius = 14.732 / 2; // 0.580 / 2 inches from spec sheet
11 standoff_height = 48; // eyeballed
12
13 // eyeballed caster flange height, (0.580/5) inches, times 2 to be stronger
14 caster_flange_height = 5;
15 caster_flange_width = 20.32; // 0.800 inches
16 caster_flange_screw_radius = 2.286 / 2; // 0.090 inches
17 caster_flange_screw_length = 8; // eyeballed
18
19 deck_grid_width = 25.4; // measured center to center on grid on pegboard
20 deck_flange_height = 2.9464;
21 deck_flange_screw_radius = 3.556 / 2; // For #6 machine screws
22 deck_flange_radius = (deck_grid_width) / 2 + deck_flange_screw_radius + 3;
23
24 module deck_flange(){
25 difference(){
26 cylinder(h = deck_flange_height, r = deck_flange_radius);
27 for(ii = [-1, 1]){
28 translate([deck_grid_width / 2 * ii, 0, -.1])
29 cylinder(h = deck_flange_height * 1.1,
30 r = deck_flange_screw_radius);
31 translate([0, deck_grid_width / 2 * ii, -.1])
32 cylinder(h = deck_flange_height * 1.1,
33 r = deck_flange_screw_radius);}}}
34
35 module deck_flange_reinforcement(){
36 translate([-deck_flange_radius,
37 -.5 * deck_flange_height / 2,
38 deck_flange_height]){
39 difference (){
40 cube([deck_flange_radius, deck_flange_height / 2, deck_flange_radius]);
41 translate([-.1, -.05 * deck_flange_height, 0]){
42 rotate([0, -45, 0]){
43 cube([deck_flange_radius * 1.5, // 1.5 is bigger than sqrt(2)
44 deck_flange_height * 1.1, // 1.1 is bigger than 1
45 deck_flange_radius]);}}}}}
46
47 module ball_holder(){
48 difference (){
49 cylinder(r = holder_radius, h = holder_height);
50 translate([0, 0, ball_radius + wall_thickness]){
51 sphere(r = ball_radius);}
52 translate([0, 0, holder_height / 2 + wall_thickness]){
53 cube([holder_diameter + 0.1,
54 wall_thickness * 2,
55 holder_height],
56 center = true);}}}
57
58 module caster_standoff(){
59 cylinder(h = standoff_height,
60 r = standoff_radius);
61 deck_flange();
62 for(ii = [0:3]){
63 rotate([0, 0, 45 + 90 * ii])
64 deck_flange_reinforcement();}
65 translate([0, 0, standoff_height]){
66 ball_holder();}}
67
68 //caster_standoff();
69 ball_holder();