-
Notifications
You must be signed in to change notification settings - Fork 0
/
limitSwitchMount.scad
44 lines (30 loc) · 1.03 KB
/
limitSwitchMount.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
$fn = 30;
boltRad = 0.2010/2;
switchWidth = 5/8;
switchHeight = 9/8;
switchPush = 13/16;
boltDifY = 0.88;
boltDifX = 0.41;
screwRad = 0.138/2;
difference() {
hull() {
cube([3/8,1,0.75]);
translate([1.5/8,1.5-(1.5/8)]) cylinder(r=1.5/8,h=0.75);
}
translate([0,0.125,0.125]) cube([3/8,1,0.5]);
translate([1.5/8,1.5-(1.5/8),0]) cylinder(r=boltRad);
translate([0,1,0.4]) cube([10,10,(1/32)]);
}
module screwHole(x,y) {
translate([x,-0.125,y-(switchHeight-(0.75))/2]) rotate([90,0,0]) cylinder(r=screwRad,h=10);
}
difference() {
hull() {
cube([3/8,0.001,0.75]);
translate([0,0.125+(2.5/16)-switchPush,-(switchHeight-(0.75))/2]) cube([switchWidth,0.001,switchHeight]);
}
screwHole(switchWidth/2 - boltDifX/2,switchHeight/2 - boltDifY/2);
screwHole(switchWidth/2 + boltDifX/2,switchHeight/2 - boltDifY/2);
screwHole(switchWidth/2 - boltDifX/2,switchHeight/2 + boltDifY/2);
screwHole(switchWidth/2 + boltDifX/2,switchHeight/2 + boltDifY/2);
}