4476 |
jacho |
1 |
$fn=40; // model faces resolution. |
|
|
2 |
include <../configuration.scad> |
|
|
3 |
|
4528 |
jacho |
4 |
|
4476 |
jacho |
5 |
include <polyScrewThread_r1.scad> |
|
|
6 |
|
|
|
7 |
PI=3.141592; |
|
|
8 |
|
|
|
9 |
|
4528 |
jacho |
10 |
//Držák ložisek, rotoru, senzoru |
|
|
11 |
|
4476 |
jacho |
12 |
module WINDGAUGE02A_S01() |
4528 |
jacho |
13 |
{ |
|
|
14 |
//valec se zavitem |
|
|
15 |
union() |
|
|
16 |
{ |
|
|
17 |
difference() |
|
|
18 |
{ |
|
|
19 |
union() |
|
|
20 |
{ |
|
|
21 |
translate([0,0,S01_sila_materialu]) |
|
|
22 |
screw_thread((S01_prumer_vnitrni-S01_tolerance_zavit),S01_hloubka_zavitu,55,S01_vyska_horni_zavit,PI/2,2); |
|
|
23 |
|
|
|
24 |
//spodní doraz |
|
|
25 |
cylinder (h = S01_sila_materialu, r=S01_prumer_vnitrni/2+5/2*S01_sila_materialu, $fn=100); |
4476 |
jacho |
26 |
|
4528 |
jacho |
27 |
|
|
|
28 |
//krycí ovál - usnadnění povolení |
|
|
29 |
difference() |
|
|
30 |
{ |
|
|
31 |
cylinder (h = R01_vyska_preryti_statoru+5, r=S01_prumer_vnitrni/2+5/2*S01_sila_materialu, $fn=100); |
|
|
32 |
|
|
|
33 |
cylinder (h = R01_vyska_preryti_statoru+5+0.01, r=S01_prumer_vnitrni/2+3/2*S01_sila_materialu, $fn=100); |
4476 |
jacho |
34 |
|
4528 |
jacho |
35 |
} |
|
|
36 |
} |
4476 |
jacho |
37 |
|
4528 |
jacho |
38 |
//odstranění vnitřní výplně |
|
|
39 |
translate([0,0,S01_sila_materialu]) |
|
|
40 |
cylinder (h = S01_vyska_horni_zavit+0.01, r=S01_prumer_vnitrni/2-S01_hloubka_zavitu/2-S01_sila_materialu, $fn=100); |
|
|
41 |
|
|
|
42 |
//otvor na ložisko |
|
|
43 |
translate([0,0,S01_sila_materialu/2]) |
|
|
44 |
cylinder (h = S01_sila_materialu+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100); |
|
|
45 |
//otvory na hlavu šroubu ve dně |
|
|
46 |
//otvor na hlavu šroubu 1 |
|
|
47 |
translate([-senzor_delka/2,-senzor_sirka/2,(lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky)/2]) |
|
|
48 |
cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(prumer_hlavy_sroubu)/2, center = true, $fn=100); |
|
|
49 |
|
|
|
50 |
//otvor na šroub 2 |
|
|
51 |
translate([senzor_delka/2,-senzor_sirka/2,(lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky)/2]) |
|
|
52 |
cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(prumer_hlavy_sroubu)/2, center = true, $fn=100); |
|
|
53 |
|
|
|
54 |
//otvor na šroub 3 |
|
|
55 |
translate([senzor_delka/2,senzor_sirka/2,(lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky)/2]) |
|
|
56 |
cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(prumer_hlavy_sroubu)/2, center = true, $fn=100); |
|
|
57 |
|
|
|
58 |
//otvor na šroub 4 |
|
|
59 |
translate([-senzor_delka/2,senzor_sirka/2,(lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky)/2]) |
|
|
60 |
cylinder (h = lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky+0.01, r=(prumer_hlavy_sroubu)/2, center = true, $fn=100); |
|
|
61 |
|
4476 |
jacho |
62 |
} |
|
|
63 |
|
4528 |
jacho |
64 |
//otvor na ložisko |
|
|
65 |
difference() |
|
|
66 |
{ |
4601 |
jacho |
67 |
translate([0,0,(R01_vyska_preryti_statoru+lozisko_vyska)/2+S01_sila_materialu]) |
|
|
68 |
cylinder (h = R01_vyska_preryti_statoru+lozisko_vyska, r=(lozisko_prumer_vnejsi+2*S01_sila_materialu)/2, center = true, $fn=100); |
4528 |
jacho |
69 |
|
4601 |
jacho |
70 |
translate([0,0,(R01_vyska_preryti_statoru+lozisko_vyska)/2+S01_sila_materialu]) |
|
|
71 |
cylinder (h = R01_vyska_preryti_statoru+lozisko_vyska+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100); |
4528 |
jacho |
72 |
|
|
|
73 |
//otvory na hlavy sroubu v uchytu loziska |
|
|
74 |
translate([-senzor_delka/2,-senzor_sirka/2,0]) |
|
|
75 |
{ |
4541 |
jacho |
76 |
cylinder (h = vyska_hlavy_sroubu+10, r= (prumer_hlavy_sroubu)/2, $fn=40); |
|
|
77 |
translate([0,0,vyska_hlavy_sroubu+10]) |
4528 |
jacho |
78 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
|
|
79 |
} |
4476 |
jacho |
80 |
|
4528 |
jacho |
81 |
translate([-senzor_delka/2,senzor_sirka/2,0]) |
|
|
82 |
{ |
4541 |
jacho |
83 |
cylinder (h = vyska_hlavy_sroubu+10, r= (prumer_hlavy_sroubu)/2, $fn=40); |
|
|
84 |
translate([0,0,vyska_hlavy_sroubu+10]) |
4528 |
jacho |
85 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
|
|
86 |
} |
|
|
87 |
|
|
|
88 |
translate([senzor_delka/2,-senzor_sirka/2,0]) |
|
|
89 |
{ |
4541 |
jacho |
90 |
cylinder (h = vyska_hlavy_sroubu+10, r= (prumer_hlavy_sroubu)/2, $fn=40); |
|
|
91 |
translate([0,0,vyska_hlavy_sroubu+10]) |
4528 |
jacho |
92 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
|
|
93 |
} |
|
|
94 |
|
|
|
95 |
translate([senzor_delka/2,senzor_sirka/2,0]) |
|
|
96 |
{ |
4541 |
jacho |
97 |
cylinder (h = vyska_hlavy_sroubu+10, r= (prumer_hlavy_sroubu)/2, $fn=40); |
|
|
98 |
translate([0,0,vyska_hlavy_sroubu+10]) |
4528 |
jacho |
99 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
|
|
100 |
} |
|
|
101 |
} |
4476 |
jacho |
102 |
|
4528 |
jacho |
103 |
difference() |
|
|
104 |
{ |
|
|
105 |
union() |
|
|
106 |
{ |
|
|
107 |
//uchyty na modul |
|
|
108 |
//sloupek 1 |
|
|
109 |
translate([-senzor_delka/2,-senzor_sirka/2,0]) |
|
|
110 |
SLOUPEK(); |
4476 |
jacho |
111 |
|
4528 |
jacho |
112 |
translate([senzor_delka/2,-senzor_sirka/2,0]) |
|
|
113 |
SLOUPEK(); |
4490 |
jacho |
114 |
|
4528 |
jacho |
115 |
translate([senzor_delka/2,senzor_sirka/2,0]) |
|
|
116 |
SLOUPEK(); |
4476 |
jacho |
117 |
|
4528 |
jacho |
118 |
translate([-senzor_delka/2,senzor_sirka/2,0]) |
|
|
119 |
SLOUPEK(); |
|
|
120 |
} |
|
|
121 |
|
|
|
122 |
translate([0,0,0]) |
4601 |
jacho |
123 |
cylinder (h = R01_vyska_preryti_statoru+lozisko_vyska+S01_sila_materialu, r=(lozisko_prumer_vnejsi+0.2)/2, $fn=100); |
4528 |
jacho |
124 |
|
|
|
125 |
//doraz loziska |
4601 |
jacho |
126 |
translate([0,0,(R01_vyska_preryti_statoru+lozisko_vyska)+S01_sila_materialu+8/2]) |
4528 |
jacho |
127 |
cylinder(h=8, r1=(lozisko_prumer_vnejsi+0.2)/2, r2=0, center=true); |
|
|
128 |
|
|
|
129 |
} |
|
|
130 |
} |
|
|
131 |
} |
4476 |
jacho |
132 |
|
|
|
133 |
|
4528 |
jacho |
134 |
//sloupek na senzor |
|
|
135 |
module SLOUPEK() |
|
|
136 |
{ |
4634 |
jacho |
137 |
translate([0,0,0]) |
4528 |
jacho |
138 |
difference () |
|
|
139 |
{ |
|
|
140 |
|
4601 |
jacho |
141 |
cylinder (h = R01_vyska_preryti_statoru+lozisko_vyska+magnet_vyska+R03_vyska_narezeni_hridelky+2*S01_sila_materialu, r= sirka_matky/2+S01_sila_materialu, $fn=20); |
4528 |
jacho |
142 |
|
4601 |
jacho |
143 |
translate([0,0,R01_vyska_preryti_statoru+lozisko_vyska+magnet_vyska+R03_vyska_narezeni_hridelky+2*S01_sila_materialu-vyska_matky]) |
4528 |
jacho |
144 |
cylinder (h = vyska_matky+0.01, r= (sirka_matky+0.2)/2, $fn=6); |
|
|
145 |
|
|
|
146 |
translate([0,0,-0.01]) |
|
|
147 |
cylinder (h = R01_vyska_preryti_statoru+2*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=40); |
|
|
148 |
|
|
|
149 |
translate([0,0,-0.01]) |
4541 |
jacho |
150 |
cylinder (h = vyska_hlavy_sroubu+10-S01_sila_materialu, r= (prumer_hlavy_sroubu)/2, $fn=40); |
4528 |
jacho |
151 |
|
4541 |
jacho |
152 |
translate([0,0,vyska_hlavy_sroubu+10-S01_sila_materialu-0.02]) |
4528 |
jacho |
153 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
|
|
154 |
|
|
|
155 |
} |
|
|
156 |
} |
|
|
157 |
|
4476 |
jacho |
158 |
|
4528 |
jacho |
159 |
|
|
|
160 |
WINDGAUGE02A_S01(); |
4476 |
jacho |
161 |
|