forked from jcrocholl/rostock
-
Notifications
You must be signed in to change notification settings - Fork 2
/
motor_end.scad
22 lines (19 loc) · 723 Bytes
/
motor_end.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
include <configuration.scad>
use <bracket.scad>
m = 29; // Motor mounting screws distance (center to center)
module motor_end() {
translate([0, 0, motor_end_height/2])
difference() {
bracket(motor_end_height,bracing=motor_end_bracing, rods=false);
translate([0, 0, motor_height_offset]) union() {
// Motor shaft (RepRap logo)
rotate([90, 0, 0]) cylinder(r=12, h=40, center=true);
translate([0, 0, sin(45)*12]) rotate([0, 45, 0])
cube([12, 40, 12], center=true);
// Motor mounting screw slots
for (x = [-1,1], z=[-1, 1])
translate([x*m/2, 0, z*m/2]) rotate([0, -1*x*z*45, 0]) cube([9, 40, 3], center=true);
}
}
}
motor_end();