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