From 9685ce4b320b1e35fa9045c42ca1918192a43724 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 25 Mar 2022 16:08:01 +0000 Subject: move board so buttons are closer to the edge --- enclosure/enclosure.scad | 18 +++++++++++------- 1 file 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(); -- cgit v1.2.3