Skip to content

Commit 0ccf89e

Browse files
committed
first steps for button mount based on low profile cherry keyswitch
1 parent b1e5732 commit 0ccf89e

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
$fn=150;
2+
z=[0,0,1];
3+
y=[0,1,0];
4+
cz=1.2;
5+
h=15;
6+
cxy=13.7;
7+
size=[cxy,cxy,h];
8+
z1=-h/2;
9+
sizeb=[cxy+1,cxy,cz];
10+
z2=-cz*1.5;
11+
sizet=[cxy+2,cxy+2,4];
12+
sizef=[cxy+5,cxy+5,h];
13+
z4=-sizef[2]/2;
14+
15+
if ($preview) import("/home/paulg/Downloads/kailh_low.stl");
16+
module hole() {
17+
translate(z1*z)cube(size,center=true);
18+
translate(z2*z)cube(sizeb,center=true);
19+
translate(2*z)cube(sizet,center=true);
20+
}
21+
22+
module handlebar()
23+
{
24+
translate((25)/2*y-18.5*z)rotate([90,0,0])cylinder(d=25.4,h=50);
25+
}
26+
27+
module cable() {hull() {
28+
translate([4.5,0,-5])rotate([90,0,0])cylinder(d=4,h=20);
29+
translate([4.5,0,-12])rotate([90,0,0])cylinder(d=4,h=20);
30+
31+
}
32+
}
33+
difference() {
34+
translate(z4*z)cube(sizef,center=true);
35+
hole();
36+
37+
handlebar();
38+
cable();
39+
}
40+

0 commit comments

Comments
 (0)