Rev Author Line No. Line
4277 jacho 1 $fn=40; // model faces resolution.
4288 jacho 2 //include <../configuration.scad>
4277 jacho 3  
4 module stator2(lozisko_vyska,sila_pod_loziskem,prumer_rotoru1,sila_materialu,vule1,stator3_sila_steny,lozisko_prumer_vnejsi,lozisko_prumer_vnitrni,lozisko_prekryv,
5 prumer_sroubu,
6 lozisko_vyska,vzdalenost_der_x,vzdalenost_der_y,vyska_hlavy_sroubu,prumer_hlavy_sroubu,prumer_rotoru1,stator3_vzdalenost_od_steny)
4297 jacho 7 {
8 difference()
9 {
10 cylinder (h = lozisko_vyska+sila_pod_loziskem, r=(prumer_rotoru1-2*sila_materialu-2*vule1-stator3_sila_steny-0.5)/2, center = true, $fn=100);
4277 jacho 11  
12  
4297 jacho 13 //otvor pro lozisko
14 translate([0,0,sila_pod_loziskem])
15 cylinder (h = lozisko_vyska+0.1, r=(lozisko_prumer_vnejsi+0.1)/2, center = true, $fn=100);
4277 jacho 16  
4297 jacho 17 //otvor pro hridel rotoru
18 translate([0,0,0])
19 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=(lozisko_prumer_vnitrni+2*lozisko_prekryv+2)/2, center = true, $fn=100);
4277 jacho 20  
4297 jacho 21 //otvor pro sroub 1
22 translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0])
23 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4277 jacho 24  
4297 jacho 25 //otvor pro sroub 2
26 rotate(a=[0,0,120])
27 translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0])
28 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4277 jacho 29  
4297 jacho 30 //otvor pro sroub 3
31 rotate(a=[0,0,240])
32 translate([(lozisko_prumer_vnejsi+prumer_sroubu+5)/2,0,0])
33 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4277 jacho 34  
35 //otvory pro uchyceni senzoru
4297 jacho 36  
37 //otvor pro sroub 1
4277 jacho 38 translate([(vzdalenost_der_x/2),-vzdalenost_der_y/2,0])
4297 jacho 39 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4277 jacho 40  
4297 jacho 41 translate([(vzdalenost_der_x/2),-vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2])
42 cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
4277 jacho 43  
44  
45 //otvor pro sroub 2
4297 jacho 46 rotate(a=[0,0,0])
47 translate([(-vzdalenost_der_x/2),-vzdalenost_der_y/2,0])
48 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4277 jacho 49  
4297 jacho 50 translate([(-vzdalenost_der_x/2),-vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2])
51 cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
4277 jacho 52  
4297 jacho 53 //otvor pro sroub 3
4277 jacho 54 rotate(a=[0,0,0])
55 translate([(vzdalenost_der_x/2),vzdalenost_der_y/2,0])
4297 jacho 56 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4277 jacho 57  
4297 jacho 58 translate([(vzdalenost_der_x/2),vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2])
59 cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
4277 jacho 60  
61  
4297 jacho 62 //otvor pro sroub 4
63 rotate(a=[0,0,0])
64 translate([(-vzdalenost_der_x/2),vzdalenost_der_y/2,0])
65 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4277 jacho 66  
4297 jacho 67 translate([(-vzdalenost_der_x/2),vzdalenost_der_y/2,(lozisko_vyska+sila_pod_loziskem-vyska_hlavy_sroubu)/2])
68 cylinder (h = vyska_hlavy_sroubu+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
4277 jacho 69  
70  
71 //otvory pro uchyceni stator 3
72 //otvor pro sroub 1
4297 jacho 73 translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0])
74 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4277 jacho 75  
4297 jacho 76 translate([0,(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2])
77 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
4277 jacho 78  
79 //otvor pro sroub 2
4297 jacho 80 translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,0])
81 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_sroubu/2, center = true, $fn=100);
4277 jacho 82  
4297 jacho 83 translate([0,-(prumer_rotoru1-2*sila_materialu-2*vule1-2*stator3_sila_steny-prumer_hlavy_sroubu-2*stator3_vzdalenost_od_steny)/2,2])
84 cylinder (h = lozisko_vyska+sila_pod_loziskem+0.1, r=prumer_hlavy_sroubu/2, center = true, $fn=100);
4277 jacho 85  
4297 jacho 86 }
4277 jacho 87  
4297 jacho 88 }
4277 jacho 89  
90  
91  
92