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