4551 |
jacho |
1 |
include <../configuration.scad> |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
module I2CDIFF01A(){ |
|
|
5 |
|
|
|
6 |
I2CDIFF01A_sirka_kon=15; //sirka konektoru |
|
|
7 |
I2CDIFF01A_vyska_kon=14; //vyska konektoru |
|
|
8 |
I2CDIFF01A_sirka_mod_otvory=4; //kolik modul zabira der |
|
|
9 |
I2CDIFF01A_vyska_nad_plbase=7; //jak je vzdálen konektor nad plbase |
|
|
10 |
|
|
|
11 |
|
|
|
12 |
translate([vzdalenost_der*(I2CDIFF01A_sirka_mod_otvory-1)/2,I2CDIFF01A_vyska_nad_plbase+I2CDIFF01A_vyska_kon/2,D02_sila_materialu/2]) |
|
|
13 |
cube(size = [I2CDIFF01A_sirka_kon,I2CDIFF01A_vyska_kon,D02_sila_materialu+0.4], center = true); |
|
|
14 |
|
|
|
15 |
} |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
module RJ12_2x2(){ |
|
|
19 |
|
|
|
20 |
I2CDIFF01A_sirka_kon=13; //sirka konektoru |
|
|
21 |
I2CDIFF01A_vyska_kon=33; //vyska konektoru |
|
|
22 |
I2CDIFF01A_sirka_mod_otvory=6; //kolik modul zabira der |
|
|
23 |
I2CDIFF01A_vyska_nad_plbase=6; //jak je vzdálen konektor nad plbase |
|
|
24 |
|
|
|
25 |
//parametry s držáku rj12 |
|
|
26 |
RJ12_sire_konektoru=15; |
|
|
27 |
RJ12_rozestup_mezi_konektory=3.5; |
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
translate([vzdalenost_der/2+(RJ12_rozestup_mezi_konektory+RJ12_sire_konektoru)/2,I2CDIFF01A_vyska_nad_plbase+I2CDIFF01A_vyska_kon/2,D02_sila_materialu/2]) |
|
|
32 |
cube(size = [I2CDIFF01A_sirka_kon,I2CDIFF01A_vyska_kon,D02_sila_materialu+0.4], center = true); |
|
|
33 |
|
|
|
34 |
translate([vzdalenost_der/2+(RJ12_rozestup_mezi_konektory+RJ12_sire_konektoru)*3/2,I2CDIFF01A_vyska_nad_plbase+I2CDIFF01A_vyska_kon/2,D02_sila_materialu/2]) |
|
|
35 |
cube(size = [I2CDIFF01A_sirka_kon,I2CDIFF01A_vyska_kon,D02_sila_materialu+0.4], center = true); |
|
|
36 |
|
|
|
37 |
} |