- Changed bottom part of housing -> separated to wall and plate

This commit is contained in:
2025-09-11 12:33:43 +02:00
parent 4ee7481cff
commit bdf157168d
2 changed files with 30 additions and 25 deletions

View File

@@ -6,7 +6,7 @@ eps = 0.001;
Cover_O = 2.5; // O = Overhang Cover_O = 2.5; // O = Overhang
Cover_T_T = 2.0; // T_T = Top Thickness Cover_T_T = 2.0; // T_T = Top Thickness
Cover_B_T = 3.0; // B_T = Bottom Thickness Cover_B_T = 2.0; // B_T = Bottom Thickness
Wall_PCB_GAP = 0.25; Wall_PCB_GAP = 0.25;
@@ -21,7 +21,7 @@ Spacer_Top_Height = 10;
Spacer_Bot_Height = 5; Spacer_Bot_Height = 5;
Wall_T_H = Spacer_Top_Height + PCB_T/2 + Cover_T_T; // T_H = Wall Top Height Wall_T_H = Spacer_Top_Height + PCB_T/2 + Cover_T_T; // T_H = Wall Top Height
Wall_B_H = Spacer_Bot_Height + PCB_T/2; // B_H = Wall Bottom Height Wall_B_H = Spacer_Bot_Height + PCB_T/2 + Cover_B_T + 1; // B_H = Wall Bottom Height
Mounting_Holes = [ Mounting_Holes = [
[ 4.0, 70.0, 0], [ 4.0, 70.0, 0],

View File

@@ -7,10 +7,10 @@ include <RP2350_MIDI_Lighter_PCB.scad>
include <RP2350_MIDI_Lighter_Definition.scad> include <RP2350_MIDI_Lighter_Definition.scad>
Show_FAD_Logo = true; Show_FAD_Logo = false;
Show_PCB = false; Show_PCB = false;
Debug_Present = true; Debug_Present = true;
$preview = false; $preview = true;
@@ -26,9 +26,11 @@ if(Show_PCB)
// Top(); // Top();
// Top_Wall(); // Top_Wall();
// Bottom();
Bottom();
// Bottom_Wall(0);
// rotate([0, 180, 0]) // rotate([0, 180, 0])
translate([0, 0, eps]) Display_GC9A01A_Cover(); // translate([0, 0, eps]) Display_GC9A01A_Cover();
@@ -228,7 +230,7 @@ module Top_Wall_Screw_Plates(height, height_offset, cutout=false)
} }
else { else {
difference() { difference() {
translate(Screw_Plate_Offset[i]) roundedBox(Screw_Plate_Size[i], 1, true); translate(Screw_Plate_Offset[i]) roundedBox(Screw_Plate_Size[i], 2, true);
Screw_Drill(Drill_M3); Screw_Drill(Drill_M3);
} }
} }
@@ -242,7 +244,7 @@ module Bottom()
color([0.8, 0.8, 0.0]) color([0.8, 0.8, 0.0])
difference() difference()
{ {
translate([0, 0, -Spacer_Bot_Height - PCB_T/2]) translate([0, 0, -Spacer_Bot_Height - PCB_T/2 - 1])
{ {
difference() difference()
{ {
@@ -254,8 +256,8 @@ module Bottom()
Bottom_Plate(); Bottom_Plate();
translate([PCB_W/2, PCB_H/2, 0]) KandM_14510_Mount(1, true); translate([PCB_W/2, PCB_H/2, 0]) KandM_14510_Mount(1, true);
} }
translate([0, 0, Cover_B_T-eps]) Bottom_Wall(1.0);
translate([PCB_W/2, PCB_H/2, 5.5]) KandM_14510_Mount(); translate([PCB_W/2, PCB_H/2, 5.5]) KandM_14510_Mount();
translate(Mounting_Holes[2]) translate([0, 0, Cover_B_T-eps]) cylinder(h=1, d=10, , $fn = $preview ? 32 : 100);
} }
Screw_Holes_M3(); Screw_Holes_M3();
@@ -270,12 +272,19 @@ module Bottom()
module Bottom_Wall(plate_transition = 1) module Bottom_Wall(plate_transition = 1)
{ {
translate([PCB_W/2, PCB_H/2, +Wall_B_H/2]) translate([0, 0, 0])
difference()
{
union() union()
{ {
roundedBox([PCB_W + 2*Cover_O, PCB_H + 2*Cover_O, 1*Wall_B_H], 2, true, $fn = $preview ? 32 : 100); translate([PCB_W/2, PCB_H/2, -Wall_B_H/2])
union()
{
difference()
{
roundedBox( [PCB_W + 2*Cover_O , PCB_H + 2*Cover_O , 1*Wall_B_H], 2, true, $fn = $preview ? 32 : 100);
cube( [PCB_W + 0*Cover_O + 0.5, PCB_H + 0*Cover_O + 0.5 , 2*Wall_T_H], center=true);
translate([0, 0, +Cover_B_T/2 - Wall_B_H/2 - eps])
cube( [PCB_W + 1*Cover_O + 0.5, PCB_H + 1*Cover_O + 0.5 , Cover_B_T], center=true);
}
Bottom_Wall_Add_Part("right" , PCB_T/2 , 9 , Power_Plug[1]-2.4); Bottom_Wall_Add_Part("right" , PCB_T/2 , 9 , Power_Plug[1]-2.4);
Bottom_Wall_Add_Part("right" , PCB_T/2+2.5 , 3 , Button[1]); Bottom_Wall_Add_Part("right" , PCB_T/2+2.5 , 3 , Button[1]);
@@ -288,15 +297,11 @@ module Bottom_Wall(plate_transition = 1)
// Bottom_Wall_Add_Part("bottom", PCB_T/2+Spacer_Top_Height, 22, i[0]); // Bottom_Wall_Add_Part("bottom", PCB_T/2+Spacer_Top_Height, 22, i[0]);
// } // }
} }
union() Screw_Plate_T = 1.0;
{
hull() translate([0, 0, -Screw_Plate_T])
{ Top_Wall_Screw_Plates(Screw_Plate_T, -PCB_T/2 - Spacer_Bot_Height);
translate([0, 0, +Wall_B_H/2 + plate_transition]) cube([PCB_W + 1*Cover_O, PCB_H + 1*Cover_O, 2*Wall_B_H], center=true); // Top_Wall_Screw_Plates(1.0, PCB_T/2 - Spacer_Bot_Height);
translate([0, 0, -Wall_B_H/2-eps]) cube([PCB_W + 1*Cover_O - 2*plate_transition , PCB_H + 1*Cover_O - 2*plate_transition, eps], center=true);
}
translate([0, 0, eps-Wall_B_H]) cube([PCB_W + 1*Cover_O - 2*plate_transition , PCB_H + 1*Cover_O - 2*plate_transition, Wall_B_H], center=true);
}
} }
} }
@@ -324,7 +329,7 @@ module Bottom_Wall_Add_Part(wall_section, height, length, position)
module Bottom_Plate() module Bottom_Plate()
{ {
translate([PCB_W/2, PCB_H/2, Cover_B_T/2]) translate([PCB_W/2, PCB_H/2, Cover_B_T/2])
roundedBox([PCB_W + 2*Cover_O, PCB_H + 2*Cover_O, Cover_B_T], 2, true, $fn = $preview ? 32 : 100); roundedBox([PCB_W + 1*Cover_O, PCB_H + 1*Cover_O, Cover_B_T], 1, true, $fn = $preview ? 32 : 100);
} }