Adjusted pico usb hole and shell height

This commit is contained in:
2025-08-31 16:26:43 +02:00
parent e2f74cb0a4
commit 69f7dbaea7

View File

@@ -48,6 +48,7 @@ $pcbDampenerOffset = $pcbHeight + $dampenerHeight;
[$switchDistance * 2, 0], [$switchDistance * 2, 0],
]; ];
picoUsbBody = [8, 5.66, 2.65];
module pin(){ module pin(){
cylinder(h=$holes, r=1, center=false); cylinder(h=$holes, r=1, center=false);
@@ -127,7 +128,7 @@ rightTopDampener();
module case(){ module case(){
// Then adjust the shim, aux and pico. // Then adjust the shim, aux and pico.
// Last add magnets, don't forget the clearance. // Last add magnets, don't forget the clearance.
$baseHeight = 6.3; $baseHeight = 7.6;
module magnets(){ module magnets(){
$magnetWidth = 4; $magnetWidth = 4;
@@ -166,17 +167,18 @@ module case(){
//TODO: Continue aligning pico clearance //TODO: Continue aligning pico clearance
module pico(){ module pico(){
$topLeftEdgeOfPcbToCenterOfUsb = 27.7; $topLeftEdgeOfPcbToCenterOfUsb = 27.7;
$usbHoleWidth = 12; $usbHoleWidth = 11.15+($clearance*2);
$usbHoleHeight = 9; $usbHoleHeight = 7 + ($clearance *2);
$usbOffsetFromPcb = 4 - $pcbDampenerOffset; $usbOffsetFromPcb = 4.1 - $pcbHeight;
$picoPcbClearanceFromBase = 5.4 - $pcbDampenerOffset; $picoPcbClearanceFromBase = 5.4 - $pcbHeight;
$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
// Hole should be centered on the pico usb
translate([ translate([
$topLeftEdgeOfPcbToCenterOfUsb - ($usbHoleWidth/2), $topLeftEdgeOfPcbToCenterOfUsb - ($usbHoleWidth/2),
$switchDistance * $rows, $switchDistance * $rows,
-$usbOffsetFromPcb -$usbOffsetFromPcb - (($usbHoleHeight - picoUsbBody.z )/2)
]){ ]){
// Create a hole for the usb cable to go through // Create a hole for the usb cable to go through
cube([ cube([
@@ -201,7 +203,7 @@ module case(){
module shim(){ module shim(){
$shimPoints = [ $shimPoints = [
[0 - $shellWidth / 2, - $baseHeight], [0 - $shellWidth / 2, - $baseHeight],
[$switchDistance * $columns + $shellWidth/2 + $clearance, $clearance], [$switchDistance * $columns + $shellWidth/2 + $clearance, -$clearance],
[$switchDistance * $columns + $shellWidth/2 + $clearance, - ($baseHeight + $clearance)] [$switchDistance * $columns + $shellWidth/2 + $clearance, - ($baseHeight + $clearance)]
]; ];
// Face z/x-plane // Face z/x-plane
@@ -238,7 +240,6 @@ module case(){
module pcb() { module pcb() {
jackBody = [15,6.15,5.3]; jackBody = [15,6.15,5.3];
picoBody = [21, 51.5, 1]; picoBody = [21, 51.5, 1];
picoUsbBody = [8, 5.66, 2.65];
module jack() { module jack() {
translate([0,jackBody.y/2, jackBody.z/2]) translate([0,jackBody.y/2, jackBody.z/2])
rotate([0,90]) rotate([0,90])
@@ -272,6 +273,6 @@ module pcb() {
} }
*%pcb(); %pcb();
*topDampeners(); %topDampeners();
case(); case();