From fd46324490d0c8a82b20d40ca66f0b87d72b7814 Mon Sep 17 00:00:00 2001 From: maride Date: Sat, 13 Jan 2018 13:49:58 +0100 Subject: [PATCH] Add PSU Bracket for the Matekiste --- Matekiste_PSU_Bracket.scad | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Matekiste_PSU_Bracket.scad diff --git a/Matekiste_PSU_Bracket.scad b/Matekiste_PSU_Bracket.scad new file mode 100644 index 0000000..5015da8 --- /dev/null +++ b/Matekiste_PSU_Bracket.scad @@ -0,0 +1,50 @@ +HEIGHT=5; +TOLERANCE=0.5; + +BEARING=6; +BEARING_SPACING=177.5; + +PSU_WIDTH=82; +PSU_HEIGHT=41; +PSU_Y_SPACING=-PSU_HEIGHT+BEARING*2+10; + +POWER_PLUG_WIDTH=24; +POWER_PLUG_HEIGHT=31; +POWER_PLUG_X_SPACING=2; +POWER_PLUG_Y_SPACING=2; + +FAN_DIAMETER=37; +FAN_X_SPACING=4; +FAN_Y_SPACING=2; + +$fn=36; + + +__PSU_LEFT_POS=(BEARING*2 + BEARING_SPACING)/2 - PSU_WIDTH/2; + +linear_extrude(height=HEIGHT) { + // bearing connector + difference() { + square([BEARING*2 + BEARING_SPACING, BEARING*2]); + // bearing + translate([BEARING, BEARING]) + circle(d=BEARING+TOLERANCE); + translate([BEARING + BEARING_SPACING, BEARING]) + circle(d=BEARING+TOLERANCE); + // cutout for psu + translate([__PSU_LEFT_POS, 0]) + square([PSU_WIDTH, BEARING*2]); + } + + //psu outline box + translate([__PSU_LEFT_POS, PSU_Y_SPACING]) + difference() { + square([PSU_WIDTH, PSU_HEIGHT]); + // power plug cutout + translate([POWER_PLUG_X_SPACING-TOLERANCE/2, POWER_PLUG_Y_SPACING-TOLERANCE/2]) + square([POWER_PLUG_WIDTH+TOLERANCE, POWER_PLUG_HEIGHT+TOLERANCE]); + // fan cutout + translate([PSU_WIDTH-FAN_DIAMETER/2-FAN_X_SPACING-TOLERANCE/2, FAN_Y_SPACING+FAN_DIAMETER/2-TOLERANCE/2]) + circle(d=FAN_DIAMETER+TOLERANCE); + } +} \ No newline at end of file