Rev Author Line No. Line
4274 jacho 1 $fn=40; // model faces resolution.
2  
3 prumer_rotoru1=60;
4 vyska_rotoru1=5;
5 vyska_rotoru2=5;
6 prumer_sroubu=3.2;
7 prumer_hlavy_sroubu=6;
4275 jacho 8 vyska_hlavy_sroubu=4;
4274 jacho 9 vyska_matky=3;
10 sirka_matky=6;
11 prumer_orechu=10;
12 sila_materialu=3;
13 sila_materialu_vule=0.2;
14 hloubka_prekryti=2;
15  
16 //lozisko
17 lozisko_prumer_vnitrni=5;
18 lozisko_prumer_vnejsi=16;
19 lozisko_vyska=5;
20 lozisko_prekryv=1.5;
21  
22 //stator1
23 stator1_sila=2;
24  
25 //stator2
26 sila_pod_loziskem=1;
27  
28 //stator3
29 stator3_sila_steny=2;
4275 jacho 30 stator3_vzdalenost_od_steny=1; //definuje vzdalenost hlavy sroubu od steny statrou 4
4274 jacho 31  
32 vule1=2; //vůle mezi statorem a rotorem ze strany
33  
34 //nastevní rotoru2
35 vyska_kryti=5;
36  
37 //lopatka
38 hloubka_uchytu=20;
39 sila_uchytu=12;
40 vyska_uchytu=10;
41 tolerance_uchytu=0.1;
42  
43 //parametry uchytu senzoru
44 roztec_der=10.16;
45 vzdalenost_der_x=2*roztec_der;
46 vzdalenost_der_y=1*roztec_der;
47  
48  
49  
50  
51  
52  
53  
54  
55  
56 difference()
57 {
58 cylinder (h = lozisko_vyska+sila_pod_loziskem, r=(prumer_rotoru1-2*sila_materialu-2*vule1-stator3_sila_steny)/2, center = true, $fn=100);
59  
60  
61 //otvor pro lozisko
62 translate([0,0,sila_pod_loziskem])
63 cylinder (h = lozisko_vyska+0.1, r=(lozisko_prumer_vnejsi+0.1)/2, center = true, $fn=100);
64  
65 //otvor pro hridel rotoru
66 translate([0,0,0])
67 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+2)/2, center = true, $fn=100);
68  
69 //otvor pro sroub 1
70 translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0])
71 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
72  
73 //otvor pro sroub 2
74 rotate(a=[0,0,120])
75 translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0])
76  
77 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
78  
79 //otvor pro sroub 3
80 rotate(a=[0,0,240])
81 translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0])
82  
83 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
84  
85 //otvory pro uchyceni senzoru
86 //otvor pro sroub 1
4275 jacho 87  
4274 jacho 88 translate([(vzdalenost_der_x/2),-vzdalenost_der_y/2,0])
89  
90 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
91  
4275 jacho 92 translate([(vzdalenost_der_x/2),-vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2])
93  
94 cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
95  
96  
97  
98 //otvor pro sroub 2
4274 jacho 99 rotate(a=[0,0,0])
100 translate([(-vzdalenost_der_x/2),-vzdalenost_der_y/2,0])
101  
102 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
103  
4275 jacho 104 translate([(-vzdalenost_der_x/2),-vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2])
105  
106 cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
107  
108  
109  
110  
4274 jacho 111 //otvor pro sroub 1
112 rotate(a=[0,0,0])
113 translate([(vzdalenost_der_x/2),vzdalenost_der_y/2,0])
114  
115 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
116  
4275 jacho 117 translate([(vzdalenost_der_x/2),vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2])
118  
119 cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
120  
121  
4274 jacho 122 //otvor pro sroub 1
123 rotate(a=[0,0,0])
124 translate([(-vzdalenost_der_x/2),vzdalenost_der_y/2,0])
125  
126 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
127  
4275 jacho 128 translate([(-vzdalenost_der_x/2),vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2])
4274 jacho 129  
4275 jacho 130 cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
4274 jacho 131  
132  
133  
134  
135  
136  
137 //otvory pro uchyceni stator 3
138 //otvor pro sroub 1
139 translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0])
4275 jacho 140 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4274 jacho 141  
4275 jacho 142 translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2])
143 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
4274 jacho 144  
4275 jacho 145 //otvor pro sroub 2
146 translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0])
147 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
148  
149 translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2])
150 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
151  
152  
4274 jacho 153 }
154  
155  
156  
157  
158  
159