4215 |
roman |
1 |
$fn = 100; |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
module LCD_frontPanel(){ |
|
|
5 |
WIDTH = 7; // pocet der na zakl desku. Min je 8 |
|
|
6 |
FOOT_X_SHIFT = 0; // posun v ose X, tzn. vysunutí ven, nebo dovnitř. 0 je v rovine s kratsi hranou zakl. desky ASBASE1115 |
|
|
7 |
DISPLAY_Z_SHIFT = 2; // mezera, která vznikne mezi "nohou" a spodní hranou PCB |
|
|
8 |
FOOT_THICK = 7; // síla spodní "nohy" (toho, v cem jsou srouby) |
|
|
9 |
BHEAD_HEIGHT = 2.5; // vyska hlavicky sroubu |
|
|
10 |
BHEAD_DIAMETER = 6; // vyska hlavicky sroubu |
|
|
11 |
BOLT_DIAMETER = 3.2; // vyska hlavicky sroubu |
|
|
12 |
NUT_HEIGHT = 2.1; // vyska matky |
|
|
13 |
NUT_DIAMETER = 6; // vyska matky |
|
|
14 |
CLEAR = 0.1; |
|
|
15 |
|
|
|
16 |
difference(){ |
|
|
17 |
union(){ |
|
|
18 |
translate([0, 4 +FOOT_X_SHIFT, 0+DISPLAY_Z_SHIFT/2])cube([80,8,36+DISPLAY_Z_SHIFT], center=true); |
|
|
19 |
translate([0, 4 +FOOT_X_SHIFT/2, (-36-FOOT_THICK)/2])cube([80,8+FOOT_X_SHIFT,FOOT_THICK], center=true); |
|
|
20 |
translate([+75/2, 0, +31/2+DISPLAY_Z_SHIFT]) rotate([90,0,0]) cylinder(FOOT_THICK, 2.3/2, 2.3/2); |
|
|
21 |
translate([+75/2, 0, -31/2+DISPLAY_Z_SHIFT]) rotate([90,0,0]) cylinder(FOOT_THICK, 2.3/2, 2.3/2); |
|
|
22 |
translate([-75/2, 0, +31/2+DISPLAY_Z_SHIFT]) rotate([90,0,0]) cylinder(FOOT_THICK, 2.3/2, 2.3/2); |
|
|
23 |
translate([-75/2, 0, -31/2+DISPLAY_Z_SHIFT]) rotate([90,0,0]) cylinder(FOOT_THICK, 2.3/2, 2.3/2); |
|
|
24 |
hull(){ |
|
|
25 |
translate([-40+10.16/2, -0.8, (-36)/2-FOOT_THICK]) cylinder(FOOT_THICK, 10.16/2, 10.16/2); |
|
|
26 |
translate([+40-10.16/2, -0.8, (-36)/2-FOOT_THICK]) cylinder(FOOT_THICK, 10.16/2, 10.16/2); |
|
|
27 |
} |
|
|
28 |
/*#hull(){ |
|
|
29 |
translate([-5.08 + (-WIDTH/2+1)*10.16, -0.8, (-36)/2-FOOT_THICK]) cylinder(FOOT_THICK, 10.16/2, 10.16/2); |
|
|
30 |
translate([-5.08 + (-WIDTH/2+5)*10.16, -0.8, (-36)/2-FOOT_THICK]) cylinder(FOOT_THICK, 10.16/2, 10.16/2); |
|
|
31 |
}*/ |
|
|
32 |
} |
|
|
33 |
union(){ |
|
|
34 |
translate([0, 4 + FOOT_X_SHIFT, +DISPLAY_Z_SHIFT]) cube([72,8,25.3], center=true); |
|
|
35 |
translate([-5, FOOT_X_SHIFT, 36/2-4+DISPLAY_Z_SHIFT]) cube([41,4,4]); |
|
|
36 |
for (x=[1:WIDTH]){ |
|
|
37 |
translate([-5.08 + (-WIDTH/2+x)*10.16, -0.8, (-36)/2-FOOT_THICK]) cylinder(12, BOLT_DIAMETER/2, BOLT_DIAMETER/2); |
|
|
38 |
translate([-5.08 + (-WIDTH/2+x)*10.16, -0.8, (-36)/2-BHEAD_HEIGHT]) cylinder(3+10, BHEAD_DIAMETER/2, BHEAD_DIAMETER/2); |
|
|
39 |
translate([-5.08 + (-WIDTH/2+x)*10.16, -0.8, (-36)/2-FOOT_THICK]) cylinder(NUT_HEIGHT, NUT_DIAMETER/2, NUT_DIAMETER/2, $fn=6); |
|
|
40 |
|
|
|
41 |
} |
|
|
42 |
} |
|
|
43 |
} |
|
|
44 |
} |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
LCD_frontPanel(); |