Rev Author Line No. Line
4550 jacho 1 $fn=40; // model faces resolution.
2  
3 RJ12_otvor_velikost_x=12.85;
4 RJ12_otvor_velikost_y=2*18.4;
5 RJ12_otvor_sila_materialu=3.8;
6 RJ12_vzdalenost_od_okraje=5;
7 RJ12_sire_konektoru=15;
8 RJ12_rozestup_mezi_konektory=3.5;
9 sila_materialu=1.2;
10 roztec_der=10.16;
11 pocet_der_v_ose_y=2;
12 pocet_der_v_ose_x=6;
13 snizeni_rozmeru_desky=0.254;
14 RJ_pocet_konektoru=2;
15  
16 prumer_sroubu=3.2;
17  
18 //konektor();
19 drzak();
20  
21 module drzak(){
22  
23 for(a = [0 : 1 : RJ_pocet_konektoru-1])
24 {
25 translate([a*(RJ12_sire_konektoru+RJ12_rozestup_mezi_konektory)+roztec_der-snizeni_rozmeru_desky,0,0])
26 konektor();
27  
28  
29 }
30  
31 deska();
32 }
33  
34  
35 module konektor(){
36 //bocní vyztuhy
37  
38 translate([sila_materialu/2,0,0])
39 rotate ([0,-90,0])
40 linear_extrude (height = sila_materialu, convexity = 10)
41 polygon(points=[[sila_materialu,RJ12_vzdalenost_od_okraje+RJ12_otvor_sila_materialu],[RJ12_otvor_velikost_y+sila_materialu, RJ12_vzdalenost_od_okraje+RJ12_otvor_sila_materialu],[sila_materialu,roztec_der*pocet_der_v_ose_y-2*snizeni_rozmeru_desky],[sila_materialu,roztec_der*pocet_der_v_ose_y-2*snizeni_rozmeru_desky]]);
42  
43 translate([RJ12_sire_konektoru+RJ12_rozestup_mezi_konektory+sila_materialu/2,0,0])
44 rotate ([0,-90,0])
45 linear_extrude (height = sila_materialu, convexity = 10)
46 polygon(points=[[sila_materialu,RJ12_vzdalenost_od_okraje+RJ12_otvor_sila_materialu],[RJ12_otvor_velikost_y+sila_materialu, RJ12_vzdalenost_od_okraje+RJ12_otvor_sila_materialu],[sila_materialu,roztec_der*pocet_der_v_ose_y-2*snizeni_rozmeru_desky],[sila_materialu,roztec_der*pocet_der_v_ose_y-2*snizeni_rozmeru_desky]]);
47  
48  
49 translate([0,0,0])
50 difference () {
51 cube([RJ12_sire_konektoru+RJ12_rozestup_mezi_konektory,roztec_der*pocet_der_v_ose_y-2*snizeni_rozmeru_desky,sila_materialu+RJ12_otvor_velikost_y]);
52  
53 //tvorba odstupu konektoru od okraje desky
54 translate([-0.005,-0.005,sila_materialu])
55 cube([RJ12_sire_konektoru+RJ12_rozestup_mezi_konektory+0.01,RJ12_vzdalenost_od_okraje+0.005,RJ12_otvor_velikost_y+0.01]);
56  
57  
58  
59 translate([(RJ12_sire_konektoru+RJ12_rozestup_mezi_konektory-RJ12_otvor_velikost_x)/2,0,sila_materialu])
60 //otvor na konektor
61 cube([RJ12_otvor_velikost_x,roztec_der*pocet_der_v_ose_y-2*snizeni_rozmeru_desky+0.01,sila_materialu+RJ12_otvor_velikost_y+0.01]);
62  
63  
64 //odstarněni materialu za drzakem
65 translate([-0.005,RJ12_otvor_sila_materialu+RJ12_vzdalenost_od_okraje,sila_materialu])
66  
67 cube([RJ12_sire_konektoru+RJ12_rozestup_mezi_konektory+0.01,roztec_der*pocet_der_v_ose_y-2*snizeni_rozmeru_desky,sila_materialu+RJ12_otvor_velikost_y]);
68 }
69  
70 }
71  
72 module deska(){
73 difference () {
74 //základní materiál
75 cube([roztec_der*pocet_der_v_ose_x-2*snizeni_rozmeru_desky,roztec_der*pocet_der_v_ose_y-2*snizeni_rozmeru_desky,sila_materialu]);
76  
77  
78 //otvory na šrouby
79 translate([roztec_der/2-snizeni_rozmeru_desky,roztec_der/2-snizeni_rozmeru_desky,-0.005])
80 cylinder(h=sila_materialu+0.01, r=prumer_sroubu/2, center=false);
81  
82 translate([(pocet_der_v_ose_x-1)*roztec_der+roztec_der/2-snizeni_rozmeru_desky,roztec_der/2-snizeni_rozmeru_desky,-0.005])
83 cylinder(h=sila_materialu+0.01, r=prumer_sroubu/2, center=false);
84  
85 translate([roztec_der/2-snizeni_rozmeru_desky,(pocet_der_v_ose_y-1)*roztec_der+roztec_der/2-snizeni_rozmeru_desky,-0.005])
86 cylinder(h=sila_materialu+0.01, r=prumer_sroubu/2, center=false);
87  
88 translate([(pocet_der_v_ose_x-1)*roztec_der+roztec_der/2-snizeni_rozmeru_desky,(pocet_der_v_ose_y-1)*roztec_der+roztec_der/2-snizeni_rozmeru_desky,-0.005])
89 cylinder(h=sila_materialu+0.01, r=prumer_sroubu/2, center=false);
90  
91 }
92  
93  
94 }