Case for MKS - bottom part
This commit is contained in:
parent
d75b2eb0fa
commit
39a87faed9
2 changed files with 140 additions and 49 deletions
BIN
MKS Gen L v1.0/Case-Bottom.stl
Normal file
BIN
MKS Gen L v1.0/Case-Bottom.stl
Normal file
Binary file not shown.
|
@ -1,26 +1,94 @@
|
||||||
|
|
||||||
// MKS Gen L v1.0
|
// MKS Gen L v1.0
|
||||||
width = 110;
|
width = 110;
|
||||||
depth = 84;
|
depth = 84;
|
||||||
height = 25;
|
height = 25;
|
||||||
thickness=2;
|
thickness = 3;
|
||||||
mount_peg = 3;
|
mount_peg = 3;
|
||||||
spacing=2;
|
spacing = 10;
|
||||||
|
|
||||||
peg_up = 3;
|
peg_up = 3;
|
||||||
peg_bottom = 8;
|
peg_bottom = 8;
|
||||||
pcb_thickness = 1.5;
|
pcb_thickness = 1.5;
|
||||||
|
screw_size = height - thickness; // 10;
|
||||||
|
|
||||||
//
|
//
|
||||||
$fn = 100;
|
$fn = 100;
|
||||||
|
|
||||||
base(mount_peg);
|
//bottom_part();
|
||||||
walls();
|
|
||||||
|
|
||||||
color("green") {
|
top_part();
|
||||||
|
|
||||||
|
|
||||||
|
module bottom_part() {
|
||||||
|
union() {
|
||||||
|
base();
|
||||||
|
walls();
|
||||||
|
screw_mounts();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module base(d1){
|
module top_part() {
|
||||||
|
x = width + 2 * spacing;
|
||||||
|
y = depth + 2 * spacing;
|
||||||
|
|
||||||
|
d = (peg_up + 2) / 2 + 2;
|
||||||
|
h = height - thickness + 2;
|
||||||
|
|
||||||
|
difference() {
|
||||||
|
translate([0, 0, height - thickness])
|
||||||
|
cube([x, y, thickness]);
|
||||||
|
|
||||||
|
screw_cutoff();
|
||||||
|
|
||||||
|
translate([x - 8, 0, 0])
|
||||||
|
screw_cutoff();
|
||||||
|
translate([0, y - 8, 0])
|
||||||
|
screw_cutoff();
|
||||||
|
translate([x - 8, y - 8, 0])
|
||||||
|
screw_cutoff();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module screw_mounts() {
|
||||||
|
d = (peg_up) + 1;
|
||||||
|
x = width + 2 * spacing - 4;
|
||||||
|
y = depth + 2 * spacing - 4;
|
||||||
|
|
||||||
|
h = 0; //height - (screw_size + thickness);
|
||||||
|
|
||||||
|
translate([d, d, h])
|
||||||
|
rotate([0, 0, 180])
|
||||||
|
screw_mount();
|
||||||
|
|
||||||
|
translate([x, d, h])
|
||||||
|
rotate([0, 0, - 90])
|
||||||
|
screw_mount();
|
||||||
|
|
||||||
|
translate([d, y, h])
|
||||||
|
rotate([0, 0, 90])
|
||||||
|
screw_mount();
|
||||||
|
|
||||||
|
translate([x, y, h])
|
||||||
|
screw_mount();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
module screw_mount() {
|
||||||
|
difference() {
|
||||||
|
union() {
|
||||||
|
cylinder(h = screw_size, d = peg_up + 3);
|
||||||
|
translate([0, - peg_up, 0])
|
||||||
|
cube([peg_up * 2, peg_up * 2, screw_size]);
|
||||||
|
translate([- peg_up, 0, 0])
|
||||||
|
cube([peg_up * 2, peg_up * 2, screw_size]);
|
||||||
|
}
|
||||||
|
translate([0, 0, - screw_size * 0.1])
|
||||||
|
cylinder(h = screw_size * 1.3, d = peg_up);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module base() {
|
||||||
|
d1 = mount_peg;
|
||||||
x = width + 2 * spacing;
|
x = width + 2 * spacing;
|
||||||
y = depth + 2 * spacing;
|
y = depth + 2 * spacing;
|
||||||
|
|
||||||
|
@ -48,8 +116,21 @@ module walls(){
|
||||||
translate([- spacing * 1.5, 32, 5])
|
translate([- spacing * 1.5, 32, 5])
|
||||||
cube([spacing * 2, 21, 6]);
|
cube([spacing * 2, 21, 6]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// usb
|
||||||
|
translate([0, 0, thickness + pcb_thickness]) {
|
||||||
|
translate([21, - spacing * 1.5, 5])
|
||||||
|
cube([12, spacing * 2, 11]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// holes for mounts
|
||||||
|
translate([30, depth + thickness * 3.5, thickness + 10])
|
||||||
|
rotate([90, 0, 0])
|
||||||
|
cylinder(h = thickness * 2, d = 3);
|
||||||
|
translate([width - 30, depth + thickness * 3.5, thickness + 10])
|
||||||
|
rotate([90, 0, 0])
|
||||||
|
cylinder(h = thickness * 2, d = 3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
module walls_basic() {
|
module walls_basic() {
|
||||||
|
@ -70,3 +151,13 @@ module peg(h) {
|
||||||
cylinder(h = h, d = peg_bottom);
|
cylinder(h = h, d = peg_bottom);
|
||||||
cylinder(h = h * 3, d = peg_up);
|
cylinder(h = h * 3, d = peg_up);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module screw_cutoff() {
|
||||||
|
d = (peg_up + 5) / 2;
|
||||||
|
h = height - thickness + 2;
|
||||||
|
|
||||||
|
translate([d, d, h])
|
||||||
|
cylinder(h = 2, d1 = 3, d2 = 6);
|
||||||
|
translate([d, d, h - 2])
|
||||||
|
cylinder(h = 2, d = 3);
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue