Rev 4216 Rev 4222
Line 1... Line 1...
1 vyska = 60; //celeho sloupku 1 vyska = 60; //celeho sloupku
2 prumer_diry = 0; // -  
3 zapust = 6; //vyska zapusteni listy 2 zapust = 6.5; //vyska zapusteni listy
4 vzdalenost_der = 10; //roztec upevňovacich der 3 vzdalenost_der = 10; //roztec upevňovacich der
5 vzdalenost_od_okraje = 10; //vzdalenost stredu upevnovaci diry od kraje desky 4 vzdalenost_od_okraje = 10; //vzdalenost stredu upevnovaci diry od kraje desky
6 vzdalenost_od_diry = 5; //vzdalenost od stredu upevnovaci diry na druhou stranu 5 vzdalenost_od_diry = 5; //vzdalenost od stredu upevnovaci diry na druhou stranu
7 radidus_hrany = 5; //radius zaobleni 6 radidus_hrany = 5; //radius zaobleni
8   7  
-   8 //parametry šroubu
-   9 prumer_sroubu=3.3;
9   10  
10 DISPLAY_height = 100; -  
11 DISPLAY_width = 120; -  
12 DISPLAY_depth = 5; -  
13   -  
14 FP_width = 234; -  
15 FP_height = 125; -  
16 thickness = 2; -  
17 clearance = 0.75; -  
18   11  
-   12 //parametry matice
-   13 prumer_matice=6; //hrany k hraně
-   14 vyska_matice=3; //vyska matice
-   15 posuv_dorazu=0; //pro moznost posuvu dorazu pro vsunutí matice
-   16 matice_sila_materialu=2; //sila materialu pod/nad maticí na ose z
-   17  
-   18 difference () {
19 union () { 19 union () {
20 color("green") 20 color("green")
21 translate([-(vzdalenost_od_okraje-radidus_hrany),-(vzdalenost_od_okraje-radidus_hrany),0]) // center top screw 21 translate([-(vzdalenost_od_okraje-radidus_hrany),-(vzdalenost_od_okraje-radidus_hrany),0]) // center top screw
22 cylinder(vyska, d=(2*radidus_hrany), center=true); 22 cylinder(vyska, d=(2*radidus_hrany), center=true);
23   23  
Line 65... Line 65...
65 translate([vzdalenost_der, vzdalenost_od_diry/2, -(vyska-(2*zapust))/2]) 65 translate([vzdalenost_der, vzdalenost_od_diry/2, -(vyska-(2*zapust))/2])
66 linear_extrude(height = (vyska-(2*zapust))) 66 linear_extrude(height = (vyska-(2*zapust)))
67 square([vzdalenost_der, vzdalenost_od_diry ], center = true); 67 square([vzdalenost_der, vzdalenost_od_diry ], center = true);
68 68
69 } 69 }
-   70  
-   71 //diry na sroub
-   72 translate([0,0,0]) // center top screw
-   73 cylinder(2*vyska, d=(prumer_sroubu), center=true);
-   74  
-   75 translate([vzdalenost_der,0,0]) // center top screw
-   76 cylinder(2*vyska, d=(prumer_sroubu), center=true);
-   77  
-   78 translate([0,vzdalenost_der,0]) // center top screw
-   79 cylinder(2*vyska, d=(prumer_sroubu), center=true);
-   80  
-   81 //diry na matice
-   82 //1. krajni matice
-   83 translate([vzdalenost_der,(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)),((vyska-2*zapust)/2-vyska_matice/2)-matice_sila_materialu]) // center top screw
-   84
-   85 cube([prumer_matice, prumer_matice+posuv_dorazu+vzdalenost_od_diry,vyska_matice], center = true);
-   86  
-   87 translate([vzdalenost_der,(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)),-(((vyska-2*zapust)/2-vyska_matice/2)-matice_sila_materialu)]) // center top screw
-   88
-   89 cube([prumer_matice, prumer_matice+posuv_dorazu+vzdalenost_od_diry,vyska_matice], center = true);
-   90  
-   91  
-   92 //2. krajni matice
-   93 translate([(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)), vzdalenost_der,((vyska-2*zapust)/2-vyska_matice/2)-matice_sila_materialu]) // center top screw
-   94
-   95 cube([ prumer_matice+posuv_dorazu+vzdalenost_od_diry,prumer_matice,vyska_matice], center = true);
-   96  
-   97 translate([(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)), vzdalenost_der,-(((vyska-2*zapust)/2-vyska_matice/2)-matice_sila_materialu)]) // center top screw
-   98
-   99 cube([ prumer_matice+posuv_dorazu+vzdalenost_od_diry,prumer_matice,vyska_matice], center = true);
-   100  
-   101 //prostredni dira
-   102 translate([0,(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)),((vyska)/2-vyska_matice/2)-matice_sila_materialu]) // center top screw
-   103
-   104 cube([prumer_matice, prumer_matice+posuv_dorazu+vzdalenost_od_diry,vyska_matice], center = true);
-   105  
-   106 translate([0,(((((prumer_matice)/2)+posuv_dorazu+vzdalenost_od_diry)/2)-(posuv_dorazu+prumer_matice/2)),-(((vyska)/2-vyska_matice/2)-matice_sila_materialu)]) // center top screw
-   107
-   108 cube([prumer_matice, prumer_matice+posuv_dorazu+vzdalenost_od_diry,vyska_matice], center = true);
-   109  
-   110  
-   111 }