Line 1... |
Line 1... |
1 |
use <configuration/bocnice.scad> |
1 |
use <src/bocnice.scad> |
2 |
|
2 |
|
3 |
use <configuration/otvory.scad> |
3 |
use <src/otvory.scad> |
4 |
use <configuration/plbase.scad> |
4 |
use <src/plbase.scad> |
5 |
include <configuration/manufactury_conf.scad> |
5 |
include <src/manufactury_conf.scad> |
6 |
include <configuration.scad> |
6 |
include <configuration.scad> |
7 |
include <configuration/otvory_conf.scad> |
7 |
include <src/otvory_conf.scad> |
8 |
|
8 |
|
9 |
upravena_bocnice(); |
9 |
upravena_bocnice(); |
10 |
|
10 |
|
11 |
//Slouzi pro vytvoreni vlastnich celicek dle potreby |
11 |
//Slouzi pro vytvoreni vlastnich celicek dle potreby |
12 |
|
12 |
|
Line 48... |
Line 48... |
48 |
} |
48 |
} |
49 |
|
49 |
|
50 |
|
50 |
|
51 |
|
51 |
|
52 |
|
52 |
|
- |
|
53 |
//Vytvoreni zadniho celicka krabicky |
- |
|
54 |
//-------------------------------------------------------- |
- |
|
55 |
translate([((pocet_der2-1)*vzdalenost_der)/2,(pocet_der1-1)*vzdalenost_der+vzdalenost_od_okraje+tloustka_bocnice/2,-(vyska_bocnice/2)]) |
53 |
|
56 |
{ |
- |
|
57 |
//složí k posunu otvoru v násobku děr |
- |
|
58 |
posun_z1=6.5; |
- |
|
59 |
translate([-posun_z1*vzdalenost_der,0,0]) |
- |
|
60 |
rotate(a=[0,0,180]) |
- |
|
61 |
IR(tloustka_bocnice,vyska_bocnice); |
- |
|
62 |
|
- |
|
63 |
|
- |
|
64 |
} |
54 |
|
65 |
|
55 |
|
66 |
|
56 |
|
67 |
|
57 |
|
68 |
|
58 |
//Vytvoreni leveho celicka krabicky |
69 |
//Vytvoreni leveho celicka krabicky |
Line 61... |
Line 72... |
61 |
|
72 |
|
62 |
|
73 |
|
63 |
translate([-((pocet_der2-1)*vzdalenost_der)/2-vzdalenost_od_okraje-tloustka_bocnice/2,(pocet_der1-1)*vzdalenost_der,-(vyska_bocnice/2)]) |
74 |
translate([-((pocet_der2-1)*vzdalenost_der)/2-vzdalenost_od_okraje-tloustka_bocnice/2,(pocet_der1-1)*vzdalenost_der,-(vyska_bocnice/2)]) |
64 |
{ |
75 |
{ |
65 |
//složí k posunu otvoru v násobku děr |
76 |
//složí k posunu otvoru v násobku děr |
66 |
posun_l1=10; |
77 |
posun_l1=3.5; |
67 |
translate([0,-posun_l1*vzdalenost_der,0]) |
78 |
translate([0,-posun_l1*vzdalenost_der,0]) |
68 |
rotate(a=[0,0,-90]) |
79 |
rotate(a=[0,0,-90]) |
69 |
USBI2C01A(tloustka_bocnice,vzdalenost_der); |
80 |
IR(tloustka_bocnice,vyska_bocnice); |
70 |
|
81 |
|
71 |
posun_l2=10; |
82 |
posun_l2=10; |
72 |
|
83 |
|
73 |
translate([0,-posun_l2*vzdalenost_der,0]) |
84 |
translate([0,-posun_l2*vzdalenost_der,0]) |
74 |
rotate(a=[0,0,-90]) |
85 |
rotate(a=[0,0,-90]) |
75 |
I2CDIFF01A(tloustka_bocnice,vzdalenost_der); |
86 |
I2CDIFF01A(tloustka_bocnice,vzdalenost_der); |
76 |
|
87 |
|
77 |
posun_l3=10; |
88 |
posun_l3=4.5; |
78 |
translate([0,-posun_l3*vzdalenost_der,0]) |
89 |
translate([0,-posun_l3*vzdalenost_der,0]) |
79 |
rotate(a=[0,0,-90]) |
90 |
rotate(a=[0,0,-90]) |
80 |
MIC338(tloustka_bocnice,vzdalenost_der,vyska_bocnice); |
91 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
81 |
|
92 |
|
82 |
posun_l4=0; |
93 |
posun_l4=0; |
83 |
translate([0,-posun_l4*vzdalenost_der,0]) |
94 |
translate([0,-posun_l4*vzdalenost_der,0]) |
84 |
|
95 |
|
85 |
rotate(a=[0,0,-90]) |
96 |
rotate(a=[0,0,-90]) |
86 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-1,vyska_bocnice); |
97 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
87 |
|
98 |
|
88 |
|
99 |
|
89 |
} |
100 |
} |
90 |
|
101 |
|
91 |
|
102 |
|
Line 95... |
Line 106... |
95 |
//Vytvoreni praveho celicka krabicky |
106 |
//Vytvoreni praveho celicka krabicky |
96 |
//-------------------------------------------------------- |
107 |
//-------------------------------------------------------- |
97 |
translate([+((pocet_der2-1)*vzdalenost_der)/2+vzdalenost_od_okraje+tloustka_bocnice/2,0,-(vyska_bocnice/2)]) |
108 |
translate([+((pocet_der2-1)*vzdalenost_der)/2+vzdalenost_od_okraje+tloustka_bocnice/2,0,-(vyska_bocnice/2)]) |
98 |
{ |
109 |
{ |
99 |
//složí k posunu otvoru v násobku děr |
110 |
//složí k posunu otvoru v násobku děr |
100 |
posun_pr1=10; |
111 |
posun_pr1=3.5; |
101 |
translate([0,posun_pr1*vzdalenost_der,0]) |
112 |
translate([0,posun_pr1*vzdalenost_der,0]) |
102 |
rotate(a=[0,0,90]) |
113 |
rotate(a=[0,0,90]) |
103 |
UNIPOWER03A(tloustka_bocnice,vzdalenost_der); |
114 |
IR(tloustka_bocnice,vyska_bocnice); |
104 |
|
115 |
|
105 |
posun_pr2=10; |
116 |
posun_pr2=10; |
106 |
|
117 |
|
107 |
translate([0,posun_pr2*vzdalenost_der,0]) |
118 |
translate([0,posun_pr2*vzdalenost_der,0]) |
108 |
rotate(a=[0,0,90]) |
119 |
rotate(a=[0,0,90]) |
109 |
I2CDIFF01A(tloustka_bocnice,vzdalenost_der); |
120 |
I2CDIFF01A(tloustka_bocnice,vzdalenost_der); |
110 |
|
121 |
|
111 |
posun_pr3=10; |
122 |
posun_pr3=4.5; |
112 |
translate([0,posun_pr3*vzdalenost_der,0]) |
123 |
translate([0,posun_pr3*vzdalenost_der,0]) |
113 |
rotate(a=[0,0,90]) |
124 |
rotate(a=[0,0,90]) |
114 |
MIC338(tloustka_bocnice,vzdalenost_der,vyska_bocnice); |
125 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
115 |
|
126 |
|
116 |
posun_pr4=0; |
127 |
posun_pr4=0; |
117 |
translate([0,posun_pr4*vzdalenost_der,0]) |
128 |
translate([0,posun_pr4*vzdalenost_der,0]) |
118 |
rotate(a=[0,0,90]) |
129 |
rotate(a=[0,0,90]) |
119 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-1,vyska_bocnice); |
130 |
CHLADICI_OTVORY(tloustka_bocnice,vzdalenost_der,pocet_der1-6,vyska_bocnice); |
120 |
|
131 |
|
121 |
|
132 |
|
122 |
} |
133 |
} |
123 |
|
134 |
|
124 |
|
135 |
|