Rev 4536 Rev 4538
Line 1... Line 1...
1 $fn=40; // model faces resolution. 1 $fn=100; // model faces resolution.
2 include <../configuration.scad> 2 include <../configuration.scad>
3 include <polyScrewThread_r1.scad> 3 include <polyScrewThread_r1.scad>
4 PI=3.141592; 4 PI=3.141592;
-   5  
5 WINDGAUGE01A_R01(); 6 WINDGAUGE01A_R01();
6   7  
7 //Model lopatky -  
8 module WINDGAUGE01A_R01() 8 module WINDGAUGE01A_R01()
9 { 9 {
10 difference() -  
11 { -  
12 union() -  
13 { -  
14 //koule vrchní - kryt -  
15 translate([0,0,R01_vyska_preryti_statoru]) -  
16 sphere(d = (S01_prumer_vnitrni/2+5*S01_sila_materialu)*2, $fn=100); -  
17 -  
18 //spodní válec -  
19 cylinder (h = R01_vyska_preryti_statoru, r=S01_prumer_vnitrni/2+5*S01_sila_materialu, $fn=100); -  
20 -  
21 //lopatka 1 -  
22 translate([L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0]) -  
23 lopatka(); -  
24 -  
25 //lopatka 2 -  
26 rotate([0, 0, 120]) -  
27 translate([L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0]) -  
28 lopatka(); -  
29   -  
30 //lopatka 3 -  
31 rotate([0, 0, 240]) -  
32 translate([L01_hrana_drzaku_a/2,-(S01_prumer_vnitrni/2+2*S01_sila_materialu+L01_delka_uchytu+L01_prumer_lopatky/2),0]) -  
33 lopatka(); -  
34 } -  
35   -  
36 //Odečet spodního válce -  
37 translate([0,0,-(S01_prumer_vnitrni/2+2*S01_sila_materialu)]) -  
38 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); -  
39 10
-   11 translate([0,0,R01_zavit_vyska+1])
40 //odecet koule 12 difference()
-   13 {
41 translate([0,0,R01_vyska_preryti_statoru]) 14 //kužel
-   15
42 sphere(d = (S01_prumer_vnitrni/2+4*S01_sila_materialu)*2, $fn=100); 16 cylinder(h=10, r1=R03_prumer_zavitu/2+S01_sila_materialu, r2=5, center=false, $fn=100);
43 } 17
-   18 cylinder(h=10-2*S01_sila_materialu, r1=R03_prumer_zavitu/2, r2=5-S01_sila_materialu, center=false,$fn=100);
44 19
45 difference() -  
46 { -  
47 union() -  
48 { -  
49 //závit na ukotvení rotoru -  
50 //zakladni material -  
51 cylinder (h = (S01_prumer_vnitrni/2+2*S01_sila_materialu)+R01_vyska_preryti_statoru, r=(lozisko_prumer_vnejsi/2-1), $fn=100); -  
52 -  
53 vyztuhy(); -  
54 } -  
55   -  
56 //vnitrni zavit -  
57 translate([0,0,-5]) -  
58 screw_thread((11),3,55,R01_vyska_preryti_statoru+10,PI/2,2); -  
59 -  
60 //za závitem aby to slo tisknout -  
61 translate([0,0,R01_vyska_preryti_statoru+5]) -  
62 cylinder(h=(5), r1=(11)/2, r2=0, center=false, $fn=100); -  
63 -  
64 } 20 }
65 } -  
66 21
67 module vyztuhy() -  
68 { -  
69 difference() 22 difference()
70 { 23 {
71 translate([0,0,R01_vyska_preryti_statoru]) -  
72 cylinder(h=(S01_prumer_vnitrni/2+4*S01_sila_materialu), r1=(lozisko_prumer_vnejsi/2-1), r2=(lozisko_prumer_vnejsi/2-1)+(S01_prumer_vnitrni/2+4*S01_sila_materialu)-R01_vyska_preryti_statoru, center=false, $fn=100); -  
73 -  
74 //vykousnutí 1 -  
75 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005]) -  
76 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); -  
77 24
78 //vykousnutí 2 -  
79 rotate([0, 0, 90]) -  
80 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005]) -  
81 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); -  
82 -  
83 //vykousnutí 3 -  
84 rotate([0, 0, 180]) -  
85 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005]) -  
86 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); -  
87 -  
88 //vykousnutí 4 -  
89 rotate([0, 0, 270]) -  
90 translate([S01_sila_materialu/2,S01_sila_materialu/2,R01_vyska_preryti_statoru-0.005]) -  
91 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); -  
92 difference() -  
93 { -  
94 translate([0,0,R01_vyska_preryti_statoru]) -  
95 sphere(d = (S01_prumer_vnitrni/2+12*S01_sila_materialu)*2, $fn=100); -  
96 25
97 translate([0,0,R01_vyska_preryti_statoru]) 26 //válec na závit
98 sphere(d = (S01_prumer_vnitrni/2+3*S01_sila_materialu)*2, $fn=100); 27 cylinder (h = R01_zavit_vyska+1, r=R03_prumer_zavitu/2+S01_sila_materialu, $fn=100);
-   28
-   29 //odečet závitu
-   30 translate([0,0,-10])
-   31 screw_thread((R03_prumer_zavitu),S01_hloubka_zavitu,55,R01_zavit_vyska+12,PI/2,2);
-   32
-   33
99   34  
100 } -  
101 } 35 }
102 } 36  
-   37 //válec pro držení PCB
-   38 cylinder (h = R01_zavit_vyska+10, r=2, $fn=100);
103   39  
104 module lopatka() -  
105 { -  
106 difference() -  
107 { -  
108 union() -  
109 { -  
110 translate([0,0,L01_prumer_lopatky/2]) -  
111 sphere(d = L01_prumer_lopatky, $fn=100); -  
112 -  
113 translate([-L01_hrana_drzaku_a,0,0]) -  
114 cube([L01_hrana_drzaku_a,L01_delka_uchytu+L01_prumer_lopatky/2+10,L01_hrana_drzaku_b],center=false); -  
115 -  
116 //podpěra -  
117 translate([0,0,0]) -  
118 cylinder(h=(L01_prumer_lopatky/2), r1=L01_prumer_lopatky/3.5, r2=L01_prumer_lopatky/2, center=false, $fn=100); -  
119 -  
120 } -  
121 -  
122 -  
123 translate([0,0,L01_prumer_lopatky/2]) -  
124 sphere(d = L01_prumer_lopatky-L01_sila_materialu_lopatky*2, $fn=100); -  
125 -  
126 translate([0,-L01_prumer_lopatky,0]) -  
127 cube([L01_prumer_lopatky+0.01,2*(L01_delka_uchytu+L01_prumer_lopatky/2+10),L01_prumer_lopatky],center=false); -  
128 -  
129 } -  
130 } 40 }