- Changed bottom part of housing -> separated to wall and plate
This commit is contained in:
@@ -7,10 +7,10 @@ include <RP2350_MIDI_Lighter_PCB.scad>
|
||||
include <RP2350_MIDI_Lighter_Definition.scad>
|
||||
|
||||
|
||||
Show_FAD_Logo = true;
|
||||
Show_FAD_Logo = false;
|
||||
Show_PCB = false;
|
||||
Debug_Present = true;
|
||||
$preview = false;
|
||||
$preview = true;
|
||||
|
||||
|
||||
|
||||
@@ -26,9 +26,11 @@ if(Show_PCB)
|
||||
|
||||
// Top();
|
||||
// Top_Wall();
|
||||
// Bottom();
|
||||
|
||||
Bottom();
|
||||
// Bottom_Wall(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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
@@ -242,7 +244,7 @@ module Bottom()
|
||||
color([0.8, 0.8, 0.0])
|
||||
difference()
|
||||
{
|
||||
translate([0, 0, -Spacer_Bot_Height - PCB_T/2])
|
||||
translate([0, 0, -Spacer_Bot_Height - PCB_T/2 - 1])
|
||||
{
|
||||
difference()
|
||||
{
|
||||
@@ -254,8 +256,8 @@ module Bottom()
|
||||
Bottom_Plate();
|
||||
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(Mounting_Holes[2]) translate([0, 0, Cover_B_T-eps]) cylinder(h=1, d=10, , $fn = $preview ? 32 : 100);
|
||||
}
|
||||
|
||||
Screw_Holes_M3();
|
||||
@@ -270,13 +272,20 @@ module Bottom()
|
||||
|
||||
module Bottom_Wall(plate_transition = 1)
|
||||
{
|
||||
translate([PCB_W/2, PCB_H/2, +Wall_B_H/2])
|
||||
difference()
|
||||
{
|
||||
translate([0, 0, 0])
|
||||
union()
|
||||
{
|
||||
translate([PCB_W/2, PCB_H/2, -Wall_B_H/2])
|
||||
union()
|
||||
{
|
||||
roundedBox([PCB_W + 2*Cover_O, PCB_H + 2*Cover_O, 1*Wall_B_H], 2, true, $fn = $preview ? 32 : 100);
|
||||
|
||||
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+2.5 , 3 , Button[1]);
|
||||
Bottom_Wall_Add_Part("right" , PCB_T/2+2.0 , 16 , USB_C[1]);
|
||||
@@ -288,16 +297,12 @@ module Bottom_Wall(plate_transition = 1)
|
||||
// Bottom_Wall_Add_Part("bottom", PCB_T/2+Spacer_Top_Height, 22, i[0]);
|
||||
// }
|
||||
}
|
||||
union()
|
||||
{
|
||||
hull()
|
||||
{
|
||||
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);
|
||||
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);
|
||||
}
|
||||
}
|
||||
Screw_Plate_T = 1.0;
|
||||
|
||||
translate([0, 0, -Screw_Plate_T])
|
||||
Top_Wall_Screw_Plates(Screw_Plate_T, -PCB_T/2 - Spacer_Bot_Height);
|
||||
// Top_Wall_Screw_Plates(1.0, PCB_T/2 - Spacer_Bot_Height);
|
||||
}
|
||||
}
|
||||
|
||||
module Bottom_Wall_Add_Part(wall_section, height, length, position)
|
||||
@@ -324,7 +329,7 @@ module Bottom_Wall_Add_Part(wall_section, height, length, position)
|
||||
module Bottom_Plate()
|
||||
{
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user