Skip to content

Commit 339c5eb

Browse files
committed
Change DisplayCaseTop to:
- accomodate nut even for shorter buttons - add space to finally allow to use the connector on the display without cutting it to size.
1 parent bbb2884 commit 339c5eb

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

src/DisplayCase/DisplayCaseTop.scad

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,18 @@ module DisplayCaseTop() {
137137
difference() {
138138
union () {
139139
translate([0, 0, -100])
140-
cylinder(d=3.3, h=200);
140+
cylinder(d=m3_screw_diameter_loose, h=200);
141141

142142
translate([0, 0, 0])
143-
cylinder(d=6.4, h=2.7);
143+
cylinder(d=m3_screw_head_diameter, h=2.7);
144144

145-
translate([-3.3/2, -3.3, 8-3.3])
146-
cube([3.3, 3.3, 20]);
145+
translate([-m3_screw_diameter_loose/2, -m3_screw_diameter_loose, 8-3.3])
146+
cube([m3_screw_diameter_loose, m3_screw_diameter_loose, 20]);
147147
}
148148

149149
if(enable_easy_print)
150150
translate([0, 0, 2.7])
151-
EasyPrintHoleShink(3.3, 6.4, 2);
151+
EasyPrintHoleShink(3.3, m3_screw_head_diameter, 2);
152152
}
153153
}
154154

@@ -183,6 +183,8 @@ module DisplayCaseTop() {
183183
union () {
184184
translate([0, 0, -1])
185185
cylinder(d=DisplayCaseTop_button_diameter, h=20);
186+
translate([0, 0, -pcb_depth+DisplayCaseTop_pcb_standoff+DisplayCaseTop_pcb_origin.z])
187+
cylinder(h=5,d=DisplayCaseTop_button_nut_diameter);
186188

187189
translate([0, 0, -1])
188190
cylinder(d=DisplayCaseTop_button_outside_diameter, h=1+DisplayCaseTop_button_outside_depth);
@@ -192,7 +194,18 @@ module DisplayCaseTop() {
192194
translate([0, 0, DisplayCaseTop_button_outside_depth])
193195
EasyPrintHoleShink(DisplayCaseTop_button_diameter, DisplayCaseTop_button_outside_diameter, 3);
194196
}
195-
}
197+
};
198+
199+
translate(DisplayCaseTop_pcb_origin - [0, DisplayCaseTop_pcb_height / 2-epsilon,pcb_depth-DisplayCaseTop_pcb_standoff]) linear_extrude(4)
200+
polygon(polyRound([
201+
[-10.5,0,0],
202+
[-8.5, 0, 2],
203+
[-8.5, -6, 0],
204+
[0,-4.4,0],
205+
[9.9,-4.4,2],
206+
[9.9,0,2],
207+
[12.9,0,0]
208+
]));
196209
}
197210

198211
translate(DisplayCaseTop_pcb_origin)

variables.scad

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,9 @@ DisplayCaseTop_pcb_standoff = 1.7;
223223
DisplayCaseTop_hole_diameter = 3.3;
224224
DisplayCaseTop_cable_clearance = 12.5;
225225
DisplayCaseTop_button_diameter = 12;
226+
DisplayCaseTop_button_nut_diameter = 16.3;
226227
DisplayCaseTop_button_outside_diameter = 18;
227-
DisplayCaseTop_button_outside_depth = 4;
228+
DisplayCaseTop_button_outside_depth = 3;
228229
DisplayCaseTop_pcb_origin = [-DisplayCase_outer_width/2, -DisplayCase_outer_radius-DisplayCaseTop_hole_diameter/2-DisplayCaseTop_pcb_height/2, DisplayCaseTop_height];
229230

230231
DisplayCaseBottom_height = 11;

0 commit comments

Comments
 (0)