summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2014-02-04 14:14:07 (GMT)
committerJan Huwald <jh@sotun.de>2014-02-04 14:14:07 (GMT)
commit7a57e259ab38d2bf92ac7b1a897637f0ccf82026 (patch)
tree7c9791a649db145fcdc4615a984661c7c92cc504
parent537dd8413ec6dd17c1753d520c067378c655c8e5 (diff)
full model: add example hdd
-rw-r--r--full_model.scad4
-rw-r--r--parameters.scad10
2 files changed, 11 insertions, 3 deletions
diff --git a/full_model.scad b/full_model.scad
index 4c848e6..dc9a523 100644
--- a/full_model.scad
+++ b/full_model.scad
@@ -1,6 +1,7 @@
include <parameters.scad>
use <connector_front.scad>
+use <hdd.scad>
use <rail.scad>
module rand_color(base, seed1=0, seed2=0, seed3=0) {
@@ -42,3 +43,6 @@ for (y = [0:num_hdd_y-1])
translate([-tray_width/4, bar_thickness * 1.5, (y+1) * tray_height - bar_thickness/2])
rotate([0, 90, 0])
cylinder(h = (num_hdd_x + 0.5) * tray_width, r = rod_diameter/2, $fs=0.1);
+
+translate([bar_thickness + floor(num_hdd_x/2) * tray_width, -hdd_standout, bar_thickness + floor(num_hdd_y/2) * tray_height])
+ color("Blue") hdd();
diff --git a/parameters.scad b/parameters.scad
index 7dc102a..daea23a 100644
--- a/parameters.scad
+++ b/parameters.scad
@@ -1,6 +1,6 @@
// size of the array
num_hdd_x = 4;
-num_hdd_y = 4;
+num_hdd_y = 3;
// space above hdd available for air flow
cooling_height = 10;
@@ -23,8 +23,12 @@ rail_width = 15;
rail_height = rail_width;
rail_thickness = 1;
+// assumed space deviation of the resulting form; used to leave space
+// in holes so that screws and rods do not stuck
+pla_epsilon = 0.1;
+
// dimension of a single hdd tray (hdd + space around)
-tray_height = hdd_height + cooling_height + rail_thickness;
+tray_height = hdd_height + max(cooling_height, 2 * bar_thickness + 10 * pla_epsilon);
tray_width = hdd_width + bar_thickness;
-pla_epsilon = 0.1;
+
contact: Jan Huwald // Impressum