This commit is contained in:
2025-10-26 20:58:47 +01:00
2 changed files with 74 additions and 17 deletions

View File

@@ -8,9 +8,10 @@ $preview = false;
// mirror([0, 0, 1])
// {
// translate([0, 0, 1-eps]) roundedBox([15, 74, 2], 15/2, true, $fn = $preview ? 32 : 100);
// KandM_14510_Mount();
// KandM_14510_Mount();
// }
// KandM_14510_PressIn_Support(73);
module KandM_14510_Mount(floor_height = 1, cutout = false)
{
@@ -33,14 +34,38 @@ module KandM_14510_Mount(floor_height = 1, cutout = false)
translate([0, 0, floor_height/2-eps])
roundedBox([Outer_T + 2*Wall_T , Outer_W + 2*Wall_T, floor_height], (Outer_T + 2*Wall_T)/2, true, $fn = $preview ? 32 : 100);
translate([0, 0, -Pick_H/2])
difference()
{
roundedBox([Pick_T, Pick_W, Pick_H], Pick_T/2, true, $fn = $preview ? 32 : 100);
difference()
union()
{
roundedBox([Outer_T + 2*Wall_T , Outer_W + 2*Wall_T, 1*Outer_H], (Outer_T + 2*Wall_T)/2, true, $fn = $preview ? 32 : 100);
roundedBox([Outer_T , Outer_W , 2*Outer_H], Outer_T/2 , true, $fn = $preview ? 32 : 100);
roundedBox([Pick_T, Pick_W, Pick_H], Pick_T/2, true, $fn = $preview ? 32 : 100);
difference()
{
roundedBox([Outer_T + 2*Wall_T , Outer_W + 2*Wall_T, 1*Outer_H], (Outer_T + 2*Wall_T)/2, true, $fn = $preview ? 32 : 100);
roundedBox([Outer_T , Outer_W , 2*Outer_H], Outer_T/2 , true, $fn = $preview ? 32 : 100);
}
}
translate([0, 0, -3])
rotate([0, 90, 0])
cylinder(d=3.6, h=2*(Outer_W + 2*Wall_T), center=true, $fn = $preview ? 32 : 100);
}
}
}
module KandM_14510_PressIn_Support(height = 1)
{
mirror([0, 0, 1])
union()
{
rotate([0, 90, 0])
cylinder(d=15, h=height, center=true, $fn = $preview ? 32 : 100);
translate([0, 0, 15/2])
cube([height, 9.5, 4], center=true);
translate([0, 0, 15/2 + 4/2 + 3/2 - eps])
roundedBox([height, 20, 3], 2, true, $fn = $preview ? 32 : 100);
}
}

View File

@@ -8,9 +8,10 @@ include <RP2350_MIDI_Lighter_Definition.scad>
Show_FAD_Logo = false;
Show_PCB = true;
Audio_Jack_Present = true;
Debug_Present = true;
Show_PCB = false;
Audio_Jack_Present = false;
Debug_Present = false;
Bottom_Mount = "ZipTie"; // ZipTie, KandM
$preview = false;
@@ -28,11 +29,11 @@ if(Show_PCB)
// Top();
// Top_Wall();
// Bottom();
Bottom(Bottom_Mount, true);
// Bottom_Wall();
// rotate([0, 180, 0])
// translate([0, 0, eps]) Display_GC9A01A_Cover();
Power_Plug_Solder_Guide();
// Power_Plug_Solder_Guide();
// MIDI_Plug_Solder_Guide(Audio_Jack_Present);
module Power_Plug_Solder_Guide()
@@ -301,7 +302,7 @@ module Top_Wall_Screw_Plates(height, height_offset, cutout=false)
module Bottom()
module Bottom(Bottom_Mount = "KandM", Show_Center_Drill_Hole = true)
{
color([0.8, 0.8, 0.0])
difference()
@@ -316,16 +317,41 @@ module Bottom()
difference()
{
Bottom_Plate();
translate([PCB_W/2, PCB_H/2, 0]) KandM_14510_Mount(1, true);
if(Bottom_Mount == "KandM") {
translate([PCB_W/2, PCB_H/2, 0]) KandM_14510_Mount(1, true);
}
}
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);
if(Bottom_Mount == "KandM") {
translate([PCB_W/2, PCB_H/2, 5.5]) KandM_14510_Mount();
}
else if(Bottom_Mount == "ZipTie") {
Cube_H = 7;
Cyl_D = 30;
translate([PCB_W/2, PCB_H/2, eps-Cube_H/2])
difference() {
roundedBox([15, PCB_H, Cube_H], 4, true);
translate([0, 0, -Cyl_D/2])
rotate([90, 0, 0])
cylinder(h=2*PCB_H, d=Cyl_D, center=true, $fn = $preview ? 32 : 100);
translate([0, 0, Cube_H/2-1])
cube([100, 14, 2], center=true);
}
}
translate(Mounting_Holes[2]) translate([0, 0, Cover_B_T-eps]) cylinder(h=1, d=10, $fn = $preview ? 32 : 100);
}
Screw_Holes_M3();
translate([0, 0, -Cover_B_T]) mirror([0, 0, 1]) Screw_Pits_M3(1);
}
if(Show_Center_Drill_Hole == false)
{
translate(Mounting_Holes[2])
translate([0, 0, -Cover_B_T/2]) cube([7, 7, Cover_B_T], center=true);
}
}
PCB_Cutouts_From_Bottom();
@@ -396,8 +422,14 @@ 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 + 1*Cover_O, PCB_H + 1*Cover_O, Cover_B_T], 1, 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);
translate([0, 0, -0.5 + Cover_B_T - eps]) {
cube([28, PCB_H, 1], center=true);
translate([0, +10, 0]) cube([PCB_W, 36, 1], center=true);
translate([0, -28, 0]) cube([PCB_W, 14, 1], center=true);
}
}
}
module MIDI_Plug_Cutout()