wip aligning pico clearance
This commit is contained in:
@@ -163,6 +163,7 @@ module case(){
|
||||
cylinder(h=$shellWidth/2,r=$auxCableRadius );
|
||||
}
|
||||
}
|
||||
//TODO: Continue aligning pico clearance
|
||||
module pico(){
|
||||
$topLeftEdgeOfPcbToCenterOfUsb = 27.7;
|
||||
$usbHoleWidth = 12;
|
||||
@@ -172,16 +173,29 @@ module case(){
|
||||
$picoWidth = 25;
|
||||
$picoLength = 53;
|
||||
// Move to position along the wall the usb will be
|
||||
translate([$topLeftEdgeOfPcbToCenterOfUsb - ($usbHoleWidth/2), $switchDistance * $rows, -$usbOffsetFromPcb]){
|
||||
union() {
|
||||
// Create a hole for the usb cable to go through
|
||||
cube([$usbHoleWidth,$shellWidth,$usbHoleHeight]);
|
||||
// Move inside the shell
|
||||
translate([-(($picoWidth - $usbHoleWidth)/2),$clearance - $picoLength, +$usbOffsetFromPcb - $picoPcbClearanceFromBase])
|
||||
// Make clearance downwards for the pico board
|
||||
cube([$picoWidth,$picoLength, $picoLength]);
|
||||
|
||||
}
|
||||
translate([
|
||||
$topLeftEdgeOfPcbToCenterOfUsb - ($usbHoleWidth/2),
|
||||
$switchDistance * $rows,
|
||||
-$usbOffsetFromPcb
|
||||
]){
|
||||
// Create a hole for the usb cable to go through
|
||||
cube([
|
||||
$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(){
|
||||
@@ -258,8 +272,6 @@ module pcb() {
|
||||
|
||||
}
|
||||
|
||||
%pcb();
|
||||
color("#333333")
|
||||
%topDampeners();
|
||||
color("#880000")
|
||||
*%pcb();
|
||||
*topDampeners();
|
||||
case();
|
||||
|
||||
Reference in New Issue
Block a user