center beelink EQi12 tray automatically

* Add bottomScrewTrayCentered()
* Calculate tray dimensions dynamically from PC dimensions
This commit is contained in:
2025-06-13 00:13:02 +00:00
parent b23f5434be
commit 774474e0f0
2 changed files with 168 additions and 142 deletions

View File

@ -1,4 +1,5 @@
use <../tray/tray.scad> use <../tray/tray.scad>
include <../../rack/sharedVariables.scad>
/* /*
Simple tray for a beelink mini-s series mini pc. Simple tray for a beelink mini-s series mini pc.
@ -6,20 +7,27 @@ use <../tray/tray.scad>
Please make sure to configure the correct rack frame dimensions in rackFrame.scad. Please make sure to configure the correct rack frame dimensions in rackFrame.scad.
*/ */
pcWidth = 126;
pcDepth = 126;
pcHeight = 49;
frontLipHeight = 3;
airflowGap = 5;
trayWidth = pcWidth + (airflowGap * 2);
trayDepth = 140;
unitHeight = ceil(pcHeight / screwDiff);
difference () { difference () {
bottomScrewTray ( bottomScrewTrayCentered(
u = 5, u = unitHeight,
trayWidth = 140, trayWidth = trayWidth,
trayDepth = 140, trayDepth = trayDepth,
trayThickness = 3, trayThickness = 3,
frontLipHeight = 3, frontLipHeight = frontLipHeight,
backLipHeight = 5, backLipHeight = 5,
frontThickness = 3, frontThickness = 3,
sideThickness = 3, sideThickness = 3,
mountPointElevation = 1, mountPointElevation = 1,
mountPointType = "m4", mountPointType = "m4",
sideSupport = true, sideSupport = true
trayLeftPadding = 15
); );

View File

@ -91,3 +91,21 @@ module bottomScrewTray(u, trayWidth, trayDepth, trayThickness, mountPoints = [],
} }
module bottomScrewTrayCentered(u, trayWidth, trayDepth, trayThickness, mountPoints = [], mountPointElevation, mountPointType, frontThickness, sideThickness, frontLipHeight, backLipHeight, sideSupport=true) {
trayLeftPadding = (maxUnitWidth - trayWidth) / 2;
bottomScrewTray(
u=u,
trayWidth=trayWidth,
trayDepth=trayDepth,
trayThickness=trayThickness,
mountPoints=mountPoints,
mountPointElevation=mountPointElevation,
mountPointType=mountPointType,
frontThickness=frontThickness,
sideThickness=sideThickness,
frontLipHeight=frontLipHeight,
backLipHeight=backLipHeight,
trayLeftPadding=trayLeftPadding,
sideSupport=sideSupport);
}