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