Commit | Line | Data |
---|---|---|
e11b3a11 VAH |
1 | //makes tube clamping part. Useful for strenghtening Z axis tubing or as holder for Z axis endstop. |
2 | // GNU GPL v3 | |
3 | // Václav 'ax' Hůla <axtheb@gmail.com> | |
4 | include <../configuration.scad>; | |
2f03cc4a | 5 | $fn=64; |
e11b3a11 VAH |
6 | |
7 | module tube_clamp(tube_r, wall_width=3, screw=false) { | |
8 | //wall_width is in single_wall_widths, | |
9 | difference() { | |
10 | intersection() { | |
11 | union(){ | |
12 | cylinder(r=tube_r + wall_width * single_wall_width, h=10); | |
13 | translate([-4.5, 0, 0]) cube([9, 20, 10]); | |
14 | } | |
15 | cylinder(r=tube_r + 5 + wall_width * single_wall_width, h=10); | |
16 | } | |
17 | translate([0, 0, -0.5]) cylinder(r=tube_r, h=11); | |
18 | translate([-0.5, 0, -0.5]) cube([1, 15, 11]); | |
19 | ||
2f03cc4a | 20 | translate([-7, max (6, tube_r + wall_width * single_wall_width + 0.5) , 5]) { |
e11b3a11 | 21 | rotate([0, 90, 0]) screw(r=1.7, r_head=m3_washer_diameter/2, head_drop=3, slant=false); |
2f03cc4a | 22 | translate([10, 0, 0]) rotate([0, 90, 0]) cylinder(r=m3_nut_diameter_horizontal/2, $fn=6, h=2); |
e11b3a11 VAH |
23 | } |
24 | ||
25 | } | |
26 | } | |
27 | ||
28 | tube_clamp(3.5); |