-
Notifications
You must be signed in to change notification settings - Fork 7
/
bar-clamp.scad
49 lines (39 loc) · 1.1 KB
/
bar-clamp.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// PRUSA Mendel
// Bar clamp
// Used for joining 8mm rods
// GNU GPL v3
// Josef Průša
// josefprusa@me.com
// prusadjs.cz
// http://www.reprap.org/wiki/Prusa_Mendel
// http://github.com/prusajr/PrusaMendel
include <configuration.scad>
/**
* @id bar-clamp
* @name Bar clamp
* @category Printed
* @using 2 m8nut
* @using 2 m8washer
*/
module barclamp(){
outer_diameter = threaded_rod_diameter/2 + 2.4;
difference(){
union(){
translate([outer_diameter, outer_diameter, 0])
cylinder(h =outer_diameter*2, r = outer_diameter, $fn = 20);
translate([outer_diameter, 0, 0])
cube([outer_diameter+1.5,outer_diameter*2,outer_diameter*2]);
translate([18, 2*outer_diameter, outer_diameter])
rotate([90, 0, 0])
nut(outer_diameter*2, outer_diameter*2, false);
}
translate([18, outer_diameter, 9])
cube([18,05,20], center=true);
translate([outer_diameter, outer_diameter, -1])
cylinder(h = 20, r = threaded_rod_diameter/2, $fn = 18);
translate([17, 17, 7.5])
rotate([90, 0, 0])
cylinder(h = 20, r = threaded_rod_diameter/2, $fn = 20);
}
}
barclamp();