Rev Author Line No. Line
4536 jacho 1 $fn=40; // model faces resolution.
2 include <../configuration.scad>
3 include <polyScrewThread_r1.scad>
4  
5 PI=3.141592;
6  
7 //Držák magnetu
8  
9 module WINDGAUGE01A_R03()
10 {
11 //valec se zavitem
12 union()
13 {
14 difference()
15 {
16 union()
17 {
18  
19 //závit
20 translate([0,0,S01_sila_materialu])
21 screw_thread((R03_prumer_zavitu-S01_tolerance_zavit),S01_hloubka_zavitu,55,R04_zavit_vyska+R02_zavit_vyska+R01_zavit_vyska,PI/2,2);
22  
23 //spodní doraz
24 cylinder (h = S01_sila_materialu, r=(R03_prumer_zavitu-S01_tolerance_zavit)/2+S01_sila_materialu, $fn=100);
25  
26  
27  
28 }
29  
30  
31 //odstranění vnitřní výplně
32 translate([0,0,S01_sila_materialu])
33 cylinder (h = R04_zavit_vyska+R02_zavit_vyska+R01_zavit_vyska+0.01, r=(R03_prumer_zavitu-S01_tolerance_zavit)/2-S01_hloubka_zavitu/2-S01_sila_materialu, $fn=100);
34  
35  
36 //otvor na ložisko s vodiči
37 translate([0,0,S01_sila_materialu/2])
38 cylinder (h = S01_sila_materialu+0.01, r=(LO_horni_prumer+0.2)/2, center = true, $fn=100);
39 }
40  
41  
42 difference()
43 {
44 cylinder (h = LO_vyska_horni_doraz-R03_mezera_mezi_statorem_rotorem, r=(LO_horni_prumer+0.2)/2+S01_sila_materialu, $fn=100);
45 translate([0,0,-0.005])
46 cylinder (h = LO_vyska_horni_doraz-R03_mezera_mezi_statorem_rotorem+0.01, r=(LO_horni_prumer+0.2)/2, $fn=100);
47  
48 }
49  
50 translate([0,0,LO_vyska_horni_doraz-R03_mezera_mezi_statorem_rotorem])
51 difference()
52 {
53  
54 cylinder(h=2*S01_sila_materialu, r1=(LO_horni_prumer+0.2)/2+S01_sila_materialu, r2=(LO_horni_prumer+0.2)/2-S01_sila_materialu, center=false);
55  
56  
57 translate([0,0,-0.005])
58  
59 cylinder(h=2*S01_sila_materialu+0.01,r1=(LO_horni_prumer+0.2)/2, r2=(LO_horni_prumer+0.2)/2-2*S01_sila_materialu, center=false);
60  
61  
62  
63 }
64  
65 //držák senzoru
66 translate([-(senzor_sirka+2*S01_sila_materialu)/2,-(senzor_delka+2*S01_sila_materialu)/2,0])
67 difference()
68 {
69  
70 //základní materiál pro drzak senzoru
71 cube([senzor_sirka+2*S01_sila_materialu,senzor_delka+2*S01_sila_materialu,R04_zavit_vyska+R02_zavit_vyska+R01_zavit_vyska+S01_sila_materialu-R01_zavit_vyska],false);
72  
73 //otvor na senozor
74 translate([S01_sila_materialu,S01_sila_materialu,R04_zavit_vyska+R02_zavit_vyska+R01_zavit_vyska+S01_sila_materialu-R01_zavit_vyska-senzor_sila])
75 cube([senzor_sirka,senzor_delka,senzor_sila+0.01],false);
76  
77 //odstraneni vyplně
78 translate([2*S01_sila_materialu,2*S01_sila_materialu,-0.005])
4545 jacho 79 cube([senzor_sirka-2*S01_sila_materialu,senzor_delka-2*S01_sila_materialu,R04_zavit_vyska+R02_zavit_vyska+R01_zavit_vyska+S01_sila_materialu-R01_zavit_vyska-senzor_sila+0.01],false);
4536 jacho 80  
81  
82 translate([(senzor_sirka+2*S01_sila_materialu)/2,0,-0.005])
83 cube([4,senzor_delka+2*S01_sila_materialu+0.01,R04_zavit_vyska+R02_zavit_vyska+R01_zavit_vyska+S01_sila_materialu-R01_zavit_vyska+3],false);
84  
85  
86 }
87 }
88 }
89  
90  
91  
92  
93 WINDGAUGE01A_R03();
94  
95