Commit | Line | Data |
---|---|---|
65a72cd5 T |
1 | // PRUSA iteration3 |
2 | // Y frame brackets | |
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/josefprusa/Prusa3 | |
8 | ||
9 | // ThingDoc entry | |
10 | /** | |
11 | * @id yFrameBracket | |
12 | * @name Y Axis Frame Bracket | |
13 | * @category Printed | |
14 | */ | |
15 | ||
1ab13332 DR |
16 | include <configuration.scad> |
17 | ||
5b158621 | 18 | module bolt_track(width, length, height) { |
dd937f63 VAH |
19 | hwidth = width / 2; |
20 | hdiff = hwidth - height; | |
21 | union() { | |
22 | difference() { | |
23 | rotate([90, 0, 0]) | |
24 | translate([hwidth, height, -length]) | |
25 | cylinder(h=length, r=hwidth, $fn=$fn); | |
26 | ||
27 | if (height < hwidth) { | |
28 | translate([0, -1, height - hwidth - 1]) | |
29 | cube([width, length + 2, hdiff + 1]); | |
30 | } | |
31 | } | |
32 | cube([width, length, height]); | |
33 | } | |
1ab13332 DR |
34 | } |
35 | ||
e107833f | 36 | function bracket_width(screw_area) = screw_area * 2 + y_threaded_rod_long_r * 2; |
5b158621 | 37 | function bracket_depth(lip_thickness, screw_area) = screw_area * 2 + lip_thickness; |
e107833f | 38 | function bracket_height(lip_length=0) = y_threaded_rod_long_r * 2 + 6 * layer_height + lip_length; |
1ab13332 | 39 | |
5b158621 | 40 | module yrodbracket(screw_area, lip_thickness, lip_length, bevel_size=2.0) { |
dd937f63 VAH |
41 | inner_radius = threaded_rod_diameter / 2; |
42 | screw_center = screw_area / 2; | |
1ab13332 | 43 | |
dd937f63 VAH |
44 | width = bracket_width(screw_area); |
45 | depth = bracket_depth(lip_thickness, screw_area); | |
46 | height = bracket_height(lip_length); | |
1ab13332 | 47 | |
dd937f63 VAH |
48 | difference() { |
49 | translate([0, 0, -lip_length]) | |
6d09bb8e | 50 | cube_fillet([width, depth, height], bevel_size, top=[2, 2, 2, 2]); |
dd937f63 | 51 | translate([screw_area, -1, -lip_length - lip_thickness]) |
e107833f | 52 | bolt_track(y_threaded_rod_long_r * 2, depth + 2, lip_length + lip_thickness + inner_radius); |
1ab13332 | 53 | |
dd937f63 VAH |
54 | translate([-1, lip_thickness, -lip_length - 1]) |
55 | cube([width + 2, depth, lip_length + 1]); | |
1ab13332 | 56 | |
dd937f63 VAH |
57 | // screw holes |
58 | for (x = [screw_center, width - screw_center]) { | |
59 | for (y = [lip_thickness + screw_center, screw_area + lip_thickness + screw_center]) { | |
e107833f | 60 | translate([x, y, bracket_height() + 0.1]) |
dd937f63 | 61 | rotate([180, 0, 0]) |
6d09bb8e | 62 | screw(head_drop=3, r_head=4.5); |
dd937f63 VAH |
63 | } |
64 | } | |
65 | } | |
1ab13332 DR |
66 | } |
67 | ||
5b158621 | 68 | rotate([90, 0, 0]) { |
dd937f63 VAH |
69 | for (x = [0, bracket_width(12) + 5]) { |
70 | for (y = [0, bracket_height(3) + 5]) { | |
71 | translate([x, 0, y]) | |
72 | yrodbracket(12, 3, 3); | |
73 | } | |
74 | } | |
5b158621 | 75 | } |