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 |
pocet_der_dane_strany=15; |
41 |
posun_od_kraje=1; |
41 |
posun_od_kraje=1; |
42 |
USBI2C01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
42 |
USBI2C01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
43 |
} |
43 |
} |
44 |
} |
44 |
} |
45 |
|
45 |
|
46 |
|
46 |
|
47 |
//Vytvoreni leveho celicka krabicky |
47 |
//Vytvoreni leveho celicka krabicky |
48 |
//-------------------------------------------------------- |
48 |
//-------------------------------------------------------- |
49 |
module celicko_leve() |
49 |
module celicko_leve() |
50 |
{ |
50 |
{ |
51 |
translate([0,0,0]) |
51 |
translate([0,0,0]) |
52 |
difference() { |
52 |
difference() { |
53 |
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); |
54 |
|
54 |
|
55 |
pocet_der_dane_strany=11; |
55 |
pocet_der_dane_strany=11; |
56 |
posun_od_kraje=1; |
56 |
posun_od_kraje=1; |
57 |
|
57 |
|
58 |
RS232SINGLE01A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
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); |
59 |
} |
61 |
} |
60 |
} |
62 |
} |
61 |
|
63 |
|
62 |
|
64 |
|
63 |
|
65 |
|
64 |
//Vytvoreni praveho celicka krabicky |
66 |
//Vytvoreni praveho celicka krabicky |
65 |
//-------------------------------------------------------- |
67 |
//-------------------------------------------------------- |
66 |
module celicko_prave() |
68 |
module celicko_prave() |
67 |
{ |
69 |
{ |
68 |
translate([0,0,0]) |
70 |
translate([0,0,0]) |
69 |
difference() { |
71 |
difference() { |
70 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
72 |
celicko (vyska,zapust,vule_vysky_celicka,pocet_der1,vzdalenost_der,vule_delky_celicka,tloustka_celicka,vule_tlousky,vyska_listy); |
- |
|
73 |
|
- |
|
74 |
posun_od_kraje3=0; |
71 |
|
75 |
|
72 |
MIC338(tloustka_celicka,vyska,zapust,vule_vysky_celicka); |
76 |
MIC338(tloustka_celicka,vyska,zapust,vule_vysky_celicka,posun_od_kraje3,vzdalenost_der); |
73 |
|
77 |
|
74 |
pocet_der_dane_strany=11; |
78 |
pocet_der_dane_strany=11; |
75 |
posun_od_kraje=1; |
79 |
posun_od_kraje=1; |
76 |
UNIPOWER02A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
80 |
UNIPOWER02A(tloustka_celicka,pocet_der_dane_strany,posun_od_kraje,vzdalenost_der,vyska_listy); |
77 |
} |
81 |
} |
78 |
} |
82 |
} |
79 |
barva_predni = "cyan"; |
83 |
barva_predni = "cyan"; |
80 |
barva_zadni = "red"; |
84 |
barva_zadni = "red"; |
81 |
barva_leve = "green"; |
85 |
barva_leve = "green"; |
82 |
barva_prave = "yellow"; |
86 |
barva_prave = "yellow"; |
83 |
|
87 |
|
84 |
//Zobrazeni vzhledu navrhovanych celicek |
88 |
//Zobrazeni vzhledu navrhovanych celicek |
85 |
color(barva_predni) |
89 |
color(barva_predni) |
86 |
translate([0,-50,0]) |
90 |
translate([0,-50,0]) |
87 |
celicko_predni(); |
91 |
celicko_predni(); |
88 |
|
92 |
|
89 |
color(barva_zadni) |
93 |
color(barva_zadni) |
90 |
translate([0,50,0]) |
94 |
translate([0,50,0]) |
91 |
rotate(a=[0,0,180]) |
95 |
rotate(a=[0,0,180]) |
92 |
celicko_zadni(); |
96 |
celicko_zadni(); |
93 |
|
97 |
|
94 |
color(barva_leve) |
98 |
color(barva_leve) |
95 |
translate([-60,0,0]) |
99 |
translate([-60,0,0]) |
96 |
rotate(a=[0,0,270]) |
100 |
rotate(a=[0,0,270]) |
97 |
celicko_leve(); |
101 |
celicko_leve(); |
98 |
|
102 |
|
99 |
color(barva_prave) |
103 |
color(barva_prave) |
100 |
translate([60,0,0]) |
104 |
translate([60,0,0]) |
101 |
rotate(a=[0,0,90]) |
105 |
rotate(a=[0,0,90]) |
102 |
celicko_prave(); |
106 |
celicko_prave(); |
103 |
|
107 |
|