DIY_3D_Printer/YRollHolder.scad

45 lines
975 B
OpenSCAD
Raw Normal View History

$fn = 33;
2021-01-01 16:18:29 +00:00
M3HoleDiam = 3.4;
2021-01-01 16:18:29 +00:00
height = 40;
thickness = 3;
length = 30;
2021-01-01 16:18:29 +00:00
// cambelt has 6mm width
innerspace = 8;
2021-01-01 16:18:29 +00:00
// call main
YRollHolder();
module YRollHolder() {
render() difference() {
frame();
holes();
}
2021-01-01 16:18:29 +00:00
}
2021-01-01 16:18:29 +00:00
module frame() {
cube([innerspace + 2 * thickness, thickness, height]);
2021-01-01 16:18:29 +00:00
translate([0, thickness, 0]) cube([thickness, length, height]);
translate([innerspace + thickness, thickness, 0]) cube([thickness, length, height]);
}
module holes() {
2021-01-01 16:18:29 +00:00
// two inner holes
translate([innerspace / 2 + thickness, 0, height / 4]) M3Hole();
translate([innerspace / 2 + thickness, 0, height / 4 * 3]) M3Hole();
translate([0, length / 4 * 3, height / 2]) SideM3Hole();
2021-01-01 16:18:29 +00:00
translate([innerspace + thickness, length / 4 * 3, height / 2]) SideM3Hole();
}
module M3Hole() {
rotate([0, 90, 90])cylinder(h = thickness, d = M3HoleDiam);
2021-01-01 16:18:29 +00:00
}
module SideM3Hole() {
rotate([0, 90, 0])cylinder(h = thickness, d = M3HoleDiam);
2021-01-01 16:18:29 +00:00
}