forked from Cheekio/stewart_platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
arm.scad
39 lines (34 loc) · 958 Bytes
/
arm.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
head_diameter = 7.32;
head_radius = head_diameter / 2;
head_height = 4.3;
arm_height = 1.6;
arm_length = 20;
offset=0.1;
wire_diameter=2.73;
wire_radius = 0.5*wire_diameter;
wall_width = 2;
give = 0.5;
component_width = head_diameter + 2*give + 2*wall_width;
component_height = arm_height + 2*wall_width;
component_length = 70;
rotate(-90, [0,1,0]){
difference(){
cube([component_length, component_width, component_height]);
translate([-offset, wall_width, wall_width]){
cube([
arm_length+offset+give,
head_diameter+2*give,
arm_height
]);
}
translate([head_radius, 0.5*component_width, arm_height+2*give]){
cylinder(r=head_radius+give, h=component_height, $fs=0.5);
}
translate([component_length-(17),-offset,-offset]){
cube([component_length, component_width+2*offset, component_height-arm_height]);
translate([12,0.5*component_width+offset,0]){
cylinder(r=wire_radius+give, h=component_height+2*offset, $fs=0.5);
}
}
}
}