-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmounting_clamp.scad
134 lines (111 loc) · 3.6 KB
/
mounting_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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
/*
* CAD file for various clamps that can be used to clamp things to the conduit.
*
* Creative Commons Share Alike 3.0
* Copyright (c) 2013 David Lee Miller
*
*/
include <ucon_config.scad>
use <ucon_functions.scad>
use <MCAD/motors.scad>
use <MCAD/nuts_and_bolts.scad>
$fn=100;
//// Select mounting clamp type ////
// choose 0 for M4 screw mounts
// choose 1 for mounting 00str00der
// choose 2 for zip tie mounts
// choose 3 for belt drive wades
type = 3;
////////////////////////////////////////////
if (type == 0){
mid_mount();
}
else if (type == 1){
lower_mount();
}
else if (type == 2){
cable_mount2();
}
else{
bdw_mount();
}
module cable_mount2(){
difference(){
union(){
cylinder(r=tubeOD/2+3,h=10);
translate([0,5/2,10/2]) cube([9,50,10],center=true);
translate([18/2,0,10/2]) cube([20,12,10],center=true);
}
translate([0,0,-0.5]) cylinder(r=tubeOD/2,h=21);
translate([-10,-18,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=40);
translate([-10,18+5,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
translate([16,0,10/2]) cube([1.75,4,20],center=true);
cube([1,100,100],center=true);
}
}
module bdw_mount(){
difference(){
union(){
cylinder(r=tubeOD/2+3,h=10);
translate([0,5/2-1.5,10/2]) cube([9,47,10],center=true);
translate([18/2-0.5,12,10/2]) cube([12,25,10],center=true);
}
translate([0,0,-0.5]) cylinder(r=tubeOD/2,h=21);
translate([-10,-18,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=40);
translate([-10,20,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=40);
translate([16,0,10/2]) cube([1.75,4,20],center=true);
cube([1,100,100],center=true);
}
}
module cable_mount(){
difference(){
union(){
cylinder(r=tubeOD/2+3,h=10);
translate([0,0,10/2]) cube([9,45,10],center=true);
translate([18/2,0,10/2]) cube([20,12,10],center=true);
}
translate([0,0,-0.5]) cylinder(r=tubeOD/2,h=21);
translate([-10,-18,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=40);
translate([-10,18,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
translate([16,0,10/2]) cube([1.75,4,20],center=true);
cube([1,100,100],center=true);
}
}
module lower_mount(){
difference(){
union(){
cylinder(r=tubeOD/2+3,h=20);
translate([0,0,20/2]) cube([9,45,20],center=true);
translate([14/2,-tubeOD/2,20/2]) cube([14,22,20],center=true);
}
translate([0,0,-0.5]) cylinder(r=tubeOD/2,h=21);
translate([-10,-18,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=40);
translate([-10,-18,20/2+5]) rotate([0,90,0]) cylinder(r=2.1,h=40);
translate([-10,18,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
translate([-10,18,20/2+5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
cube([1,100,100],center=true);
}
}
module mid_mount(){
difference(){
union(){
hull(){
cylinder(r=tubeOD/2+3,h=20);
translate([tubeOD/2+3+2,0,20/2]) cube([4,8,20],center=true);
}
translate([0,0,20/2]) cube([9,45,20],center=true);
}
translate([0,0,-0.5]) cylinder(r=tubeOD/2,h=21);
translate([0,0,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
translate([0,0,20/2+5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
translate([14,0,20/2+5]) rotate([0,90,0]) boltHole(4,20,tolerance=0.2);
translate([15.5,0,20/2+5]) rotate([0,90,0]) boltHole(4,20,tolerance=0.2);
translate([14,0,20/2-5]) rotate([0,90,0]) boltHole(4,20,tolerance=0.2);
translate([15.5,0,20/2-5]) rotate([0,90,0]) boltHole(4,20,tolerance=0.2);
translate([-10,-18,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
translate([-10,-18,20/2+5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
translate([-10,18,20/2-5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
translate([-10,18,20/2+5]) rotate([0,90,0]) cylinder(r=2.1,h=20);
cube([1,100,100],center=true);
}
}