Rev Author Line No. Line
4431 jacho 1 $fn=40; // model faces resolution.
2 include <../configuration.scad>
4528 jacho 3 include <polyScrewThread_r1.scad>
4 PI=3.141592;
4536 jacho 5  
6  
7  
8  
4528 jacho 9 WINDGAUGE02A_R01();
4536 jacho 10  
4431 jacho 11  
4536 jacho 12  
4528 jacho 13 //Model lopatky
4476 jacho 14 module WINDGAUGE02A_R01()
4528 jacho 15 {
16 difference()
17 {
18 union()
4431 jacho 19 {
4528 jacho 20 //koule vrchní - kryt
21 translate([0,0,R01_vyska_preryti_statoru])
4533 jacho 22 sphere(d = (S01_prumer_vnitrni/2+5*S01_sila_materialu)*2, $fn=100);
4528 jacho 23  
24 //spodní válec
4533 jacho 25 cylinder (h = R01_vyska_preryti_statoru, r=S01_prumer_vnitrni/2+5*S01_sila_materialu, $fn=100);
4528 jacho 26  
27 //lopatka 1
4533 jacho 28 translate([L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0])
4528 jacho 29 lopatka();
4431 jacho 30  
4528 jacho 31 //lopatka 2
4594 jacho 32 rotate([0, 0,120])
4533 jacho 33 translate([L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0])
4528 jacho 34 lopatka();
35  
36 //lopatka 3
37 rotate([0, 0, 240])
4533 jacho 38 translate([L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0])
4594 jacho 39 lopatka();
40  
41  
4528 jacho 42 }
43  
44 //Odečet spodního válce
45 translate([0,0,-(S01_prumer_vnitrni/2+2*S01_sila_materialu)])
4533 jacho 46 cylinder (h = R01_vyska_preryti_statoru+(S01_prumer_vnitrni/2+2*S01_sila_materialu), r=S01_prumer_vnitrni/2+4*S01_sila_materialu, $fn=100);
4528 jacho 47  
48 //odecet koule
49 translate([0,0,R01_vyska_preryti_statoru])
4533 jacho 50 sphere(d = (S01_prumer_vnitrni/2+4*S01_sila_materialu)*2, $fn=100);
4528 jacho 51 }
52  
53 difference()
54 {
55 union()
56 {
57 //závit na ukotvení rotoru
58 //zakladni material
4601 jacho 59 cylinder (h = (S01_prumer_vnitrni/2+4*S01_sila_materialu)+R01_vyska_preryti_statoru, r=(lozisko_prumer_vnejsi/2-1), $fn=100);
4431 jacho 60  
4528 jacho 61 vyztuhy();
62 }
63  
64 //vnitrni zavit
65 translate([0,0,-5])
4601 jacho 66 screw_thread((12),3,55,R01_vyska_preryti_statoru+10,PI/2,2);
4528 jacho 67  
68 //za závitem aby to slo tisknout
69 translate([0,0,R01_vyska_preryti_statoru+5])
4601 jacho 70 cylinder(h=(5), r1=(12)/2, r2=0, center=false, $fn=100);
4600 jacho 71  
72 difference()
73 {
74 translate([0,0,R01_vyska_preryti_statoru])
75 sphere(d = (S01_prumer_vnitrni/2+5*S01_sila_materialu)*2+10, $fn=100);
76 translate([0,0,R01_vyska_preryti_statoru])
77 sphere(d = (S01_prumer_vnitrni/2+5*S01_sila_materialu)*2, $fn=100);
78  
79 }
4528 jacho 80 }
81 }
82  
83 module vyztuhy()
84 {
85 difference()
86 {
87 translate([0,0,R01_vyska_preryti_statoru])
4536 jacho 88 cylinder(h=(S01_prumer_vnitrni/2+5*S01_sila_materialu), r1=(lozisko_prumer_vnejsi/2-1), r2=(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+5*S01_sila_materialu)-R01_vyska_preryti_statoru, center=false, $fn=100);
4528 jacho 89  
90 //vykousnutí 1
91 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005])
92 cube([(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(S01_prumer_vnitrni/2+4*S01_sila_materialu)+0.01],center=false);
93  
94 //vykousnutí 2
95 rotate([0, 0, 90])
96 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005])
97 cube([(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(S01_prumer_vnitrni/2+4*S01_sila_materialu)+0.01],center=false);
4431 jacho 98  
4528 jacho 99 //vykousnutí 3
100 rotate([0, 0, 180])
101 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005])
102 cube([(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(S01_prumer_vnitrni/2+4*S01_sila_materialu)+0.01],center=false);
4431 jacho 103  
4528 jacho 104 //vykousnutí 4
105 rotate([0, 0, 270])
106 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005])
107 cube([(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu),(S01_prumer_vnitrni/2+4*S01_sila_materialu)+0.01],center=false);
108 difference()
109 {
110 translate([0,0,R01_vyska_preryti_statoru])
4536 jacho 111 sphere(d = (S01_prumer_vnitrni/2+21*S01_sila_materialu)*2, $fn=100);
4476 jacho 112  
4528 jacho 113 translate([0,0,R01_vyska_preryti_statoru])
4536 jacho 114 sphere(d = (S01_prumer_vnitrni/2+4*S01_sila_materialu)*2, $fn=100);
4431 jacho 115  
4528 jacho 116 }
117 }
118 }
4533 jacho 119  
4528 jacho 120 module lopatka()
121 {
122 difference()
123 {
124 union()
125 {
126 translate([0,0,L01_prumer_lopatky/2])
127 sphere(d = L01_prumer_lopatky, $fn=100);
4431 jacho 128  
4533 jacho 129 translate([-L01_hrana_drzaku_a,0,0])
4528 jacho 130 cube([L01_hrana_drzaku_a,L01_delka_uchytu+L01_prumer_lopatky/2+10,L01_hrana_drzaku_b],center=false);
4431 jacho 131  
4528 jacho 132 //podpěra
133 translate([0,0,0])
4601 jacho 134 cylinder(h=(L01_prumer_lopatky/2), r1=(L01_prumer_lopatky)/3.5, r2=(L01_prumer_lopatky-1)/2, center=false, $fn=100);
4528 jacho 135  
4694 jacho 136  
137  
4528 jacho 138 }
139  
140  
141 translate([0,0,L01_prumer_lopatky/2])
142 sphere(d = L01_prumer_lopatky-L01_sila_materialu_lopatky*2, $fn=100);
4431 jacho 143  
4533 jacho 144 translate([0,-L01_prumer_lopatky,0])
4528 jacho 145 cube([L01_prumer_lopatky+0.01,2*(L01_delka_uchytu+L01_prumer_lopatky/2+10),L01_prumer_lopatky],center=false);
146  
147 }
4694 jacho 148  
149 polomer_valce=2;
150 //válec pro vylepšení tisku
151 translate([-polomer_valce,L01_prumer_lopatky/2+1.5+L01_sila_materialu_lopatky,0])
152 cylinder(h=(L01_prumer_lopatky), r1=polomer_valce, r2=polomer_valce, center=false, $fn=100);
153  
4431 jacho 154 }
4694 jacho 155  
156