828114be982255f0bd1d819281aa5c0540c8228d
[challenge-bot] / 3d-printables / caster-standoff-data.scad
1 /*
2 Copyright (C) 2015 Daniel Watson
3 See the end of the file for license conditions.
4 */
5 // challenge-bot
6 // GNU AGPLv3 (or later at your option)
7 // project available here:
8 // https://challenge-bot.com/
9
10 use <oshw.scad>
11
12 // use 10 ish for development, 60 or so for printing
13 $fn = 60;
14
15 /* measured with calipers */
16 ball_diameter = 11 + 1.1; // extra bit added for printing imprecision
17 ball_radius = ball_diameter / 2;
18
19 standoff_height = 60; // kyle eyeballed
20
21 gap = 3;
22 wall_thickness = 1;
23 holder_floor = 3;
24 holder_arms_length = 20;
25 holder_height =
26 holder_floor + holder_arms_length + (11 / 16) * ball_diameter;
27
28 holder_radius = ball_radius + wall_thickness;
29 holder_diameter = holder_radius * 2;
30
31 standoff_radius = holder_radius; // 0.580 / 2 inches from spec sheet
32 standoff_lower_portion_height = standoff_height - holder_height;
33
34 // eyeballed caster flange height, (0.580/5) inches, times 2 to be stronger
35 caster_flange_height = 5;
36 caster_flange_width = 20.32; // 0.800 inches
37
38 deck_pitch = 25.4; // measured center to center on grid on pegboard
39 deck_flange_height = 2.9464;
40 deck_flange_screw_radius = 3.556 / 2 + 0.4; // For #6 machine screws
41 deck_flange_radius = (deck_pitch) / 2 + deck_flange_screw_radius + 3;
42
43 module deck_flange() {
44 deck_pitch_diagonal = sqrt(2 * pow(deck_pitch, 2));
45 cylinder(h = deck_flange_height, r = holder_radius + 2);
46 difference() {
47 scale([0.40, 0.40, 1]) {
48 linear_extrude(height = deck_flange_height) {
49 oshw(); } }
50 for (ii = [-1, 1]) {
51 translate([deck_pitch_diagonal / 2 * ii, 0, -.1])
52 cylinder(h = deck_flange_height * 1.1,
53 r = deck_flange_screw_radius); }
54 translate([0, deck_pitch_diagonal / 2, -.1])
55 cylinder(h = deck_flange_height * 1.1,
56 r = deck_flange_screw_radius); } }
57
58 module deck_flange_reinforcement() {
59 translate([-deck_flange_radius,
60 -.5 * deck_flange_height / 2,
61 deck_flange_height]) {
62 difference() {
63 cube([deck_flange_radius, deck_flange_height / 2, deck_flange_radius]);
64 translate([-.1, -.05 * deck_flange_height, 0]) {
65 rotate([0, -45, 0]) {
66 cube([deck_flange_radius * 1.5, // 1.5 is bigger than sqrt(2)
67 deck_flange_height * 1.1, // 1.1 is bigger than 1
68 deck_flange_radius]); } } } } }
69
70 module ball_holder() {
71 difference() {
72 union() {
73 cylinder(r = holder_radius, h = holder_height);
74 translate([0, 0, holder_arms_length]) {
75 cylinder(r1 = holder_radius,
76 r2 = holder_radius + wall_thickness,
77 h = wall_thickness);
78 translate([0, 0, wall_thickness]) {
79 cylinder(r = wall_thickness + holder_radius,
80 h = holder_height
81 - holder_arms_length
82 - wall_thickness); } } }
83 translate([0, 0, ball_radius + holder_floor + holder_arms_length]) {
84 sphere(r = ball_radius); }
85 translate([0, 0, holder_floor + (holder_height - holder_floor) / 2 + 0.5]) {
86 cube([holder_diameter + wall_thickness * 2 + 0.1,
87 gap,
88 holder_height - holder_floor + 0.1],
89 center = true); } } }
90
91 module caster_standoff() {
92 cylinder(h = standoff_lower_portion_height,
93 r = standoff_radius);
94 deck_flange();
95 for (ii = [0:3]) {
96 rotate([0, 0, 45 + 90 * ii])
97 deck_flange_reinforcement(); }
98 translate([0, 0, standoff_lower_portion_height]) {
99 ball_holder(); } }
100
101 /*
102 This file is part of challenge-bot.
103
104 Challenge-bot is free software: you can redistribute it and/or modify
105 it under the terms of the GNU Affero General Public License as published by
106 the Free Software Foundation, either version 3 of the License, or
107 (at your option) any later version.
108
109 GNU Affero Emacs is distributed in the hope that it will be useful,
110 but WITHOUT ANY WARRANTY; without even the implied warranty of
111 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
112 GNU Affero General Public License for more details.
113
114 You should have received a copy of the GNU Affero General Public License
115 along with challenge-bot. If not, see <http://www.gnu.org/licenses/>.
116 */