forked from megahitokiri/A-Graphic-User-Interface-GUI-to-build-a-3D-printed-personalized-Prosthetic-Hand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
middle_phalanx.scad
90 lines (76 loc) · 3.28 KB
/
middle_phalanx.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
thumb_length = 15; middle_length = 20; palm_width = 47;
module middle_phalanx(thumb_length, middle_length, palm_width)
{
width = palm_width*15.8/90;
difference()
{
union(){
cube([middle_length/3,width,width],false);
translate([0,0,width*3/5])
rotate([-90,0,0])
cylinder(width,r=width*2/5,false,$fn=100);
translate([middle_length/3,0,width*3/5])
rotate([-90,0,0])
cylinder(width,r=width*2/5*0.9,false,$fn=100);
}
//pin holes
translate([0,width*1.1,width*3/5])
rotate([90,0,0])
cylinder(width*2,r=1.985,false,$fn=100);
translate([middle_length/3,width*1.1,width*3/5])
rotate([90,0,0])
cylinder(width*2,r=1.985,false,$fn=100);
//
// //spacer at one end
translate([0,0,width*3/5])
rotate([-90,0,0])
cylinder(2.0,r=width*2/5,false,$fn=100);
cube([width*2/5,2,width*3/5]);
cube([2,2,width]);
translate([0,width,width*3/5])
rotate([90,0,0])
cylinder(2.0,r=width*2/5,false,$fn=100);
translate([0,width-2,0])
cube([width*2/5,2,width*3/5]);
translate([0,width-2,0])
cube([2,2,width]);
translate([0,width/2,0])
rotate([0,45,0])
cube([2*cos(45)*width/5,width,2*sin(45)*width/5],true);
// //cut hallow hole inside the phalanx
translate([middle_length/3/2,width/2,width*1/1.5])
cube([middle_length/3+width*4.5,width*2/5,width*4/15],true);
translate([-width*2/5,width/2,width/5])
cube([width*1.2,width*2/5,width*4/5],true);
//
// //at the other end of phalanx
translate([middle_length/3,width/2,width*3/5])
rotate([90,0,0])
cylinder(width/2-2,r=width*2/5,true,$fn=100);
translate([middle_length/3,width/2,width*3/5])
rotate([-90,0,0])
cylinder(width/2-2,r=width*2/5,true,$fn=100);
translate([middle_length/3-width*2/5,2,0])
cube([2*width*2/5,width-4,width*3/5],false);
translate([middle_length/3-width/5,2,0])
cube([2/3*width*2/5,width-4,width],false);
translate([middle_length/3,width/2,0])
rotate([0,45,0])
cube([2*cos(45)*width/5,width,2*sin(45)*width/5],true);
//
// //make a canal for cable routing
translate([0,width/2,width*4/15])
rotate([0,90,0])
cylinder(middle_length/2,r=0.75,false,$fn=100);
//torsion spring slot
for (i = [0:1:1]){
translate([0,width*(1/3+1/3*i),width*7/15])
rotate([0,90,0])
cylinder(middle_length/2,d=0.53,false,$fn=50);
}
translate([0,width*1.5/6,width*10.87/15])
rotate([0,90,0])
cylinder(middle_length/2,d=0.53,false,$fn=50);
}
}
middle_phalanx(thumb_length, middle_length, palm_width);