1 |
$fn=40; // model faces resolution. |
1 |
$fn=40; // model faces resolution. |
2 |
include <../configuration.scad> |
2 |
include <../configuration.scad> |
3 |
include <polyScrewThread_r1.scad> |
3 |
include <polyScrewThread_r1.scad> |
4 |
|
4 |
|
5 |
|
5 |
|
6 |
AWSCREEN01A_D04(); |
6 |
AWSCREEN01A_D04(); |
7 |
|
7 |
|
8 |
|
8 |
|
9 |
|
9 |
|
10 |
|
10 |
|
11 |
|
11 |
|
12 |
|
12 |
|
13 |
|
13 |
|
14 |
module AWSCREEN01A_D04() |
14 |
module AWSCREEN01A_D04() |
15 |
|
15 |
|
16 |
{ |
16 |
{ |
17 |
difference() |
17 |
difference() |
18 |
{ |
18 |
{ |
19 |
union() |
19 |
union() |
20 |
{ |
20 |
{ |
21 |
|
21 |
|
22 |
difference() |
22 |
difference() |
23 |
{ |
23 |
{ |
24 |
translate([0,0,0]) |
24 |
translate([0,0,0]) |
25 |
cylinder (h = D04_sila_materialu_na_konektor, r=(S01_prumer_zavitu+4*D01_material_pred_zavitem)/2, $fn=12); |
25 |
cylinder (h = D04_sila_materialu_na_konektor, r=(S01_prumer_zavitu+4*D01_material_pred_zavitem)/2, $fn=12); |
26 |
|
26 |
|
27 |
translate([0,0,-0.01]) |
27 |
translate([0,0,-0.01]) |
28 |
cylinder (h = 0.01+D01_material_pod_zavitem+D04_sila_materialu_na_konektor, r=(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem)/2, $fn=100); |
28 |
cylinder (h = 0.01+D01_material_pod_zavitem+D04_sila_materialu_na_konektor, r=(S01_prumer_zavitu-2*D01_material_za_zavitem-4*D03_tolerance_zavitu-2*D01_material_za_zavitem)/2, $fn=100); |
29 |
} |
29 |
} |
30 |
|
30 |
|
31 |
difference() |
31 |
difference() |
32 |
{ |
32 |
{ |
33 |
translate([0,0,D04_sila_materialu_na_konektor]) |
33 |
translate([0,0,D04_sila_materialu_na_konektor]) |
34 |
screw_thread(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu,4,55,D01_material_pod_zavitem+4,PI/2,2); |
34 |
screw_thread(S01_prumer_zavitu-2*D01_material_za_zavitem-2*D03_tolerance_zavitu-2*D03_tolerance_zavitu,4,55,D01_material_pod_zavitem+4,PI/2,2); |
35 |
|
35 |
|
36 |
|
36 |
|
37 |
translate([0,0,D04_sila_materialu_na_konektor+D01_material_pod_zavitem]) |
37 |
translate([0,0,D04_sila_materialu_na_konektor+D01_material_pod_zavitem]) |
38 |
cylinder (h = 5, r=(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu+10)/2, $fn=100); |
38 |
cylinder (h = 5, r=(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu+10)/2, $fn=100); |
39 |
|
39 |
|
40 |
|
40 |
|
41 |
cylinder (h = 0.01+D01_material_pod_zavitem+D04_sila_materialu_na_konektor, r=(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem)/2, $fn=100); |
41 |
cylinder (h = 0.01+D01_material_pod_zavitem+D04_sila_materialu_na_konektor, r=(S01_prumer_zavitu-2*D01_material_za_zavitem-4*D03_tolerance_zavitu-2*D01_material_za_zavitem)/2, $fn=100); |
42 |
} |
42 |
} |
43 |
|
43 |
|
44 |
//materiál držáku konektoru |
44 |
//materiál držáku konektoru |
45 |
translate([0,0,D04_sila_materialu_na_konektor/2]) |
45 |
translate([0,0,D04_sila_materialu_na_konektor/2]) |
46 |
cube([D04_konenektor_x+12,(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem),D04_sila_materialu_na_konektor],true); |
46 |
cube([D04_konenektor_x+12,(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem),D04_sila_materialu_na_konektor],true); |
47 |
|
47 |
|
48 |
//materiál pro kryt konektoru |
48 |
//materiál pro kryt konektoru |
49 |
//spodní krychle |
49 |
//spodní krychle |
50 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/4+5,D04_konenektor_z/2+D04_sila_materialu_na_konektor]) |
50 |
translate([0,-(S01_prumer_zavitu-2*D01_material_za_zavitem-4*D03_tolerance_zavitu)/4+5,D04_konenektor_z/2+D04_sila_materialu_na_konektor]) |
51 |
cube([D04_konenektor_x+6+2*D03_tloustka_materialu,(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2,D04_konenektor_z],true); |
51 |
cube([D04_konenektor_x+6+2*D03_tloustka_materialu,(S01_prumer_zavitu-2*D01_material_za_zavitem-4*D03_tolerance_zavitu)/2,D04_konenektor_z],true); |
52 |
|
52 |
|
53 |
|
53 |
|
54 |
//vrchní válec |
54 |
//vrchní válec |
55 |
translate([0,5,D04_sila_materialu_na_konektor+D04_konenektor_z]) |
55 |
translate([0,5,D04_sila_materialu_na_konektor+D04_konenektor_z]) |
56 |
|
56 |
|
57 |
rotate ([90,0,0]) |
57 |
rotate ([90,0,0]) |
58 |
difference() |
58 |
difference() |
59 |
{ |
59 |
{ |
60 |
cylinder (h = (S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2, r=(D04_konenektor_x+6+2*D03_tloustka_materialu)/2, $fn=100); |
60 |
cylinder (h = (S01_prumer_zavitu-2*D01_material_za_zavitem-4*D03_tolerance_zavitu)/2, r=(D04_konenektor_x+6+2*D03_tloustka_materialu)/2, $fn=100); |
61 |
|
61 |
|
62 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/4,(D04_konenektor_x+6+2*D03_tloustka_materialu)/2]) |
62 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/4,(D04_konenektor_x+6+2*D03_tloustka_materialu)/2]) |
63 |
|
63 |
|
64 |
cube([(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2,(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2,D04_konenektor_x+6+2*D03_tloustka_materialu],true); |
64 |
cube([(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2,(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2,D04_konenektor_x+6+2*D03_tloustka_materialu],true); |
65 |
} |
65 |
} |
66 |
|
66 |
|
67 |
} |
67 |
} |
68 |
|
68 |
|
69 |
//otvor na konektor |
69 |
//otvor na konektor |
70 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem-2)/2+D04_konenektor_y/2,-0.01]) |
70 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem-2)/2+D04_konenektor_y/2,-0.01]) |
71 |
cube([D04_konenektor_x,D04_konenektor_y,10],true); |
71 |
cube([D04_konenektor_x,D04_konenektor_y,10],true); |
72 |
|
72 |
|
73 |
//dotvoření otvoru |
73 |
//dotvoření otvoru |
74 |
//pro nasunutí ve spodní části |
74 |
//pro nasunutí ve spodní části |
75 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem)/2,-0.01]) |
75 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem)/2,-0.01]) |
76 |
cube([D04_konenektor_x,D04_konenektor_y,18],true); |
76 |
cube([D04_konenektor_x,D04_konenektor_y,18],true); |
77 |
|
77 |
|
78 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem)/4,D04_sila_materialu_na_konektor+(D04_konenektor_z)/2]) |
78 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem)/4,D04_sila_materialu_na_konektor+(D04_konenektor_z)/2]) |
79 |
cube([D04_konenektor_x+6,(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem)/2+8,D04_konenektor_z],true); |
79 |
cube([D04_konenektor_x+6,(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu-D01_material_za_zavitem)/2+8,D04_konenektor_z],true); |
80 |
|
80 |
|
81 |
//odstranění vrchního válce |
81 |
//odstranění vrchního válce |
82 |
translate([0,5-D03_tloustka_materialu,D04_sila_materialu_na_konektor+D04_konenektor_z]) |
82 |
translate([0,5-D03_tloustka_materialu,D04_sila_materialu_na_konektor+D04_konenektor_z]) |
83 |
|
83 |
|
84 |
rotate ([90,0,0]) |
84 |
rotate ([90,0,0]) |
85 |
difference() |
85 |
difference() |
86 |
{ |
86 |
{ |
87 |
cylinder (h = (S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2, r=(D04_konenektor_x+6)/2, $fn=100); |
87 |
cylinder (h = (S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2, r=(D04_konenektor_x+6)/2, $fn=100); |
88 |
//odečtení půl válce |
88 |
//odečtení půl válce |
89 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/4,(D04_konenektor_x+6+2*D03_tloustka_materialu)/2]) |
89 |
translate([0,-(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/4,(D04_konenektor_x+6+2*D03_tloustka_materialu)/2]) |
90 |
|
90 |
|
91 |
cube([(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2,(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2,D04_konenektor_x+6+2*D03_tloustka_materialu],true); |
91 |
cube([(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2,(S01_prumer_zavitu-D01_material_za_zavitem-2*D03_tolerance_zavitu)/2,D04_konenektor_x+6+2*D03_tloustka_materialu],true); |
92 |
} |
92 |
} |
93 |
|
93 |
|
94 |
|
94 |
|
95 |
//otvor na senzor v držáku |
95 |
//otvor na senzor v držáku |
96 |
translate([0,7,-2]) |
96 |
translate([0,7,-2]) |
97 |
translate([0,0,(15+5.08)/2-(5.08+3.3+2)/2]) |
97 |
translate([0,0,(15+5.08)/2-(5.08+3.3+2)/2]) |
98 |
cube([10.16,3,25],true); |
98 |
cube([10.16,3,25],true); |
99 |
|
99 |
|
100 |
|
100 |
|
101 |
|
101 |
|
102 |
} |
102 |
} |
103 |
|
103 |
|
104 |
translate([0,7,(D04_vyska_drzaku_senzoru)/2]) |
104 |
translate([0,7,(D04_vyska_drzaku_senzoru)/2]) |
105 |
difference() |
105 |
difference() |
106 |
{ |
106 |
{ |
107 |
cube([10.16+2*D03_tloustka_materialu,3+2*D03_tloustka_materialu,D04_vyska_drzaku_senzoru],true); |
107 |
cube([10.16+2*D03_tloustka_materialu,3+2*D03_tloustka_materialu,D04_vyska_drzaku_senzoru],true); |
108 |
|
108 |
|
109 |
cube([10.16,3,D04_vyska_drzaku_senzoru+0.01],true); |
109 |
cube([10.16,3,D04_vyska_drzaku_senzoru+0.01],true); |
110 |
translate([0,5,D04_vyska_drzaku_senzoru/2-3.08]) |
110 |
translate([0,5,D04_vyska_drzaku_senzoru/2-3.08]) |
111 |
rotate ([90,0,0]) |
111 |
rotate ([90,0,0]) |
112 |
cylinder (h = 30, r=(3.3/2), $fn=100); |
112 |
cylinder (h = 30, r=(3.3/2), $fn=100); |
113 |
} |
113 |
} |
114 |
} |
114 |
} |