make clean now deletes .stl and .gcode files
[clinton/prusa3.git] / z-axis.scad
CommitLineData
2159eed1
VAH
1// PRUSA iteration3
2// Z axis
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
3506b70b
VAH
9include <configuration.scad>
10
d3618a65 11
6fb4dc13 12module zmotorholder(thickness=13){
3506b70b
VAH
13 difference(){
14 union(){
15 // Motor holding part
16 difference(){
17 union(){
f0c2a7f0 18 zrodholder(thickness=thickness, xlen=45, ylen=45);
3506b70b 19 translate([board_to_xz_distance, board_to_xz_distance, 0]) {
6fb4dc13 20 nema17(places=[0,1,1,1], h=thickness);
3506b70b
VAH
21 }
22 }
d3618a65 23
3506b70b
VAH
24 // motor screw holes
25 translate([board_to_xz_distance, board_to_xz_distance, thickness]) {
6fb4dc13
VAH
26 mirror([0,0,1]) translate([0,0,thickness-8])
27 nema17(places=[0,1,1,1], holes=true, h=thickness, shadow=5);
3506b70b
VAH
28 }
29 }
30 }
31 }
d3618a65 32}
3506b70b
VAH
33
34
f0c2a7f0 35module zrodholder(thickness=13, ylen=40, xlen=34){
3506b70b
VAH
36 difference(){
37 union(){
38 // Rod holding part
39 difference(){
40 union(){
41 //piece along the flat side of a board
42 cube_fillet([14, ylen, thickness]);
43 //hole for Z axis is thru this
44 cube_fillet([xlen, 14, thickness]);
45 //piece along cut side of the board
3ade0448 46 translate([-board_thickness,0,0]) cube_fillet([board_thickness*2, 5, thickness], radius=2);
3506b70b
VAH
47 }
48 //smooth rod hole
c7d2fad5 49 translate([board_to_xz_distance,5+(smooth_bar_diameter/2),-1]) cylinder(h=board_thickness+2, r=(smooth_bar_diameter/2));
3506b70b 50 //inside rouned corner
3ade0448 51 translate([0,5,-1]) cylinder(r=1.2, h=thickness+2, $fn=8);
3506b70b
VAH
52 //side screw
53 translate([-board_thickness/2, 0, thickness/2]) rotate([-90, 0, 0]) screw();
54 //front screw
f0c2a7f0
VAH
55 translate([13.3, 19, thickness/2]) rotate([0, -90, 0]) screw(head_drop=5);
56 translate([14, 33, thickness/2]) rotate([0, -90, 0]) screw(head_drop=5);
3506b70b
VAH
57 }
58 }
59 }
d3618a65
NZ
60}
61
3ade0448
VAH
62translate([0, -2, 0]) mirror([0,1,0]) zmotorholder();
63translate([0,2,0]) zmotorholder();
d3618a65 64
f0c2a7f0
VAH
65translate([21,-59,0]) zrodholder();
66translate([20,59,0]) mirror([0,1,0]) zrodholder();