-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverload_protection.scad
139 lines (121 loc) · 4.28 KB
/
overload_protection.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
/**
* Überlastshutz für BMW C1 Ständer // Overload protection for BMW C1 stand.
*
* (Similar to BMW part No. 46528524293)
*
* Author: Johannes Teiwes <johannes.teiwes@me.com>
* Date: 2021/04/09
* License: CC-BY-4.0
*
*/
$fn=80;
// Measurments of the original part
body_thickness = 15.6;
inner_radius = 14.25/2;
outer_radius = inner_radius + 10.3;
top_pin_radius = 5.3/2;
top_pin_height = 14.11;
top_pin_circle_radius = 13;
top_pin_rot_z = 0;
bottom_pin_radius = 7.8/2;
bottom_pin_height = 4.85;
bottom_pin_cicrle_radius = outer_radius - 6.58 + bottom_pin_radius;
module pin_with_chamfer(r, h, c, c_b=0) {
height = h-c;
cylinder(r2=r, r1=r+c_b, h=c_b);
cylinder(r=r, h=height);
translate([0,0,height])
cylinder(r1=r, r2=r-c, h=c);
}
module top_pins() {
rotate([0,0,20])
translate([top_pin_circle_radius,0,0])
pin_with_chamfer(r=top_pin_radius, h=top_pin_height, c=0.75, c_b=0.5);
rotate([0,0,180-20])
translate([top_pin_circle_radius,0,0])
pin_with_chamfer(r=top_pin_radius, h=top_pin_height, c=0.75, c_b=0.5);
}
module bottom_pins() {
translate([0,0,0]) {
rotate([0,0,20])
translate([bottom_pin_cicrle_radius, 0, 0])
rotate([180,0,0]) {
pin_with_chamfer(r=bottom_pin_radius, h=bottom_pin_height, c=0.5);
translate([0,0,-bottom_pin_height/1.5])
cylinder(r2=bottom_pin_radius, r1=bottom_pin_radius-bottom_pin_height/2, h=bottom_pin_height/1.5);
}
intersection() {
translate([0,0,-body_thickness])
outer_shape();
rotate([0,0,180-20])
translate([bottom_pin_cicrle_radius, 0, 0])
rotate([180,0,0]) {
pin_with_chamfer(r=bottom_pin_radius, h=bottom_pin_height, c=0.5);
hull() {
translate([0,-bottom_pin_radius+0.5,0])
cube([bottom_pin_radius,2*bottom_pin_radius-1,bottom_pin_height]);
translate([0,-bottom_pin_radius,0])
cube([bottom_pin_radius,2*bottom_pin_radius,bottom_pin_height-0.5]);
}
}
}
intersection() {
translate([0,0,-body_thickness])
outer_shape();
rotate([0,0,90])
translate([bottom_pin_cicrle_radius, 0, 0])
rotate([180,0,0]) {
pin_with_chamfer(r=bottom_pin_radius, h=bottom_pin_height, c=0.5);
hull() {
translate([0,-bottom_pin_radius+0.5,0])
cube([bottom_pin_radius,2*bottom_pin_radius-1,bottom_pin_height]);
translate([0,-bottom_pin_radius,0])
cube([bottom_pin_radius,2*bottom_pin_radius,bottom_pin_height-0.5]);
}
}
}
}
}
module outer_shape() {
hull() {
difference() {
cylinder(r=outer_radius, h=body_thickness);
rotate([0,0,22+top_pin_rot_z])
translate([-outer_radius, -outer_radius, -body_thickness/2])
cube([2*outer_radius, outer_radius, 2*body_thickness]);
rotate([0,0,-22+top_pin_rot_z])
translate([-outer_radius, -outer_radius, -body_thickness/2])
cube([2*outer_radius, outer_radius, 2*body_thickness]);
}
rotate([0,0,top_pin_rot_z]) {
rotate([0,0,20])
translate([top_pin_circle_radius,0,0])
cylinder(r=top_pin_radius+1.75, h=body_thickness);
rotate([0,0,180-10])
translate([top_pin_circle_radius,0,0])
cylinder(r=top_pin_radius+1.75, h=body_thickness);
}
translate([0,0,0])
cylinder(r=inner_radius+2.2, h=body_thickness);
translate([inner_radius+1.5,-inner_radius-1.7+top_pin_radius, 0])
cylinder(r=top_pin_radius, h=body_thickness);
}
}
module overload_protection() {
difference() {
union() {
outer_shape();
translate([0,0,body_thickness]) {
// color("green")
top_pins();
}
// color("red")
bottom_pins();
}
translate([0,0,-body_thickness/2])
cylinder(r=inner_radius, h=2*body_thickness);
}
}
// For maximum strength I recommend to print the part in this orientation:
rotate([90,-60,0])
overload_protection();