aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2022-03-25 11:45:41 +0000
committerdakkar <dakkar@thenautilus.net>2022-03-25 11:45:41 +0000
commitd20039b6ceff63140fc85f3ecbc71849db8ff00a (patch)
treed12d5af625209a7b1f7202cedbd5eafb237d2766
parentnicer board supports (diff)
downloadenv-sensor-d20039b6ceff63140fc85f3ecbc71849db8ff00a.tar.gz
env-sensor-d20039b6ceff63140fc85f3ecbc71849db8ff00a.tar.bz2
env-sensor-d20039b6ceff63140fc85f3ecbc71849db8ff00a.zip
holes in the middle layer
-rw-r--r--enclosure/enclosure.scad64
1 files changed, 64 insertions, 0 deletions
diff --git a/enclosure/enclosure.scad b/enclosure/enclosure.scad
index 390eb9c..0873127 100644
--- a/enclosure/enclosure.scad
+++ b/enclosure/enclosure.scad
@@ -56,6 +56,33 @@ BOARD_SUPPORT_PIN_DIAM=2;
BOARD_OFF_X=3;
BOARD_OFF_Y=3;
+// from https://web.archive.org/web/20151115224048/http://mgvs.org/public/shema/datasheet/usb_20/Micro-USB_final/Micro-USB_1_01.pdf
+USB_MICRO_B_X=10.6;
+USB_MICRO_B_Z=8.5;
+
+USB_MICRO_B_SINK=2;
+USB_MICRO_B_OFF_X=43;
+
+SD_X=12;
+SD_Z=1;
+SD_SINK=3;
+SD_OFF_X=54;
+
+SWITCH_X=8;
+SWITCH_Z=4;
+SWITCH_SINK=SWITCH_Z/2;
+SWITCH_OFF_X=42.5;
+
+RESET_X=2;
+RESET_Z=2;
+RESET_SINK=1;
+RESET_OFF_X=SWITCH_OFF_X+7.5;
+
+BUTTON_X=5;
+BUTTON_Z=3;
+BUTTON_SINK=1;
+BUTTON_OFF_X=RESET_OFF_X+6;
+
TOP_LAYER_Z=10;
TOTAL_X=2*WALL_THICKNESS + max(
@@ -162,6 +189,42 @@ module board_supports() {
}
}
+module usb_well() {
+ translate([0,0,-USB_MICRO_B_SINK-USB_MICRO_B_Z/2]) box([USB_MICRO_B_X, 30, 30]);
+}
+
+module sd_well() {
+ translate([0,0,-SD_SINK-SD_Z/2]) box([SD_X, 30, 30]);
+}
+
+module switch_well() {
+ translate([0,0,-SWITCH_SINK-SWITCH_Z/2]) box([SWITCH_X, 30, 30]);
+}
+
+module reset_well() {
+ translate([0,0,-RESET_SINK-RESET_Z/2]) box([RESET_X, 30, 30]);
+}
+
+module button_well() {
+ translate([0,0,-BUTTON_SINK-BUTTON_Z/2]) box([BUTTON_X, 30, 30]);
+}
+
+// these will have matching pillars for the top piece, filling them
+// down to the right depth; top piece will be printed upside-down
+module outside_wells() {
+ translate([-BOARD_X/2,0,0]) {
+ translate([0,BOARD_Y/2,0]) {
+ translate([USB_MICRO_B_OFF_X, 0,0]) usb_well();
+ translate([SD_OFF_X, 0,0]) sd_well();
+ };
+ translate([0,-BOARD_Y/2,0]) {
+ translate([SWITCH_OFF_X, 0,0]) switch_well();
+ translate([RESET_OFF_X, 0,0]) reset_well();
+ translate([BUTTON_OFF_X, 0,0]) button_well();
+ };
+ }
+}
+
module bottom() {
PM_X_OFF=(TOTAL_X - PM_X)/2;
@@ -197,6 +260,7 @@ module middle() {
translate([CO_X_OFF, 0, CO_Z_OFF]) co_sensor();
translate([0, 0, CO_Z_OFF]) middle_cable_well();
translate([0,0, CO_Z_OFF]) board_well();
+ translate([0,0, BOARD_Z_OFF]) outside_wells();
}
translate([0,0, CO_Z_OFF]) board_supports();
}