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  
4431 jacho 9 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)
10 {
11  
12 difference()
13 {
14 //translate([0,0,-(S01_vyska_na_elektroniku+S01_vyska_zavitu_na_nasroubovani_drzaku+2*S01_vyska_komponentu_na_lozisko)/2-10])
15  
4435 jacho 16 //metric_thread (diameter=S01_prumer_zavitu-0.3, pitch=1, length=S01_vyska_komponentu_na_lozisko, internal=false, n_starts=6);
17  
4444 jacho 18 screw_thread(S01_prumer_zavitu-2.5,4,55,S01_vyska_komponentu_na_lozisko,PI/2,2);
4431 jacho 19  
20 //otvory na ložisko
21 translate([0,0,lozisko_vyska/2])
22 cylinder (h = lozisko_vyska+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100);
23  
24 translate([0,0,S01_vyska_komponentu_na_lozisko/2])
25 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+0.2)/2, center = true, $fn=100);
26  
27  
28 //otvor na šroub 1
29 translate([-senzor_delka/2,-senzor_sirka/2,vyska_matky/2])
30 cylinder (h = vyska_matky+0.01, r=(prumer_orechu+0.2)/2, center = true, $fn=100);
31  
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,vyska_matky/2])
37 cylinder (h = vyska_matky+0.01, r=(prumer_orechu+0.2)/2, center = true, $fn=100);
38  
39 translate([senzor_delka/2,-senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
40 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
41  
42 //otvor na šroub 3
43 translate([senzor_delka/2,senzor_sirka/2,vyska_matky/2])
44 cylinder (h = vyska_matky+0.01, r=(prumer_orechu+0.2)/2, center = true, $fn=100);
45  
46 translate([senzor_delka/2,senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
47 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
48  
49 //otvor na šroub 4
50 translate([-senzor_delka/2,senzor_sirka/2,vyska_matky/2])
51 cylinder (h = vyska_matky+0.01, r=(prumer_orechu+0.2)/2, center = true, $fn=100);
52  
53 translate([-senzor_delka/2,senzor_sirka/2,S01_vyska_komponentu_na_lozisko/2])
54 cylinder (h = S01_vyska_komponentu_na_lozisko+0.01, r=(prumer_sroubu)/2, center = true, $fn=100);
55  
56 }
57 }
58  
59  
60  
61  
62  
63  
64  
4444 jacho 65 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);