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 |
|
5 |
include <polyScrewThread_r1.scad> |
5 |
include <polyScrewThread_r1.scad> |
6 |
|
6 |
|
7 |
PI=3.141592; |
7 |
PI=3.141592; |
8 |
|
8 |
|
9 |
|
9 |
|
10 |
//Držák ložisek, rotoru, senzoru |
10 |
//Držák ložisek, rotoru, senzoru |
11 |
|
11 |
|
12 |
module WINDGAUGE01A_S01() |
12 |
module WINDGAUGE01A_S01() |
13 |
{ |
13 |
{ |
14 |
//valec se zavitem |
14 |
//valec se zavitem |
15 |
union() |
15 |
union() |
16 |
{ |
16 |
{ |
17 |
difference() |
17 |
difference() |
18 |
{ |
18 |
{ |
19 |
union() |
19 |
union() |
20 |
{ |
20 |
{ |
21 |
translate([0,0,S01_sila_materialu]) |
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); |
22 |
screw_thread((S01_prumer_vnitrni-S01_tolerance_zavit),S01_hloubka_zavitu,55,S01_vyska_horni_zavit,PI/2,2); |
23 |
|
23 |
|
24 |
//spodní doraz |
24 |
//spodní doraz |
25 |
cylinder (h = S01_sila_materialu, r=S01_prumer_vnitrni/2+5/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 |
|
26 |
|
27 |
|
27 |
|
28 |
//krycí ovál - usnadnění povolení |
28 |
//krycí ovál - usnadnění povolení |
29 |
difference() |
29 |
difference() |
30 |
{ |
30 |
{ |
31 |
cylinder (h = R01_vyska_preryti_statoru+5, r=S01_prumer_vnitrni/2+5/2*S01_sila_materialu, $fn=100); |
31 |
cylinder (h = R01_vyska_preryti_statoru+5, r=S01_prumer_vnitrni/2+5/2*S01_sila_materialu, $fn=100); |
32 |
|
32 |
|
33 |
cylinder (h = R01_vyska_preryti_statoru+5+0.01, r=S01_prumer_vnitrni/2+3/2*S01_sila_materialu, $fn=100); |
33 |
cylinder (h = R01_vyska_preryti_statoru+5+0.01, r=S01_prumer_vnitrni/2+3/2*S01_sila_materialu, $fn=100); |
34 |
|
34 |
|
35 |
} |
35 |
} |
36 |
|
36 |
|
37 |
|
37 |
|
38 |
|
38 |
|
39 |
|
39 |
|
40 |
|
40 |
|
41 |
|
41 |
|
42 |
|
42 |
|
43 |
} |
43 |
} |
44 |
|
44 |
|
45 |
//odstranění vnitřní výplně |
45 |
//odstranění vnitřní výplně |
46 |
translate([0,0,S01_sila_materialu]) |
46 |
translate([0,0,S01_sila_materialu]) |
47 |
cylinder (h = S01_vyska_horni_zavit+0.01, r=S01_prumer_vnitrni/2-S01_hloubka_zavitu/2-S01_sila_materialu, $fn=100); |
47 |
cylinder (h = S01_vyska_horni_zavit+0.01, r=S01_prumer_vnitrni/2-S01_hloubka_zavitu/2-S01_sila_materialu, $fn=100); |
48 |
|
48 |
|
49 |
|
49 |
|
50 |
//otvor na ložisko s vodiči |
50 |
//otvor na ložisko s vodiči |
51 |
translate([0,0,S01_sila_materialu/2]) |
51 |
translate([0,0,S01_sila_materialu/2]) |
52 |
cylinder (h = S01_sila_materialu+0.01, r=(LO_spodni_prumer+0.2)/2, center = true, $fn=100); |
52 |
cylinder (h = S01_sila_materialu+0.01, r=(LO_spodni_prumer+0.2)/2, center = true, $fn=100); |
53 |
|
53 |
|
54 |
} |
54 |
} |
55 |
|
55 |
|
56 |
//držák ložiska |
56 |
//držák ložiska |
57 |
difference() |
57 |
difference() |
58 |
{ |
58 |
{ |
59 |
cylinder (h = LO_vyska_bez_krytu, r=(LO_spodni_prumer+2*S01_sila_materialu)/2, $fn=100); |
59 |
cylinder (h = LO_vyska_bez_krytu, r=(LO_spodni_prumer+2*S01_sila_materialu)/2, $fn=100); |
60 |
|
60 |
|
61 |
translate([0,0,LO_vyska_bez_krytu]) |
61 |
translate([0,0,LO_vyska_bez_krytu]) |
62 |
cylinder(h=R02_zavit_vyska+100, r1=(LO_spodni_prumer+S01_sila_materialu)/2, r2=(LO_spodni_prumer+2*S01_sila_materialu)/2, center=false,$fn=100); |
62 |
cylinder(h=R02_zavit_vyska+100, r1=(LO_spodni_prumer+S01_sila_materialu)/2, r2=(LO_spodni_prumer+2*S01_sila_materialu)/2, center=false,$fn=100); |
63 |
|
63 |
|
64 |
|
64 |
|
65 |
cylinder (h = LO_vyska_bez_krytu, r=(LO_spodni_prumer)/2, $fn=100); |
65 |
cylinder (h = LO_vyska_bez_krytu, r=(LO_spodni_prumer)/2, $fn=100); |
66 |
} |
66 |
} |
67 |
//držák ložiska doraz |
67 |
/* |
68 |
difference() |
68 |
//držák ložiska doraz |
69 |
{ |
69 |
difference() |
70 |
|
70 |
{ |
71 |
|
71 |
|
72 |
translate([0,0,LO_vyska_bez_krytu]) |
72 |
|
73 |
cylinder(h=2*S01_sila_materialu, r1=(LO_spodni_prumer+2*S01_sila_materialu)/2, r2=(LO_spodni_prumer)/2, center=false,$fn=100); |
73 |
translate([0,0,LO_vyska_bez_krytu]) |
74 |
|
74 |
cylinder(h=2*S01_sila_materialu, r1=(LO_spodni_prumer+2*S01_sila_materialu)/2, r2=(LO_spodni_prumer)/2, center=false,$fn=100); |
75 |
translate([0,0,LO_vyska_bez_krytu]) |
75 |
|
76 |
cylinder(h=2*S01_sila_materialu, r1=(LO_spodni_prumer)/2, r2=(LO_spodni_prumer-2*S01_sila_materialu)/2, center=false,$fn=100); |
76 |
translate([0,0,LO_vyska_bez_krytu]) |
77 |
} |
77 |
cylinder(h=2*S01_sila_materialu, r1=(LO_spodni_prumer)/2, r2=(LO_spodni_prumer-2*S01_sila_materialu)/2, center=false,$fn=100); |
78 |
|
78 |
} |
79 |
} |
79 |
|
80 |
} |
80 |
|
81 |
|
81 |
|
82 |
|
82 |
*/ |
83 |
//sloupek na senzor |
83 |
}} |
84 |
module SLOUPEK() |
84 |
|
85 |
{ |
85 |
//sloupek na senzor |
86 |
translate([0,0,S01_sila_materialu]) |
86 |
module SLOUPEK() |
87 |
difference () |
87 |
{ |
88 |
{ |
88 |
translate([0,0,S01_sila_materialu]) |
89 |
|
89 |
difference () |
90 |
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); |
90 |
{ |
91 |
|
91 |
|
92 |
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]) |
92 |
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); |
93 |
cylinder (h = vyska_matky+0.01, r= (sirka_matky+0.2)/2, $fn=6); |
93 |
|
94 |
|
94 |
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]) |
95 |
translate([0,0,-0.01]) |
95 |
cylinder (h = vyska_matky+0.01, r= (sirka_matky+0.2)/2, $fn=6); |
96 |
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); |
96 |
|
97 |
|
97 |
translate([0,0,-0.01]) |
98 |
translate([0,0,-0.01]) |
98 |
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); |
99 |
cylinder (h = vyska_hlavy_sroubu-S01_sila_materialu, r= (prumer_hlavy_sroubu)/2, $fn=40); |
99 |
|
100 |
|
100 |
translate([0,0,-0.01]) |
101 |
translate([0,0,vyska_hlavy_sroubu-S01_sila_materialu-0.02]) |
101 |
cylinder (h = vyska_hlavy_sroubu-S01_sila_materialu, r= (prumer_hlavy_sroubu)/2, $fn=40); |
102 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
102 |
|
103 |
|
103 |
translate([0,0,vyska_hlavy_sroubu-S01_sila_materialu-0.02]) |
104 |
} |
104 |
cylinder(h=2+0.02, r1=(prumer_hlavy_sroubu)/2, r2=(prumer_sroubu+0.2)/2); |
105 |
} |
105 |
|
106 |
|
106 |
} |
107 |
|
107 |
} |
108 |
|
108 |
|
109 |
WINDGAUGE01A_S01(); |
109 |
|
110 |
|
110 |
|
- |
|
111 |
WINDGAUGE01A_S01(); |
- |
|
112 |
|