-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmallet_mount_v2.scad
147 lines (131 loc) · 4.94 KB
/
mallet_mount_v2.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
135
136
137
138
139
140
141
142
143
144
145
146
147
/*
* The second version of the compliant mallet holder optimized for less noise
*/
$fa = 1;
$fs = 0.4;
side_wall_length = 90;
mallet_length = 393;
mallet_sphere_radius = 39.6/2;
axel_radius = 4;
side_wall_thickness = 5;
mallet_handle_radius=9.6/2;
side_wall_center_distance = mallet_handle_radius*2+1.5+side_wall_thickness/2;
// Module for a standard mallet object
module mallet() {
cylinder(h=mallet_length+mallet_sphere_radius, r=mallet_handle_radius);
translate([0, 0, mallet_length+mallet_sphere_radius])
sphere(r=mallet_sphere_radius, center=true);
}
// Base Module for the left and right side wall
module side_wall() {
difference() {
cube([side_wall_length, side_wall_length, side_wall_thickness], center=true);
translate([0, 0, 0])
cylinder(h=side_wall_thickness+1, r=8, center=true);
translate([0, 0, side_wall_thickness-1])
cylinder(h=side_wall_thickness, r=9, center=true);
}
}
// Module for the right side wall
module side_wall_right() {
difference() {
side_wall();
translate([0, 0, -side_wall_thickness-0.1])
rotate([180, 0, 0])
screw_holes(side_wall_thickness*2, 3, side_wall_length/2); // 3mm width holes
}
}
// Module for the left side wall with multiple objects connecting to the right sidewall
module side_wall_left() {
wall_to_wall_distance = side_wall_center_distance*2-side_wall_thickness/2;
side_wall();
difference() {
union() {
translate([-20, -(mallet_handle_radius*2+5)-1, wall_to_wall_distance/+2])//The -1 give some space for the felt stopper
cube([10,10,wall_to_wall_distance],center=true);
translate([0, -side_wall_length/2+5, wall_to_wall_distance/2])
cube([10,10,wall_to_wall_distance],center=true);
translate([-side_wall_length/2, -side_wall_length/2, 0])
union() {
cube([side_wall_thickness, side_wall_length, wall_to_wall_distance]);
translate([side_wall_thickness+2, 10, wall_to_wall_distance/2+side_wall_thickness/4])
union(){
cube([10,5,5],center= true);
translate([4,-2.5,0])
cube([5,10,5],center=true);
}
};
translate([-side_wall_length/2, side_wall_length/2, 0])
rotate([0, 0, -90])
cube([side_wall_thickness, side_wall_length, wall_to_wall_distance]);
}
translate([0, 0, wall_to_wall_distance])
screw_holes(6, 3, side_wall_length/2); // 6mm deep 3mm width holes
}
}
// Module for the mallet car, the moving part in the assembly holding the mallet
module mallet_car() {
difference() {
union() {
cylinder(h=70, r=mallet_handle_radius*2, center=true);
rotate([90, 0, 0])
cylinder(h=2*(mallet_handle_radius*2+side_wall_thickness+2), r=axel_radius, center=true);
rotate([90, 0, 0])
cylinder(h=2*(mallet_handle_radius*2+1), r=5*2, center=true);
translate([-mallet_handle_radius*2, 0, -29.6])
rotate([90, 0, 0])
rubber_attachment();
}
translate([mallet_handle_radius, 0, 30])
rotate([0, 90, 0])
cylinder(h=mallet_handle_radius*2, r=3/2,center = true);
translate([mallet_handle_radius, 0, -25])
rotate([0, 90, 0])
cylinder(h=mallet_handle_radius*2, r=3/2,center = true);
translate([0, 0, -30])
scale(1.07)
mallet();
}
}
// A ring for the rubber band to attach to the mallet car and main body
module rubber_attachment() {
rotate_extrude(angle=360) {
translate([4, 0, 0])
circle(r=1.4);
}
}
// The full assembly
module mallet_holder() {
translate([0, side_wall_center_distance, 0])
rotate([90, 0, 0])
side_wall_right();
translate([0, -side_wall_center_distance, 0])
rotate([-90, 0, 0])
side_wall_left();
rotate([0, 90, 0])
mallet_car();
}
// Template for the screw holes connecting both sides
module screw_holes(depth, width, corners) {
posVal = corners - side_wall_thickness / 2;
translate([0, 0, -depth+0.001]) {
translate([-posVal, -posVal, 0])
cylinder(h=depth, r=width/2);
translate([-posVal, posVal, 0])
cylinder(h=depth, r=width/2);
translate([posVal, posVal, 0])
cylinder(h=depth, r=width/2);
translate([-20, -(mallet_handle_radius*2+5)-1, 0])
cylinder(h=depth, r=width/2);
translate([0, -side_wall_length/2+5, 0])
cylinder(h=depth, r=width/2);
}
}
mallet_holder();
// translate([100, 100, 0])
// side_wall_left();
// side_wall_right();
//translate([0, 100, 0])
// mallet_car();
// side_wall_left();
//side_wall_right();