wip aligning pico clearance

This commit is contained in:
2025-08-24 09:16:46 +02:00
parent 2cb2fee571
commit d5a13970dd

View File

@@ -163,6 +163,7 @@ module case(){
cylinder(h=$shellWidth/2,r=$auxCableRadius ); cylinder(h=$shellWidth/2,r=$auxCableRadius );
} }
} }
//TODO: Continue aligning pico clearance
module pico(){ module pico(){
$topLeftEdgeOfPcbToCenterOfUsb = 27.7; $topLeftEdgeOfPcbToCenterOfUsb = 27.7;
$usbHoleWidth = 12; $usbHoleWidth = 12;
@@ -172,16 +173,29 @@ module case(){
$picoWidth = 25; $picoWidth = 25;
$picoLength = 53; $picoLength = 53;
// Move to position along the wall the usb will be // Move to position along the wall the usb will be
translate([$topLeftEdgeOfPcbToCenterOfUsb - ($usbHoleWidth/2), $switchDistance * $rows, -$usbOffsetFromPcb]){ translate([
union() { $topLeftEdgeOfPcbToCenterOfUsb - ($usbHoleWidth/2),
// Create a hole for the usb cable to go through $switchDistance * $rows,
cube([$usbHoleWidth,$shellWidth,$usbHoleHeight]); -$usbOffsetFromPcb
// Move inside the shell ]){
translate([-(($picoWidth - $usbHoleWidth)/2),$clearance - $picoLength, +$usbOffsetFromPcb - $picoPcbClearanceFromBase]) // Create a hole for the usb cable to go through
// Make clearance downwards for the pico board cube([
cube([$picoWidth,$picoLength, $picoLength]); $usbHoleWidth,
$shellWidth,
} $usbHoleHeight
]);
// Move inside the shell, nullify the usb clearance from pcb and move down according to pico clearance
translate([
-(($picoWidth - $usbHoleWidth)/2),
$clearance - $picoLength,
+$usbOffsetFromPcb - $picoPcbClearanceFromBase
])
// Make clearance downwards for the pico board
#cube([
$picoWidth,
$picoLength,
$picoPcbClearanceFromBase
]);
} }
} }
module shim(){ module shim(){
@@ -258,8 +272,6 @@ module pcb() {
} }
%pcb(); *%pcb();
color("#333333") *topDampeners();
%topDampeners();
color("#880000")
case(); case();