Line 1... |
Line 1... |
1 |
$fn=40; // model faces resolution. |
1 |
$fn=40; // model faces resolution. |
2 |
include <../configuration.scad> |
2 |
include <../configuration.scad> |
3 |
|
3 |
|
- |
|
4 |
|
4 |
include <polyScrewThread_r1.scad> |
5 |
include <polyScrewThread_r1.scad> |
5 |
|
6 |
|
6 |
PI=3.141592; |
7 |
PI=3.141592; |
7 |
|
8 |
|
- |
|
9 |
|
8 |
WINDGAUGE02A_S01(); |
10 |
//Držák ložisek, rotoru, senzoru |
9 |
|
11 |
|
10 |
module WINDGAUGE02A_S01() |
12 |
module WINDGAUGE02A_S01() |
11 |
{ |
13 |
{ |
- |
|
14 |
//valec se zavitem |
- |
|
15 |
union() |
- |
|
16 |
{ |
12 |
difference() |
17 |
difference() |
13 |
{ |
18 |
{ |
14 |
union() |
19 |
union() |
15 |
{ |
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 |
|
16 |
//základní válec |
24 |
//spodní doraz |
17 |
cylinder (h = S01_vyska, r=(S01_prumer_vnitrni)/2+S01_sila_materialu, $fn=100); |
25 |
cylinder (h = S01_sila_materialu, r=S01_prumer_vnitrni/2+5/2*S01_sila_materialu, $fn=100); |
- |
|
26 |
|
- |
|
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); |
18 |
|
32 |
|
- |
|
33 |
cylinder (h = R01_vyska_preryti_statoru+5+0.01, r=S01_prumer_vnitrni/2+3/2*S01_sila_materialu, $fn=100); |
19 |
|
34 |
|
- |
|
35 |
} |
- |
|
36 |
} |
20 |
|
37 |
|
- |
|
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 |
|
21 |
} |
62 |
} |
22 |
|
- |
|
23 |
//horní závit |
- |
|
24 |
translate([0,0,S01_vyska-S01_vyska_horni_zavit]) |
- |
|
25 |
screw_thread(S01_prumer_vnitrni,S01_hloubka_zavitu,55,S01_vyska_horni_zavit+5,PI/2,2); |
- |
|
26 |
|
63 |
|
- |
|
64 |
//otvor na ložisko |
- |
|
65 |
difference() |
- |
|
66 |
{ |
- |
|
67 |
translate([0,0,(R01_vyska_preryti_statoru+2*lozisko_vyska)/2+S01_sila_materialu]) |
- |
|
68 |
cylinder (h = R01_vyska_preryti_statoru+2*lozisko_vyska, r=(lozisko_prumer_vnejsi+2*S01_sila_materialu)/2, center = true, $fn=100); |
- |
|
69 |
|
- |
|
70 |
translate([0,0,(R01_vyska_preryti_statoru+2*lozisko_vyska)/2+S01_sila_materialu]) |
- |
|
71 |
cylinder (h = R01_vyska_preryti_statoru+2*lozisko_vyska+0.01, r=(lozisko_prumer_vnejsi+0.2)/2, center = true, $fn=100); |
- |
|
72 |
|
- |
|
73 |
//otvory na hlavy sroubu v uchytu loziska |
- |
|
74 |
translate([-senzor_delka/2,-senzor_sirka/2,0]) |
- |
|
75 |
{ |
- |
|
76 |
cylinder (h = vyska_hlavy_sroubu, r= (prumer_hlavy_sroubu)/2, $fn=40); |
- |
|
77 |
translate([0,0,vyska_hlavy_sroubu]) |
- |
|
78 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
- |
|
79 |
} |
27 |
|
80 |
|
- |
|
81 |
translate([-senzor_delka/2,senzor_sirka/2,0]) |
- |
|
82 |
{ |
- |
|
83 |
cylinder (h = vyska_hlavy_sroubu, r= (prumer_hlavy_sroubu)/2, $fn=40); |
28 |
//otvor na drzak rj11 |
84 |
translate([0,0,vyska_hlavy_sroubu]) |
- |
|
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 |
{ |
- |
|
90 |
cylinder (h = vyska_hlavy_sroubu, r= (prumer_hlavy_sroubu)/2, $fn=40); |
29 |
translate([0,0,S01_vyska_spodniho_zavitu+S01_sila_drzaku_RJ11-0.3]) |
91 |
translate([0,0,vyska_hlavy_sroubu]) |
30 |
cylinder( 2*S01_sila_drzaku_RJ11, d1=(S01_prumer_vnitrni)-1-1.5*S01_hloubka_zavitu,d2=(S01_prumer_vnitrni) ); |
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]) |
31 |
|
96 |
{ |
- |
|
97 |
cylinder (h = vyska_hlavy_sroubu, r= (prumer_hlavy_sroubu)/2, $fn=40); |
32 |
translate([0,0,S01_vyska_spodniho_zavitu]) |
98 |
translate([0,0,vyska_hlavy_sroubu]) |
33 |
cylinder (h = S01_sila_drzaku_RJ11-0.3, r=(S01_prumer_vnitrni)/2-S01_hloubka_zavitu/2+0.5, $fn=100); |
99 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
34 |
|
100 |
} |
- |
|
101 |
} |
35 |
|
102 |
|
- |
|
103 |
difference() |
- |
|
104 |
{ |
- |
|
105 |
union() |
- |
|
106 |
{ |
36 |
//spodní závit |
107 |
//uchyty na modul |
37 |
translate([0,0,-5]) |
108 |
//sloupek 1 |
38 |
screw_thread((S01_prumer_vnitrni),S01_hloubka_zavitu,55,S01_vyska_spodniho_zavitu+5+0.01,PI/2,2); |
109 |
translate([-senzor_delka/2,-senzor_sirka/2,0]) |
- |
|
110 |
SLOUPEK(); |
39 |
|
111 |
|
- |
|
112 |
translate([senzor_delka/2,-senzor_sirka/2,0]) |
40 |
//otvor skrz |
113 |
SLOUPEK(); |
41 |
translate([0,0,S01_vyska_spodniho_zavitu+3*S01_sila_drzaku_RJ11-0.3]) |
- |
|
42 |
cylinder (h = S01_vyska-S01_vyska_horni_zavit-(S01_vyska_spodniho_zavitu+3*S01_sila_drzaku_RJ11-0.3), r=(S01_prumer_vnitrni)/2, $fn=100); |
- |
|
43 |
|
114 |
|
- |
|
115 |
translate([senzor_delka/2,senzor_sirka/2,0]) |
44 |
} |
116 |
SLOUPEK(); |
45 |
} |
- |
|
46 |
|
- |
|
47 |
|
- |
|
48 |
|
117 |
|
- |
|
118 |
translate([-senzor_delka/2,senzor_sirka/2,0]) |
- |
|
119 |
SLOUPEK(); |
- |
|
120 |
} |
- |
|
121 |
|
- |
|
122 |
translate([0,0,0]) |
- |
|
123 |
cylinder (h = R01_vyska_preryti_statoru+2*lozisko_vyska+S01_sila_materialu, r=(lozisko_prumer_vnejsi+0.2)/2, $fn=100); |
- |
|
124 |
|
- |
|
125 |
//doraz loziska |
- |
|
126 |
translate([0,0,(R01_vyska_preryti_statoru+2*lozisko_vyska)+S01_sila_materialu+8/2]) |
- |
|
127 |
cylinder(h=8, r1=(lozisko_prumer_vnejsi+0.2)/2, r2=0, center=true); |
- |
|
128 |
|
- |
|
129 |
} |
- |
|
130 |
} |
- |
|
131 |
} |
49 |
|
132 |
|
50 |
|
133 |
|
- |
|
134 |
//sloupek na senzor |
- |
|
135 |
module SLOUPEK() |
- |
|
136 |
{ |
- |
|
137 |
translate([0,0,S01_sila_materialu]) |
- |
|
138 |
difference () |
- |
|
139 |
{ |
- |
|
140 |
|
- |
|
141 |
cylinder (h = R01_vyska_preryti_statoru+2*lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky, r= sirka_matky/2+S01_sila_materialu, $fn=20); |
- |
|
142 |
|
- |
|
143 |
translate([0,0,R01_vyska_preryti_statoru+2*lozisko_vyska+2*S01_sila_materialu+2*S01_sila_materialu+vyska_hlavy_sroubu+magnet_vyska+vyska_matky-vyska_matky]) |
- |
|
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]) |
- |
|
150 |
cylinder (h = vyska_hlavy_sroubu-S01_sila_materialu, r= (prumer_hlavy_sroubu)/2, $fn=40); |
- |
|
151 |
|
- |
|
152 |
translate([0,0,vyska_hlavy_sroubu-S01_sila_materialu-0.02]) |
- |
|
153 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
- |
|
154 |
|
- |
|
155 |
} |
- |
|
156 |
} |
- |
|
157 |
|
51 |
|
158 |
|
- |
|
159 |
|
- |
|
160 |
WINDGAUGE02A_S01(); |
52 |
|
161 |
|