Merge pull request #65 from AxTheB/master
[clinton/prusa3.git] / single_plate / src / x-end-motor.scad
1 // PRUSA iteration3
2 // X end motor
3 // GNU GPL v3
4 // Josef Průša <iam@josefprusa.cz> and contributors
5 // http://www.reprap.org/wiki/Prusa_Mendel
6 // http://prusamendel.org
7
8 use <inc/x-end.scad>
9
10 module x_end_motor_base(){
11 x_end_base();
12 translate(v=[-14,31,26.5]) cube(size = [17,44,53], center = true);
13 }
14
15 module x_end_motor_holes(){
16 x_end_holes();
17 // Position to place
18 translate(v=[-0,32,30.25]){
19 // Belt hole
20 translate(v=[-14,1,0]) cube(size = [10,46,22], center = true);
21 // Motor mounting holes
22 translate(v=[-10,-15.5,-15.5]) cube(size = [60,3.5,3.5], center = true);
23 translate(v=[-10,-15.5,15.5]) cube(size = [60,3.5,3.5], center = true);
24 translate(v=[-10,15.5,-15.5]) cube(size = [60,3.5,3.5], center = true);
25 translate(v=[-10,15.5,15.5]) cube(size = [60,3.5,3.5], center = true);
26 // Material saving cutout
27 translate(v=[-10,40,-30]) rotate(a=[45,0,0]) cube(size = [60,42,42], center = true);
28 // Motor shaft cutout
29 translate(v=[0,0,0]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 80, r=18, $fn=6);
30 }
31 }
32
33 // Final part
34 module x_end_motor(){
35 difference(){
36 x_end_motor_base();
37 x_end_motor_holes();
38 }
39 }
40
41 x_end_motor();