4241 |
jacho |
1 |
use <configuration/celicko.scad> |
|
|
2 |
use <configuration/sloupek.scad> |
|
|
3 |
use <configuration/lista.scad> |
4246 |
jacho |
4 |
use <configuration/plbase.scad> |
|
|
5 |
use <uravena_celicka.scad> |
|
|
6 |
use <configuration/otvory.scad> |
4241 |
jacho |
7 |
|
4246 |
jacho |
8 |
include <configuration/manufactury_conf.scad> |
4241 |
jacho |
9 |
include <configuration.scad> |
4246 |
jacho |
10 |
include <configuration/otvory_conf.scad> |
4241 |
jacho |
11 |
|
|
|
12 |
//Slouzi pro vytvoreni vlastnich celicek dle potreby |
|
|
13 |
|
|
|
14 |
//Vytvoreni predniho celicka krabicky |
|
|
15 |
//-------------------------------------------------------- |
|
|
16 |
module celicko_predni() |
|
|
17 |
difference() { |
4246 |
jacho |
18 |
union() { |
|
|
19 |
|
|
|
20 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy,vzdalenost_der_x,vzdalenost_der_y,prumer_otvoru,prumer_sloupku,ramecek_x,ramecek_y,ramecek_vyska); |
4241 |
jacho |
21 |
|
4246 |
jacho |
22 |
otvor_LCD2_16_sloupky(vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy,vzdalenost_der_x,vzdalenost_der_y,prumer_otvoru,prumer_sloupku,ramecek_x,ramecek_y,ramecek_vyska); |
|
|
23 |
} |
|
|
24 |
|
|
|
25 |
otvor_LCD2_16_diry(vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy,vzdalenost_der_x,vzdalenost_der_y,prumer_otvoru,prumer_sloupku,ramecek_x,ramecek_y,ramecek_vyska); |
4241 |
jacho |
26 |
|
|
|
27 |
} |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
4246 |
jacho |
31 |
|
4241 |
jacho |
32 |
//Vytvoreni zadniho celicka krabicky |
|
|
33 |
//-------------------------------------------------------- |
|
|
34 |
module celicko_zadni() |
|
|
35 |
{ |
|
|
36 |
translate([0,0,0]) |
|
|
37 |
difference() { |
|
|
38 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der2,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
|
|
39 |
|
4298 |
jacho |
40 |
pocet_der_dane_strany=15; |
|
|
41 |
posun_od_kraje=1; |
|
|
42 |
USBI2C01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
4241 |
jacho |
43 |
} |
|
|
44 |
} |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
//Vytvoreni leveho celicka krabicky |
|
|
48 |
//-------------------------------------------------------- |
|
|
49 |
module celicko_leve() |
|
|
50 |
{ |
|
|
51 |
translate([0,0,0]) |
|
|
52 |
difference() { |
|
|
53 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
|
|
54 |
|
4298 |
jacho |
55 |
pocet_der_dane_strany=11; |
|
|
56 |
posun_od_kraje=1; |
|
|
57 |
|
4421 |
jacho |
58 |
//RS232SINGLE01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
|
|
59 |
|
|
|
60 |
I2CDIFF01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
4241 |
jacho |
61 |
} |
|
|
62 |
} |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
//Vytvoreni praveho celicka krabicky |
|
|
67 |
//-------------------------------------------------------- |
|
|
68 |
module celicko_prave() |
|
|
69 |
{ |
|
|
70 |
translate([0,0,0]) |
|
|
71 |
difference() { |
|
|
72 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
4421 |
jacho |
73 |
|
|
|
74 |
posun_od_kraje3=0; |
|
|
75 |
|
|
|
76 |
MIC338(tloustka_celicka,vyska,zapust,vule_vysky_celicka,posun_od_kraje3,vzdalenost_der); |
4298 |
jacho |
77 |
|
|
|
78 |
pocet_der_dane_strany=11; |
|
|
79 |
posun_od_kraje=1; |
|
|
80 |
UNIPOWER02A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
4241 |
jacho |
81 |
} |
|
|
82 |
} |
|
|
83 |
barva_predni = "cyan"; |
|
|
84 |
barva_zadni = "red"; |
|
|
85 |
barva_leve = "green"; |
|
|
86 |
barva_prave = "yellow"; |
|
|
87 |
|
|
|
88 |
//Zobrazeni vzhledu navrhovanych celicek |
|
|
89 |
color(barva_predni) |
|
|
90 |
translate([0,-50,0]) |
|
|
91 |
celicko_predni(); |
|
|
92 |
|
|
|
93 |
color(barva_zadni) |
|
|
94 |
translate([0,50,0]) |
|
|
95 |
rotate(a=[0,0,180]) |
|
|
96 |
celicko_zadni(); |
|
|
97 |
|
|
|
98 |
color(barva_leve) |
|
|
99 |
translate([-60,0,0]) |
|
|
100 |
rotate(a=[0,0,270]) |
|
|
101 |
celicko_leve(); |
|
|
102 |
|
|
|
103 |
color(barva_prave) |
|
|
104 |
translate([60,0,0]) |
|
|
105 |
rotate(a=[0,0,90]) |
|
|
106 |
celicko_prave(); |
|
|
107 |
|