Rev Author Line No. Line
4536 jacho 1 $fn=100; // model faces resolution.
2 include <../configuration.scad>
3 include <polyScrewThread_r1.scad>
4 PI=3.141592;
5  
6 //Drzak rotoru se závitem
7  
4542 jacho 8  
9  
4536 jacho 10  
4538 jacho 11 WINDGAUGE01A_R02();
12  
13 module WINDGAUGE01A_R02()
14 {
15  
16 difference()
17 {
18 union()
4536 jacho 19 {
4538 jacho 20  
21 //kužel na závit
22 cylinder(h=R02_zavit_vyska, r1=S01_prumer_vnitrni/2+5*S01_sila_materialu, r2=R03_prumer_zavitu/2+S01_sila_materialu, center=false,$fn=100);
23  
4542 jacho 24  
4536 jacho 25  
4538 jacho 26 //kvádr pod tyčí
4542 jacho 27 translate([-R02_hrana_drzaku/2,-(R02_delka_vyrovnnavaci_tyce+R03_prumer_zavitu/2+S01_sila_materialu),0])
4538 jacho 28 cube([R02_hrana_drzaku,R02_delka_vyrovnnavaci_tyce+R03_prumer_zavitu/2+S01_sila_materialu,R02_sila_materialu_pod_tyci],center=false);
29  
30 //prední tyč
31 translate([0,0,5])
32 rotate([-90, 0, 180])
33 difference()
34 {
35 translate([0,0,0])
36 cylinder (h = R02_delka_vyrovnnavaci_tyce+R03_prumer_zavitu/2+S01_sila_materialu, r=R02_hrana_drzaku/2, $fn=100);
37  
38 translate([-R02_hrana_drzaku/2,0,-0.01])
39 cube([R02_hrana_drzaku,R02_hrana_drzaku,R02_delka_vyrovnnavaci_tyce+R03_prumer_zavitu/2+S01_sila_materialu+0.02],center=false);
40 }
41  
4536 jacho 42  
4538 jacho 43 //spodní tyč pod křídlem
44 translate([-R02_hrana_drzaku/2,0,0])
45 cube([R02_hrana_drzaku,R02_delka_kridla+(S01_prumer_vnitrni/2+5*S01_sila_materialu)-R02_hrana_drzaku/2,S01_sila_materialu],center=false);
46  
47 //zakulacení spodní tyče
48 translate([0,R02_delka_kridla+(S01_prumer_vnitrni/2+5*S01_sila_materialu)-R02_hrana_drzaku/2,0])
49 cylinder (h = S01_sila_materialu, r=R02_hrana_drzaku/2, $fn=100);
50  
4542 jacho 51 //ližiny pro křídlo
4538 jacho 52  
4542 jacho 53  
54 translate([-(R02_sila_materialu_kridla+R02_sila_materialu_kridla_tolerance)/2,0,0])
55 rotate ([0,-90,0])
56 linear_extrude (height = S01_sila_materialu, convexity = 10)
57 polygon(points=[[0,R03_prumer_zavitu/2],[R02_zavit_vyska, R03_prumer_zavitu/2],[R02_zavit_vyska,R02_delka_kridla+(S01_prumer_vnitrni/2+5*S01_sila_materialu)-R02_hrana_drzaku/2],[0,R02_delka_kridla+(S01_prumer_vnitrni/2+5*S01_sila_materialu)-R02_hrana_drzaku/2]]);
58  
4538 jacho 59  
60  
4542 jacho 61 translate([S01_sila_materialu+(R02_sila_materialu_kridla+R02_sila_materialu_kridla_tolerance)/2,0,0])
62 rotate ([0,-90,0])
63 linear_extrude (height = S01_sila_materialu, convexity = 10)
64 polygon(points=[[0,R03_prumer_zavitu/2],[R02_zavit_vyska, R03_prumer_zavitu/2],[R02_zavit_vyska,R02_delka_kridla+(S01_prumer_vnitrni/2+5*S01_sila_materialu)-R02_hrana_drzaku/2],[0,R02_delka_kridla+(S01_prumer_vnitrni/2+5*S01_sila_materialu)-R02_hrana_drzaku/2]]);
65 }
4538 jacho 66  
67 //odečet závitu
68 translate([0,0,-10])
4542 jacho 69 screw_thread((R03_prumer_zavitu),S01_hloubka_zavitu,55,R04_zavit_vyska+R02_zavit_vyska+R01_zavit_vyska+10,PI/2,2);
4538 jacho 70  
71 //otvor na hlavu šroubu
72  
73  
74  
75 translate([-(prumer_hlavy_sroubu+1)/2,-(R02_delka_vyrovnnavaci_tyce+R03_prumer_zavitu/2)+S01_sila_materialu,-0.01])
76 cube([prumer_hlavy_sroubu+1,vyska_hlavy_sroubu+1,R02_sila_materialu_pod_tyci+prumer_hlavy_sroubu/2+0.5],center=false);
77  
78 //otvor na sroub - valec
79 translate([0,-(R02_delka_vyrovnnavaci_tyce+R03_prumer_zavitu/2)-(S01_sila_materialu)-0.01,R02_sila_materialu_pod_tyci])
80 rotate([-90, 0, 0])
81  
82 cylinder (h = S01_sila_materialu+0.01, r=prumer_sroubu/2+0.2, $fn=100);
83  
84 //otvor na sroub - valec pro zasunutí hlavy šroubu
85 translate([0,-(R02_delka_vyrovnnavaci_tyce+R03_prumer_zavitu/2)-0.01,R02_sila_materialu_pod_tyci])
86 rotate([-90, 0, 0])
87  
88 cylinder (h = S01_sila_materialu+0.5, r=prumer_hlavy_sroubu/2+0.3, $fn=100);
89  
90 //otvor pro vsunutí sroubu
91  
92 translate([-(prumer_sroubu+0.2)/2,-(R02_delka_vyrovnnavaci_tyce+R03_prumer_zavitu/2)-S01_sila_materialu-0.01,-0.01])
93 cube([prumer_sroubu+0.2,2*S01_sila_materialu+0.2,R02_sila_materialu_pod_tyci],center=false);
94  
95 }
96 }