Rev Author Line No. Line
4431 jacho 1 $fn=40; // model faces resolution.
2 include <../configuration.scad>
3  
4  
4436 jacho 5 include <polyScrewThread_r1.scad>
6  
7 PI=3.141592;
8  
4473 jacho 9  
4474 jacho 10  
11  
12 module WINDGAUGE02A_S02()
4473 jacho 13 {
14  
15 //valec se zavitem
4474 jacho 16 union() {
17  
18  
4473 jacho 19 difference()
20 {
4474 jacho 21  
4476 jacho 22  
23 union() {
4474 jacho 24 translate([0,0,S01_sila_materialu])
4476 jacho 25 screw_thread((S01_prumer_vnitrni-S01_tolerance_zavit),S01_hloubka_zavitu,55,S01_vyska_horni_zavit,PI/2,2);
4473 jacho 26  
4476 jacho 27 //spodní doraz
28  
29 cylinder (h = S01_sila_materialu, r=S01_prumer_vnitrni/2+S01_sila_materialu, $fn=100);
30 }
31  
32 //odstranění vnitřní výplně
33 translate([0,0,S01_sila_materialu])
34 cylinder (h = S01_vyska_horni_zavit+0.01, r=S01_prumer_vnitrni/2-S01_hloubka_zavitu/2-S01_sila_materialu, $fn=100);
35  
4474 jacho 36 //otvor na pruchod hridelky
37 translate([0,0,S01_sila_materialu/2])
38 cylinder (h = S01_sila_materialu+0.01, r=(lozisko_prumer_vnitrni+0.2)/2+lozisko_prekryv, center = true, $fn=100);
39  
40 //otvor na šroub 1
4490 jacho 41 translate([-senzor_delka/2,-senzor_sirka/2,(lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky)/2])
42 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
4474 jacho 43  
44 //otvor na šroub 2
4490 jacho 45 translate([senzor_delka/2,-senzor_sirka/2,(lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky)/2])
46 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
4474 jacho 47  
48 //otvor na šroub 3
4490 jacho 49 translate([senzor_delka/2,senzor_sirka/2,(lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky)/2])
50 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
4473 jacho 51  
4474 jacho 52 //otvor na šroub 4
4490 jacho 53 translate([-senzor_delka/2,senzor_sirka/2,(lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky)/2])
54 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
4474 jacho 55  
56 }
57 translate([0,0,lozisko_vyska/2+S01_sila_materialu])
58 difference()
59 {
60  
61 cylinder (h = lozisko_vyska, r=(lozisko_prumer_vnejsi+2*S01_sila_materialu)/2, center = true, $fn=100);
62 cylinder (h = lozisko_vyska+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100);
63  
64  
65 }
66  
67 difference()
68 {
69 union()
70 {
71 //uchyty na modul
72 //sloupek 1
73 translate([-senzor_delka/2,-senzor_sirka/2,0])
74 SLOUPEK();
75  
76  
77 translate([senzor_delka/2,-senzor_sirka/2,0])
78 SLOUPEK();
79  
80 translate([senzor_delka/2,senzor_sirka/2,0])
81 SLOUPEK();
82  
83 translate([-senzor_delka/2,senzor_sirka/2,0])
84 SLOUPEK();
85 }
86 translate([0,0,S01_sila_materialu])
87 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, $fn=100);
88  
89 }
90  
91  
4476 jacho 92  
93  
94  
4474 jacho 95 }
96 }
97  
98  
99 //sloupek na senzor
100 module SLOUPEK()
101 {
102 translate([0,0,S01_sila_materialu])
103 difference () {
104  
105 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky, r= sirka_matky/2+S01_sila_materialu, $fn=20);
106  
107  
108  
109  
110 translate([0,0,lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky-vyska_matky])
111 cylinder (h = vyska_matky+0.01, r= (sirka_matky+0.2)/2, $fn=6);
112  
113  
114 translate([0,0,-0.01])
115 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r= (prumer_sroubu+0.2)/2, $fn=10);
116 }
117 }
118  
119  
120  
121 WINDGAUGE02A_S02();
122  
123 /*
4473 jacho 124 difference()
125 {
126 translate([0,0,S01_sila_materialu+S01_vyska_komponentu_na_lozisko/2])
127 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=((S01_prumer_zavitu-S01_sila_materialu)-S01_tolerance_zavit)/2-S01_hloubka_zavitu/2, center = true, $fn=100);
128  
129 translate([0,0,S01_sila_materialu+S01_vyska_komponentu_na_lozisko/2])
130 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=lozisko_prumer_vnejsi/2+S01_sila_materialu, center = true, $fn=100);
131  
132 translate([-((S01_prumer_zavitu-S01_sila_materialu)-S01_tolerance_zavit)-S01_hloubka_zavitu,-S01_sila_materialu/2,0])
133 cube([2*((S01_prumer_zavitu-S01_sila_materialu)-S01_tolerance_zavit)-S01_hloubka_zavitu,S01_sila_materialu,S01_vyska_komponentu_na_lozisko]);
134  
135 rotate ([0,0,90])
136 translate([-((S01_prumer_zavitu-S01_sila_materialu)-S01_tolerance_zavit)-S01_hloubka_zavitu,-S01_sila_materialu/2,0])
137 cube([2*((S01_prumer_zavitu-S01_sila_materialu)-S01_tolerance_zavit)-S01_hloubka_zavitu,S01_sila_materialu,S01_vyska_komponentu_na_lozisko]);
138  
139  
140 }
141  
142 //otvor na pruchod hridelky
143 translate([0,0,S01_sila_materialu/2])
144 cylinder (h = S01_sila_materialu+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100);
145  
146 //otvor na šroub 1
147 translate([-senzor_delka/2,-senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
148 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
149  
150 //otvor na šroub 2
151 translate([senzor_delka/2,-senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
152 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
153  
154 //otvor na šroub 3
155 translate([senzor_delka/2,senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
156 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
157  
158 //otvor na šroub 4
159 translate([-senzor_delka/2,senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
160 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
161  
162  
163  
164 //otvory na ložisko
165 translate([0,0,(S01_vyska_komponentu_na_lozisko+S01_vyska_zuzene_casti+S01_vyska_prechodu)/2])
166  
167  
168  
169 cylinder (h = S01_vyska_komponentu_na_lozisko+S01_vyska_zuzene_casti+S01_vyska_prechodu+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100);
170  
171  
172  
173  
174  
175  
176  
177  
178  
179  
180  
181  
182  
183 }
184  
185  
186 //sloupek na senzor
187 module SLOUPEK()
188 {
189 translate([0,0,S01_sila_materialu])
190 difference () {
191  
192 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky, r= sirka_matky/2+S01_sila_materialu, $fn=20);
193  
194  
195  
196  
197 translate([0,0,lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky-vyska_matky])
198 cylinder (h = vyska_matky+0.01, r= (sirka_matky+0.2)/2, $fn=6);
199  
200  
201 translate([0,0,-0.01])
202 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r= (prumer_sroubu+0.2)/2, $fn=10);
203 }
204 }
205 }
206  
207 WINDGAUGE02A_S02(S01_sila_materialu,S01_vyska_komponentu_na_lozisko,S01_prumer_zavitu,lozisko_vyska,lozisko_prumer_vnejsi,lozisko_prumer_vnitrni,lozisko_prekryv,vyska_matky,prumer_orechu,prumer_sroubu,senzor_delka,senzor_sirka,S01_tolerance_zavit,sirka_matky,magnet_vyska,S01_vyska_zuzene_casti,S01_vyska_prechodu);
208  
209  
210 //původní díl
211 /*
4465 jacho 212 module WINDGAUGE02A_S02(S01_sila_materialu,S01_vyska_komponentu_na_lozisko,S01_prumer_zavitu,lozisko_vyska,lozisko_prumer_vnejsi,lozisko_prumer_vnitrni,lozisko_prekryv,vyska_matky,prumer_orechu,prumer_sroubu,senzor_delka,senzor_sirka,S01_tolerance_zavit,sirka_matky,magnet_vyska)
4431 jacho 213 {
4462 jacho 214 union()
215 {
216 //valec se zavitem
4431 jacho 217 difference()
218 {
4462 jacho 219  
220 screw_thread(S01_prumer_zavitu-S01_tolerance_zavit,S01_hloubka_zavitu,55,S01_vyska_komponentu_na_lozisko,PI/2,2);
221  
222 translate([0,0,S01_sila_materialu+S01_vyska_komponentu_na_lozisko/2])
223 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=((S01_prumer_zavitu-S01_sila_materialu)-S01_tolerance_zavit)/2-S01_hloubka_zavitu/2, center = true, $fn=100);
4435 jacho 224  
4462 jacho 225 //otvor na pruchod hridelky
226 translate([0,0,S01_sila_materialu/2])
227 cylinder (h = S01_sila_materialu+0.01, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+0.2)/2, center = true, $fn=100);
228  
229 //otvor na šroub 1
4431 jacho 230 translate([-senzor_delka/2,-senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
231 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
232  
4462 jacho 233 //otvor na šroub 2
4431 jacho 234 translate([senzor_delka/2,-senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
235 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
236  
237 //otvor na šroub 3
238 translate([senzor_delka/2,senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
239 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
240  
241 //otvor na šroub 4
242 translate([-senzor_delka/2,senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
4462 jacho 243 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
244  
245 }
4431 jacho 246  
4462 jacho 247 //otvory na ložisko
248 translate([0,0,lozisko_vyska/2+S01_sila_materialu])
249 difference()
4465 jacho 250 {
251  
4462 jacho 252 cylinder (h = lozisko_vyska, r=(lozisko_prumer_vnejsi+2*S01_sila_materialu)/2, center = true, $fn=100);
253 cylinder (h = lozisko_vyska+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100);
254  
255  
256 }
257  
4465 jacho 258 difference()
259 {
260 union()
261 {
262 //uchyty na modul
263 //sloupek 1
264 translate([-senzor_delka/2,-senzor_sirka/2,0])
265 SLOUPEK();
4462 jacho 266  
267  
4465 jacho 268 translate([senzor_delka/2,-senzor_sirka/2,0])
269 SLOUPEK();
4462 jacho 270  
4465 jacho 271 translate([senzor_delka/2,senzor_sirka/2,0])
272 SLOUPEK();
4462 jacho 273  
4465 jacho 274 translate([-senzor_delka/2,senzor_sirka/2,0])
275 SLOUPEK();
276 }
277 translate([0,0,S01_sila_materialu])
278 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, $fn=100);
279  
280 }
4462 jacho 281  
282  
283  
284  
285  
286  
287  
4431 jacho 288 }
4465 jacho 289 }
4431 jacho 290  
291  
4465 jacho 292 //sloupek na senzor
293 module SLOUPEK()
294 {
295 translate([0,0,S01_sila_materialu])
296 difference () {
297  
298 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky, r= sirka_matky/2+S01_sila_materialu, $fn=20);
299  
4431 jacho 300  
4465 jacho 301  
4431 jacho 302  
4465 jacho 303 translate([0,0,lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky-vyska_matky])
304 cylinder (h = vyska_matky+0.01, r= (sirka_matky+0.2)/2, $fn=6);
4431 jacho 305  
306  
4465 jacho 307 translate([0,0,-0.01])
308 cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r= (prumer_sroubu+0.2)/2, $fn=10);
309 }
310 }
4473 jacho 311 */
312  
313  
4474 jacho 314 /*
4465 jacho 315  
4473 jacho 316