Files

45 lines
975 B
OpenSCAD
Raw Permalink Normal View History

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