aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2022-03-25 16:08:01 +0000
committerdakkar <dakkar@thenautilus.net>2022-03-25 16:08:01 +0000
commit9685ce4b320b1e35fa9045c42ca1918192a43724 (patch)
treea70a118c345da1409e62139f53fc5798dd7d968b
parentadjustment from print (diff)
downloadenv-sensor-9685ce4b320b1e35fa9045c42ca1918192a43724.tar.gz
env-sensor-9685ce4b320b1e35fa9045c42ca1918192a43724.tar.bz2
env-sensor-9685ce4b320b1e35fa9045c42ca1918192a43724.zip
move board so buttons are closer to the edge
-rw-r--r--enclosure/enclosure.scad18
1 files changed, 11 insertions, 7 deletions
diff --git a/enclosure/enclosure.scad b/enclosure/enclosure.scad
index bef9f55..a1c844d 100644
--- a/enclosure/enclosure.scad
+++ b/enclosure/enclosure.scad
@@ -212,7 +212,8 @@ module usb_well() {
}
module sd_well() {
- translate([0,SD_Y/2,-SD_SINK-SD_Z/2]) box([SD_X, SD_Y, 30]);
+ EXTRA=10;
+ translate([0,SD_Y/2-EXTRA/2,-SD_SINK-SD_Z/2]) box([SD_X, SD_Y+EXTRA, 30]);
}
module switch_well() {
@@ -296,7 +297,7 @@ module bottom() {
// used by middle and top
BOARD_X_OFF= (TOTAL_X-BOARD_X)/2 - CO_X - MID_CABLE_WELL_X - WALL_THICKNESS;
-BOARD_Y_OFF= (TOTAL_Y-BOARD_Y)/2 - SD_Y - WALL_THICKNESS;
+BOARD_Y_OFF= (-TOTAL_Y+BOARD_Y)/2 + WALL_THICKNESS;
CO_X_OFF=(TOTAL_X - CO_X)/2 - WALL_THICKNESS;
module middle() {
@@ -321,7 +322,10 @@ module middle() {
translate([0,0, BOARD_Z_OFF]) outside_wells();
}
}
- translate([BOARD_X_OFF, BOARD_Y_OFF, 0]) board_supports();
+ intersection() {
+ translate([BOARD_X_OFF, BOARD_Y_OFF, 0]) board_supports();
+ box([TOTAL_X, TOTAL_Y, MIDDLE_Z]);
+ }
}
}
@@ -340,11 +344,11 @@ module top() {
outside_pillars();
}
}
-translate([0, TOTAL_Y * 1.2, 0]) bottom();
+
+//translate([0, TOTAL_Y * 1.2, 0]) bottom();
//translate([0, 0, -BOTTOM_Z-2]) bottom();
middle();
-translate([0, -TOTAL_Y * 1.2, 0]) rotate([180,0,0]) top();
-
-translate([0, 0, +MIDDLE_Z+2]) top();
+//translate([0, -TOTAL_Y * 1.2, 0]) rotate([180,0,0]) top();
+//translate([0, 0, +MIDDLE_Z+2]) top();