aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jodersky@gmail.com>2015-03-07 15:53:46 +0100
committerJakob Odersky <jodersky@gmail.com>2015-03-07 16:08:25 +0100
commit4243c50f30e263a7d0188f84d5ccc6213b052e49 (patch)
treefea6b8cb8c328ad4ff475d5bcd02e339c240e4e6
parentb86d44bced6aaf0a9ca7bb203571a21639c20067 (diff)
downloadcondor-1-4243c50f30e263a7d0188f84d5ccc6213b052e49.tar.gz
condor-1-4243c50f30e263a7d0188f84d5ccc6213b052e49.tar.bz2
condor-1-4243c50f30e263a7d0188f84d5ccc6213b052e49.zip
use dimensions of prototype
-rw-r--r--structure/assemblies/mainframe.scad81
-rw-r--r--structure/conf.scad (renamed from structure/conf/parameters.scad)22
-rw-r--r--structure/parts/crossbar.scad7
-rw-r--r--structure/parts/foot.scad2
-rw-r--r--structure/parts/rack_mount.scad10
-rw-r--r--structure/parts/rack_plate.scad16
-rw-r--r--structure/parts/stand.scad2
-rw-r--r--structure/parts/support_plate.scad2
8 files changed, 105 insertions, 37 deletions
diff --git a/structure/assemblies/mainframe.scad b/structure/assemblies/mainframe.scad
index 6ecde54..b7d3ca1 100644
--- a/structure/assemblies/mainframe.scad
+++ b/structure/assemblies/mainframe.scad
@@ -1,36 +1,75 @@
-include <../conf/parameters.scad>
+include <../conf.scad>
use <../parts/crossbar.scad>
use <../parts/support_plate.scad>
use <../parts/stand.scad>
use <../parts/foot.scad>
+use <../parts/rack_mount.scad>
+use <../parts/rack_plate.scad>
$fn=10;
explode=0;
-rotate([0,0,45])
-crossbar();
+module main(explode=0) {
+ translate([0,0,-explode])
+ rotate([0,0,45])
+ crossbar();
-translate([0,0,explode])
-rotate([180,0,-45])
-crossbar();
+ translate([0,0,explode])
+ rotate([180,0,-45])
+ crossbar();
+}
-translate([0,0,explode*2])
-translate([0,0,(frame_outer+support_height)/2])
-support_plate();
+module support(explode=0) {
+ translate([0,0,explode])
+ translate([0,0,(frame_outer+support_height)/2])
+ support_plate();
-translate([0,0,explode*-1])
-translate([0,0,-(frame_outer+support_height)/2])
-support_plate();
+ translate([0,0,-explode])
+ translate([0,0,-(frame_outer+support_height)/2])
+ support_plate();
+}
-translate([0,0,explode*-2])
-for (i = [0:3]) {
-rotate([0,0,i*90])
-translate([stand_width/2,stand_width/2,-stand_height/2])
-stand();
+module stands(explode=0) {
+ translate([0,0,-explode])
+ for (i = [0:3]) {
+ rotate([0,0,i*90])
+ translate([stand_width/2,stand_width/2,-stand_height/2 - frame_outer/2])
+ stand();
+ }
}
-translate([0, stand_width/2, -stand_height])
-foot();
-translate([0, -stand_width/2, -stand_height])
-foot();
+module feet(explode=0) {
+ translate([0,0,-explode]) {
+ translate([0, stand_width/2, -stand_height - frame_outer/2])
+ foot();
+ translate([0, -stand_width/2, -stand_height - frame_outer/2])
+ foot();
+ }
+}
+module rack_mounts(explode=0) {
+ translate([0,0,explode])
+ for (i = [0:3]) {
+ rotate([0,0,i*90])
+ translate([rack_inner/2,rack_inner/2,0])
+ rack_mount();
+ }
+
+}
+
+main(explode);
+support(explode*2);
+stands(explode*3);
+feet(explode*4);
+
+rack_mounts(explode*10);
+translate([0,0,30])
+rack_plate();
+translate([0,0,70])
+rack_plate();
+translate([0,0,-40])
+rack_plate();
+translate([0,0,-110])
+rack_plate();
+
+
diff --git a/structure/conf/parameters.scad b/structure/conf.scad
index 214026a..ac348a7 100644
--- a/structure/conf/parameters.scad
+++ b/structure/conf.scad
@@ -1,31 +1,33 @@
//rendering
-epsilon=0.01;
+epsilon=0.1;
//model
frame_length=1000;
-frame_inner=19;
-frame_outer=20;
+frame_inner=13.5;
+frame_outer=15;
support_width=100;
-support_height=0.2;
+support_height=0.75;
support_inner=90;
support_diameter=3;
rack_width=150;
rack_inner=140;
rack_diameter=3;
+rack_height=250;
+rack_plate_height=4;
-stand_height=200;
-stand_width=200;
-stand_diameter=5;
-stand_head_height=20;
+stand_height=250;
+stand_width=282;
+stand_diameter=6;
+stand_head_height=35;
stand_head_diameter=4;
foot_outer=12;
-foot_inner=10;
+foot_inner=8;
foot_length=500;
-motor_hole_distance=450;
+motor_hole_distance=480;
motor_hole_diameter=12;
motor_mount_distance=19;
motor_mount_diameter=3; \ No newline at end of file
diff --git a/structure/parts/crossbar.scad b/structure/parts/crossbar.scad
index 8d87016..026113f 100644
--- a/structure/parts/crossbar.scad
+++ b/structure/parts/crossbar.scad
@@ -1,13 +1,13 @@
-include <../conf/parameters.scad>
+include <../conf.scad>
module crossbar() {
module bar(length,outer,inner) {
difference() {
cube([outer, outer, length], true);
- cube([inner, inner, length], true);
+ cube([inner, inner, length+epsilon], true);
translate([outer/2,0,0])
- cube([outer, outer, outer], true);
+ cube([outer, outer+epsilon, outer], true);
}
}
@@ -19,6 +19,7 @@ difference() {
//bar
rotate([90,-90,90])
+ color("silver")
bar(frame_length, frame_outer, frame_inner);
//center hole
diff --git a/structure/parts/foot.scad b/structure/parts/foot.scad
index ac513dd..5e6d757 100644
--- a/structure/parts/foot.scad
+++ b/structure/parts/foot.scad
@@ -1,4 +1,4 @@
-include <../conf/parameters.scad>
+include <../conf.scad>
module foot() {
diff --git a/structure/parts/rack_mount.scad b/structure/parts/rack_mount.scad
new file mode 100644
index 0000000..5d3be9d
--- /dev/null
+++ b/structure/parts/rack_mount.scad
@@ -0,0 +1,10 @@
+include <../conf.scad>
+
+module rack_mount() {
+
+color("grey")
+cylinder(rack_height, d=rack_diameter, center=true);
+
+}
+
+rack_mount(); \ No newline at end of file
diff --git a/structure/parts/rack_plate.scad b/structure/parts/rack_plate.scad
new file mode 100644
index 0000000..3ffbb6b
--- /dev/null
+++ b/structure/parts/rack_plate.scad
@@ -0,0 +1,16 @@
+include <../conf.scad>
+
+module rack_plate() {
+color("black")
+difference() {
+ cube([rack_width, rack_width, rack_plate_height], center=true);
+ for (i=[0:3]) {
+ rotate([0,0,i*90])
+ translate([rack_inner/2, rack_inner/2, 0])
+ cylinder(rack_plate_height+epsilon, d=rack_diameter, center=true);
+ }
+
+}
+}
+
+rack_plate(); \ No newline at end of file
diff --git a/structure/parts/stand.scad b/structure/parts/stand.scad
index 4bd9b64..5bd2e95 100644
--- a/structure/parts/stand.scad
+++ b/structure/parts/stand.scad
@@ -1,4 +1,4 @@
-include <../conf/parameters.scad>
+include <../conf.scad>
module stand() {
diff --git a/structure/parts/support_plate.scad b/structure/parts/support_plate.scad
index cbd440a..ba530dc 100644
--- a/structure/parts/support_plate.scad
+++ b/structure/parts/support_plate.scad
@@ -1,4 +1,4 @@
-include <../conf/parameters.scad>
+include <../conf.scad>
module support_plate() {