Changing repository link in comments to correct Github URL.
[clinton/prusa3.git] / box_frame / y-axis-corner.scad
CommitLineData
2159eed1
VAH
1// PRUSA iteration3
2// Y frame corners
d3618a65 3// GNU GPL v3
2159eed1
VAH
4// Josef Průša <josefprusa@me.com>
5// Václav 'ax' Hůla <axtheb@gmail.com>
d3618a65 6// http://www.reprap.org/wiki/Prusa_Mendel
8e93419f 7// http://github.com/josefprusa/Prusa3
d3618a65 8
d3618a65 9include <configuration.scad>
eb66dab2 10use <y-drivetrain.scad>
d3618a65 11
c338af9c 12module nutrod(r=4.4){
fe687d90 13 //threared rods
7e896b17 14 rotate([0,90,0]){
c338af9c 15 translate([0,0,-5]) cylinder(h = 270, r=r, $fn=30);
7e896b17 16 }
d3618a65
NZ
17}
18
7b892aca
T
19
20// 20 mm betwenn the front threaded rods
21// 25 mm between the side threaded and smooth rod
22
3ade0448 23
639d402a 24module leftfront(thru = false){
fe687d90 25 y_end_plug=2;
7e896b17 26 // translate so the rod is on x = 0
fe687d90 27 translate([-11,-y_end_plug,0])
d3618a65 28
7e896b17 29 difference(){
639d402a 30 if (thru == false) {
2e47cce1 31 translate([0,0,12-board_thickness]) cube_fillet([22, 22, 40 + board_thickness + xy_delta], vertical=[4,4,4,4], top=[2,6,6,6], fn=8);
639d402a 32 } else {
2e47cce1 33 translate([0,0,12-board_thickness]) cube_fillet([22, 22, 41.5 + board_thickness + xy_delta], vertical=[4,4,4,4], top=[2,4,9,4], fn=8);
639d402a 34 }
d3618a65 35
fe687d90 36 //threaded rods across (short)
3ade0448
VAH
37 translate([0,11,10]) rotate([0,0,0]) nutrod();
38 translate([0,11,30]) rotate([0,0,0]) nutrod();
fe687d90
VAH
39 //threaded rod along (long, M10)
40 translate([11, 0, 14.6 + y_threaded_rod_long_r]) rotate([0,0,90]) nutrod(r=y_threaded_rod_long_r);
d3618a65 41
7e896b17 42 if(thru==false){
fe687d90 43 //Leave space on part top thru which the rod is inserted, but not too big so it still snaps in
2e47cce1 44 translate([11, 15 + y_end_plug, 48 + bushing_xy[0] * 0.75 + xy_delta]) cube([bushing_xy[0] * 2.05, 30, 4], center=true);
fe687d90 45 //Actual smoooth rod
2e47cce1 46 translate([11, y_end_plug, 48 + xy_delta]) rotate([0, 90, 90]) cylinder(h = 270, r=bushing_xy[0]);
7e896b17 47 }else{
2e47cce1
VAH
48 translate([11, 17-5, 48 + 2.05 + xy_delta]) cube([8.2, 30, 4.1], center=true);
49 translate([11, -3, 48 + xy_delta]) rotate([0, 90, 90]) cylinder(h = 270, r=4.0);
7e896b17 50 }
d3618a65 51
7e896b17 52 }
d3618a65
NZ
53}
54
ec766838 55leftfront();
4232ca18 56translate([40,0,0]) mirror([1,0,0]) leftfront();
ec766838 57//translate([12,2,28]) rotate([0,0,0]) cube([10,4,1], center=true);
0a84ec19 58
4232ca18 59translate([0,40,0]) {
ec766838 60 leftfront();
4232ca18 61 translate([40,0,0]) mirror([1,0,0]) leftfront();
ec766838 62 //translate([12,2,28]) rotate([0,0,0]) cube([10,4,1], center=true);
2e47cce1 63}