define wiring in separate file
[challenge-bot] / 3d-printables / caster-standoff-data.scad
index e1e46e83073ecb27bb2ece3f544e83c5715f0978..8b39e1ddff8b56dafe50dbe881ae3b6c6c17eae6 100644 (file)
@@ -1,26 +1,35 @@
+/*
+  Copyright (C) 2015 Daniel Watson
+  See the end of the file for license conditions.
+*/
 // challenge-bot
 // GNU AGPLv3 (or later at your option)
-// project available at these locations:
-// https://gitorious.org/ozzloy/challenge-bot
-// https://github.com/waynegramlich/challenge-bot
+// project available here:
+// https://challenge-bot.com/
 
 use <oshw.scad>
 
 // use 10 ish for development, 60 or so for printing
-$fn = 60;
+$fn = 100;
 
 /* measured with calipers */
-ball_diameter = 11 + 0.75; // extra bit added for printing imprecision
+ball_diameter = 11 + 0.85; // extra bit added for printing imprecision
 ball_radius = ball_diameter / 2;
 
 standoff_height = 60; // kyle eyeballed
 
+/*
+  notes on printing:
+  * slow down just before top solid infill of deck flange
+  * slow down just before switching from solid to forked portion of standoff
+ */
+
 gap = 3;
 wall_thickness = 1;
 holder_floor = 3;
 holder_arms_length = 20;
 holder_height =
-  holder_floor + holder_arms_length + (11 / 16) * ball_diameter;
+  holder_floor + holder_arms_length + (3 / 4) * ball_diameter;
 
 holder_radius = ball_radius + wall_thickness;
 holder_diameter = holder_radius * 2;
@@ -34,13 +43,14 @@ caster_flange_width = 20.32;  // 0.800 inches
 
 deck_pitch = 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_screw_radius = 3.556 / 2 + 0.4;  // For #6 machine screws
 deck_flange_radius = (deck_pitch) / 2 + deck_flange_screw_radius + 3;
 
 module deck_flange() {
   deck_pitch_diagonal = sqrt(2 * pow(deck_pitch, 2));
+  cylinder(h = deck_flange_height, r = holder_radius + 2);
   difference() {
-    scale([0.35, 0.35, 1]) {
+    scale([0.40, 0.40, 1]) {
       linear_extrude(height = deck_flange_height) {
         oshw(); } }
     for (ii = [-1, 1]) {
@@ -93,3 +103,20 @@ module caster_standoff() {
     deck_flange_reinforcement(); }
   translate([0, 0, standoff_lower_portion_height]) {
     ball_holder(); } }
+
+/*
+  This file is part of challenge-bot.
+
+  Challenge-bot is free software: you can redistribute it and/or modify
+  it under the terms of the GNU Affero General Public License as published by
+  the Free Software Foundation, either version 3 of the License, or
+  (at your option) any later version.
+
+  GNU Affero Emacs is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU Affero General Public License for more details.
+
+  You should have received a copy of the GNU Affero General Public License
+  along with challenge-bot.  If not, see <http://www.gnu.org/licenses/>.
+*/