added openscad source folder
[clinton/wilson.git] / scad / 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 <x-end.scad>
9
10 module x_end_motor_base(){
11 x_end_base();
12 translate(v=[-15,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=[-1,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=[20,-15.5,-15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 70, r=1.8, $fn=30);
23 translate(v=[1,-15.5,-15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 10, r=3.1, $fn=30);
24
25
26 translate(v=[20,-15.5,15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 70, r=1.8, $fn=30);
27 translate(v=[1,-15.5,15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 10, r=3.1, $fn=30);
28
29
30 translate(v=[20,15.5,-15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 70, r=1.8, $fn=30);
31 translate(v=[1,15.5,-15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 10, r=3.1, $fn=30);
32
33
34 translate(v=[20,15.5,15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 70, r=1.8, $fn=30);
35 translate(v=[1,15.5,15.5]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 10, r=3.1, $fn=30);
36
37 // Material saving cutout
38 translate(v=[-10,12,10]) cube(size = [60,42,42], center = true);
39
40 // Material saving cutout
41 translate(v=[-10,40,-30]) rotate(a=[45,0,0]) cube(size = [60,42,42], center = true);
42 // Motor shaft cutout
43 translate(v=[0,0,0]) rotate(a=[0,-90,0]) rotate(a=[0,0,90]) cylinder(h = 70, r=17, $fn=6);
44 }
45 }
46
47 // Final part
48 module x_end_motor(){
49 difference(){
50 x_end_motor_base();
51 x_end_motor_holes();
52 }
53 }
54
55 x_end_motor();