- Added Solder Guides to the Housing

- Did some minor adjustments for better fitting
 - Added Select Value screen and initializes the infrastructure
This commit is contained in:
2025-09-19 17:16:35 +02:00
parent c8f14373d3
commit 90bca063e6
9 changed files with 258 additions and 47 deletions

View File

@@ -8,10 +8,10 @@ include <RP2350_MIDI_Lighter_Definition.scad>
Show_FAD_Logo = false;
Show_PCB = false;
Audio_Jack_Present = false;
Show_PCB = true;
Audio_Jack_Present = true;
Debug_Present = true;
$preview = true;
$preview = false;
@@ -32,12 +32,37 @@ if(Show_PCB)
// Bottom_Wall();
// rotate([0, 180, 0])
// translate([0, 0, eps]) Display_GC9A01A_Cover();
MIDI_Plug_Solder_Guide();
Power_Plug_Solder_Guide();
// MIDI_Plug_Solder_Guide(Audio_Jack_Present);
module MIDI_Plug_Solder_Guide()
module Power_Plug_Solder_Guide()
{
Main_Block_Z = 13;
difference()
{
translate(Power_Plug) translate([2.5, 0, Main_Block_Z/2 + PCB_T/2 +eps]) cube([12, 18, Main_Block_Z], center=true);
translate(Power_Plug) translate([-2, 6+eps, 0]) cube([8, 6, 100], center=true);
translate(Power_Plug) translate([0, -8, 2 + PCB_T/2 - eps]) cube([20, 6, 4], center=true);
Screw_Holes_M3();
translate(Power_Plug)
translate([10.625, -2.4, 0])
translate([-3.5, 0, 0])
scale(1.05)
{
translate([3.5/2-eps, 0, 11/2]) cube([ 3.5, 9, 11.0], center=true);
translate([-10.9/2, 0, 6.4/2]) cube([10.9, 9, 6.4], center=true);
translate([-10.9/2, 0, 6.4]) rotate([0, 90, 0]) cylinder(h=10.9, d=9, center=true, $fn=60);
}
}
}
module MIDI_Plug_Solder_Guide(Audio_Jack_Present = false)
{
Main_Block_X = PCB_W + 2*Cover_O;
Main_Block_Y = 13.335 + 2;
Main_Block_Y = 13.335 + 4;
difference()
{
@@ -51,9 +76,14 @@ module MIDI_Plug_Solder_Guide()
for (i = MIDI_Plugs) {
translate(i) {
translate([0, -5, 10.2/2]) cube([18.2, 10.0, 10.20], center=true);
translate([0, -0.5-10-0.5+eps, 20.35/2]) cube([20.5, 2.0, 20.35], center=true);
translate([0, -0.5-10-0.25+eps, 20.35/2]) cube([21.5, 2.5, 20.35], center=true);
}
}
if(Audio_Jack_Present) {
translate(Audio_Jack) translate([0, -3, 5 + PCB_T/2]) cube([8, 20, 10], center=true);
translate(Audio_Jack) translate([0, 0, 0.5 + PCB_T/2-eps]) cube([12, 20, 1], center=true);
}
}
}
@@ -144,7 +174,7 @@ module Top_Wall()
translate([0, 0, -Wall_T_H/2 - Overlao_H/2 - eps]) cube([PCB_W + 1*Cover_O, PCB_H + 1*Cover_O, Overlao_H], center=true);
}
cube( [PCB_W + 0*Cover_O + 0.5, PCB_H + 0*Cover_O + 0.5 , 2*Wall_T_H], center=true);
cube([PCB_W + 0*Cover_O + 0.5, PCB_H + 0*Cover_O + 0.5 , 2*Wall_T_H], center=true);
translate([0, 0, +Wall_T_H/2 - Cover_T_T/2]) cube([PCB_W + 1*Cover_O, PCB_H + 1*Cover_O, Cover_T_T + eps], center=true);
}
@@ -163,8 +193,6 @@ module Top_Wall()
}
}
translate([PCB_W/2, PCB_H/2, +Wall_T_H/2])
{
// For the MOLEX Connector
@@ -174,9 +202,9 @@ module Top_Wall()
if(Audio_Jack_Present) {
Top_Wall_Remove_Part("bottom", 3.5, 10, Audio_Jack[0]);
}
Top_Wall_Remove_Part("right", 6.5, 3.5, Button[1]);
translate([-Cover_O, 0, 0]) Top_Wall_Remove_Part("right", PCB_T/2 + 8.0, 8.0, Button[1]);
Top_Wall_Remove_Part("right", PCB_T/2+2.5, 16, USB_C[1]);
Top_Wall_Remove_Part("right", 7.0, 3.5, Button[1]);
translate([-Cover_O + eps, 0, 0]) Top_Wall_Remove_Part("right", PCB_T/2 + 8.0, 8.0, Button[1]);
Top_Wall_Remove_Part("right", PCB_T/2+2.2, 16, USB_C[1]);
// Cutout for Debug Connector
if(Debug_Present) {
@@ -194,6 +222,7 @@ module Top_Wall()
}
translate([0, 0, Cover_T_T]) Top_Wall_Add_Inner_Wall("right", Wall_T_H, Cover_O/2, 1, Power_Plug[1]+2.5);
translate([0, 0, Cover_T_T]) Top_Wall_Add_Inner_Wall("right", Wall_T_H - 3.0, Cover_O/2, 1, Power_Plug[1]-7.8);
}
}