Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bracket for mounting the stock PSU that comes with the Ultimaker beneath the printer
psuX=65;
psuY=170;
psuZ=40;
wall=3;
screw=2.8;
earsX=10;
earsY=40;
zBlocker=6;
$fn=32;
module screwSlot(radius, length, height) {
translate([0,-(length+radius)/2,0]) hull() {
cylinder(r=radius, h=height);
translate([0,length,0]) cylinder(r=radius, h=height);
}
}
module psuHolder() {
rotate([90,0,0]) difference() {
union() {
cube([psuX+2*(wall+earsX), earsY+wall, wall]);
translate([earsX, 0, 0]) cube([psuX+2*wall, earsY+wall, psuZ+wall]);
}
translate([earsX+wall,wall,-wall]) cube([psuX, earsY+wall, psuZ+wall]);
translate([earsX+wall,-wall,-wall]) cube([psuX, earsY+wall, psuZ-wall-zBlocker]);
translate([earsX/2, earsY/2+screw/2, -wall]) screwSlot(screw/2, earsY-4*wall, 3*wall);
translate([earsX+psuX+2*wall+earsX/2, earsY/2+screw/2, -wall]) screwSlot(screw/2, earsY-4*wall, 3*wall);
}
}
psuHolder();
// uncomment the following line if you want to print both needed parts in one go
//translate([0, wall*2 + psuZ,0]) psuHolder();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment