diff --git a/Housing/RP2350_MIDI_Lighter_Definition.scad b/Housing/RP2350_MIDI_Lighter_Definition.scad index 98b91dd..e419d74 100644 --- a/Housing/RP2350_MIDI_Lighter_Definition.scad +++ b/Housing/RP2350_MIDI_Lighter_Definition.scad @@ -6,7 +6,7 @@ eps = 0.001; Cover_O = 2.5; // O = Overhang 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; @@ -21,7 +21,7 @@ Spacer_Top_Height = 10; Spacer_Bot_Height = 5; 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 = [ [ 4.0, 70.0, 0], diff --git a/Housing/RP2350_MIDI_Lighter_Housing.scad b/Housing/RP2350_MIDI_Lighter_Housing.scad index 2a7ee4c..68552ac 100644 --- a/Housing/RP2350_MIDI_Lighter_Housing.scad +++ b/Housing/RP2350_MIDI_Lighter_Housing.scad @@ -7,10 +7,10 @@ include include -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); }