-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathservo_SG90_todiff.scad
51 lines (46 loc) · 1.23 KB
/
servo_SG90_todiff.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
sg90L = 22.8 + jeu;
sg90l = 12.6 + jeu;
sg90h = 22.8;
sg90topCylinderH = 3.4 + jeu;
sg90axisD = 4 + jeu * 2;
module servoSG90() {
L = sg90L;
l = sg90l;
h = sg90h;
plateL = 32.5;
plateH = 2.7;
plateHPos = 16;
topCylinderH = sg90topCylinderH;
smallTopCylinderD = 4.5;
axisH = 2;
axisD = sg90axisD;
screwHoleCenter=2;
screwHoleD=2 - jeu;
holeSize=1 - jeu;
difference() {
union() {
color("LightBlue", 0.5) {
// main part
cube([L, l, h]);
// support
translate([-(plateL - L) / 2, 0, plateHPos]) {
cube([plateL, l, plateH]);
}
// top big cylinder
translate([l/2,l/2,h]) {
cylinder(d=l, h=topCylinderH, $fn=180);
}
// top small cylinder
translate([l, l/2, h]) {
cylinder(d=smallTopCylinderD, h=topCylinderH, $fn=180);
}
}
translate([l/2,l/2, h + topCylinderH]) {
color("white") {
cylinder(d=axisD,h=axisH, $fn=180);
}
}
}
}
}
//servoSG90();