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