bearing fixes... hopefully it has all correct dimensions now.
[clinton/prusa3.git] / y-axis-corner.scad
1 // PRUSA iteration3
2 // Y frame corners
3 // GNU GPL v3
4 // Josef Průša <josefprusa@me.com>
5 // Václav 'ax' Hůla <axtheb@gmail.com>
6 // http://www.reprap.org/wiki/Prusa_Mendel
7 // http://github.com/prusajr/PrusaMendel
8
9 include <configuration.scad>
10 use <y-driverain.scad>
11
12 module nutrod(){
13 rotate([0,90,0]){
14 //translate([0,0,-0.1]) nut(m8_nut_diameter,6.7,false);
15 translate([-7.5/2,0,7/2-1.5]) cube([7.5,15,7], center=true);
16 translate([0,0,-1.5]) cylinder(h = 7, r=7.5);
17 cylinder(h = 270, r=4.4, $fn=30);
18 }
19 }
20
21 /*
22 20 mm betwenn the front threaded rods
23 25 mm between the side threaded and smooth rod
24 */
25
26 module leftfront(thru = false){
27 // translate so the rod is on x = 0
28 translate([-11,0,0])
29
30 difference(){
31 if (thru == false) {
32 cube_fillet([22,22,49], vertical=[4,4,4,4], top=[2,6,6,6], fn=8);
33 } else {
34 cube_fillet([22,22,50.5], vertical=[4,4,4,4], top=[2,4,9,4], fn=8);
35 }
36
37 translate([0,11,10]) rotate([0,0,0]) nutrod();
38 translate([0,11,30]) rotate([0,0,0]) nutrod();
39
40 translate([14,0,20]) rotate([0,0,90]) rotate([00,0,0]) nutrod();
41
42 if(thru==false){
43 translate([11,17,45+4]) rotate([0,0,0]) cube([8.2,30,4], center=true);
44 translate([11,2,45]) rotate([0,90,90]) cylinder(h = 270, r=4.1);
45 }else{
46 translate([11,17-5,45+2.05]) rotate([0,0,0]) cube([8.2,30,4.1], center=true);
47 translate([11,2-5,45]) #rotate([0,90,90]) cylinder(h = 270, r=4.1);
48 }
49
50 }
51 }
52
53 //leftfront positioned for printing
54 module leftfrontprint(){
55 rotate([0,0,0]) leftfront();
56 }
57
58
59 leftfrontprint();
60 translate([25,0,0]) mirror([1,0,0]) leftfrontprint();
61 translate([12,2,28]) rotate([0,0,0]) cube([10,4,1], center=true);
62
63 translate([0,25,0]) {
64 leftfrontprint();
65 translate([25,0,0]) mirror([1,0,0]) leftfrontprint();
66 translate([12,2,28]) rotate([0,0,0]) cube([10,4,1], center=true);
67 }
68