Create frame

This commit is contained in:
2025-09-12 21:20:15 +02:00
parent 0ff12f7b27
commit 0c68eedebe
2 changed files with 35 additions and 8 deletions

Binary file not shown.

View File

@@ -128,16 +128,11 @@ rightTopDampener();
//leftTopDampener();
//}
}
module case(){
// Then adjust the shim, aux and pico.
// Last add magnets, don't forget the clearance.
$baseHeight = 7.6;
module magnets(){
$magnetWidth = 4;
$magnetRadius = ($magnetWidth / 2) + $clearance/2;
$magnetHeight = 2 + $clearance;
module magnets(){
$offset = ($shellWidth / 2 / 2) -0.8 ;
// Set Z-origin to align with shell top
translate([0, 0, $shellHeight -$magnetHeight]){
@@ -151,6 +146,12 @@ module case(){
cylinder(h=$magnetHeight, r=$magnetRadius);
}
}
module case(){
// Then adjust the shim, aux and pico.
// Last add magnets, don't forget the clearance.
$baseHeight = 7.6;
module aux(){
$topLeftOfPcbToCenterOfAux = 15.4;
$measurementPcbPlaneToCenterOfAux = 2.8;
@@ -300,8 +301,34 @@ module pcb() {
}
}
module lid(){
difference(){
translate([0,0,$shellHeight]){
union(){
linear_extrude($magnetHeight+0.2){
difference(){
offset(r=$shellWidth/2 + $clearance, chamfer=true) polygon(points);
offset(r=$clearance) polygon(points);
}
}
linear_extrude(1){
difference(){
offset(r=$clearance) polygon(points);
offset(r=-1.5, chamfer=true) polygon(points);
}
}
}
}
translate([0,0,$magnetHeight-0.1])
magnets();
}
}
*%pcb();
*%topDampeners();
%topDampeners();
case();
lid();