1
0
mirror of https://github.com/pgrondek/SixInchRack.git synced 2024-11-24 12:52:02 +00:00

Compare commits

...

5 Commits

Author SHA1 Message Date
pgrondek
307464622f Add OrangePi by KronBjorn
https://www.thingiverse.com/thing:2975752
2020-06-15 03:13:33 +02:00
pgrondek
ac8e7480c0 Move TL-SG105 cabinet to separate folder 2020-06-15 03:10:41 +02:00
pgrondek
b1af76936f Add TL-SG105 cabinet by RazziaDK
https://www.thingiverse.com/thing:3674711
2020-06-15 03:08:47 +02:00
pgrondek
772bbcb641 Add Mesh with 3U 2020-06-15 03:00:51 +02:00
pgrondek
3a2c6bece8 Fix library
now you can change sixinch width and all files should render correctly
2020-06-15 02:59:07 +02:00
5 changed files with 108269 additions and 4 deletions

View File

@ -0,0 +1,44 @@
include<../sixinch_library.scad>
include<../../Libs/Mesh-lib.scad>
print_frontplate_sml = true;
if(print_frontplate_sml){ // Frontplate //
square_hole = [];
round_hole = [];
round_peg = [];
screw_side_front = [];
screw_top = [36];
screw_bottom_front = [36];
units = 3;
difference() {
union() {
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
}
translate([25,1.5,0]) {
intersection(){
translate([-1.5,-1.5,0]){
difference() {
mesh(17, 6, 3, 3);
translate([12.5, 6, 0]){cylinder(50,4.5,4.5);}
translate([12.5, 36, 0]){cylinder(50,4.5,4.5);}
translate([95.5, 6, 0]){cylinder(50,4.5,4.5);}
translate([95.5, 36, 0]){cylinder(50,4.5,4.5);}
}
}
cube([105,38,10]);
}
}
translate([0,0,3]) cube([155,130,10]);
}
rotate([180,0,0])
translate([41.5, -26, -3])
linear_extrude(5)
text("USB Power");
}

View File

@ -0,0 +1,192 @@
include<../sixinch_library.scad>
//////////////////
// Orange Pi //
//////////////////
print_frontplate_sml = false;
print_handle_sml = false;
print_cabinet_sml = true;
print_lid = false;
print_rear = false;
print_antennae = false;
dia=11;
if(print_frontplate_sml){ // Frontplate //
square_hole = [];
round_hole = [[87 ,7.5, 2.1],[91 ,7.5, 2.1],[107, unit,dia-2.0]];
round_peg = [];
screw_side_front = [];
screw_top = [36];
screw_bottom_front = [36];
units = 2;
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
}
if(print_handle_sml){ // Handle //
units = 2;
lay_flat_for_print = true;
handle(units,lay_flat_for_print);
}
if(print_cabinet_sml){ // Cabinet //
w=97;
h=70;
screw_bottom_front = [36];
screw_bottom_back = [26];
screw_side_front = [];
round_peg = [[w,h, 6,2.8,4],
[w-40,h, 6,2.8,4],
[w-40,h-42,6,2.8,4],
[w,h-42, 6,2.8,4]];
depth = 80;
units = 2;
difference(){
cabinet(depth,units,screw_bottom_front,round_peg,screw_side_front,screw_bottom_back);
}
}
if(print_lid){ // Lid //
depth = 80;
units = 2;
screw_front = [36];//mm
screw_back = [36];//mm
lid(depth,2,screw_front,screw_back);
}
if(print_rear){ // Back plate //
square_hole = [[69 ,3, 17, 15] , [88 ,4, 6, 14.5] ];
round_hole = [[45,5,5],[45,1.5,5] ];
screw_top = [36];//mm
screw_bottom = [26];//mm
screw_side = [];
depth = 98;
units = 2;
back_plate(units,depth,screw_top,screw_bottom,screw_side,square_hole,round_hole);
}
///////////////////////////////
// Customization //
///////////////////////////////
if(print_cabinet_sml){ // Cabinet fan //
shift =20;
difference(){
translate([36,14,69-shift]){
rotate([0,0,55]){
cube([40,26+3,26+3],center=true); //25x25x10mm fan
}
}
//fan duct
translate([36,14,69-shift]){
rotate([0,0,55]){
cube([52,26,26],center=true); //25x25x10mm fan
}
}
//cutoff inside
translate([36,14,69-shift]){
rotate([0,0,55]){
translate([11,0,0]){
cube([22,32,32],center=true); //25x25x10mm fan
}
}
}
//cutoff bottom
translate([0,-20,0]){
cube([200,20,200]);
}
//cutoff side
cube([20,20,100]);
}
}
if(print_antennae){
//outside
len = 13;
translate([100,30,3]){
difference(){
union(){
rotate([0,90,0]){
cylinder(d=dia,h=len);
}
translate([13,0,0]){sphere(d=dia);}
translate([13,0,0]){cylinder(d=dia,h=dia/2);}
translate([len/2,0,dia/4]){cube([13,dia,dia/2],center=true);}
}
//negative
union(){
rotate([0,90,0]){
translate([0,0,-0.5]){cylinder(d=5.5,h=len+1); }
}
translate([len,0,0]){sphere(d=dia-4);}
translate([13,0,-0.5]){cylinder(d=dia-2,h=dia/2+1);}
}
}
}
//inside
translate([100,unit,-0]){
difference(){
union(){
translate([13,0,0]){cylinder(d=dia-2.5,h=5.5);}
translate([13,0,5.5]){cylinder(d=dia+4,h=3);}
}
translate([13,0,-1]){cylinder(d=dia-4.5,h=10);}
translate([13,0,4]){
for(i=[0:22.5:360]){
rotate([0,0,i]){
translate([9,0,0]){
cylinder(d=4,h=5);
}
}
}
}
}
//spring
difference(){
union(){
translate([23,0,5.5]){
cylinder(d=3.5,h=3);
}
}
translate([22.2,-5,0]){cube([5,10,15]);}
}
translate([22.2,-2,5.5]){ cube([1,20,3]);}
translate([22.7,20,5.5]){
cylinder(d=6,h=3);
}
}
}

View File

@ -0,0 +1,85 @@
include<../sixinch_library.scad>
//
///////////////////////////////
// Raspberry Pi 3 Model B //
///////////////////////////////
print_frontplate_sml = false;
print_handle_sml = false;
print_cabinet_sml = true;
print_lid = false;
print_rear = false;
if(print_frontplate_sml){ // Frontplate //
square_hole = [];
round_hole = [];
round_peg = [];
screw_side_front = [];
screw_top = [36];
screw_bottom_front = [36];
units = 3;
frontplate(units,square_hole,round_hole,round_peg,screw_side_front,screw_top,screw_bottom_front);
}
if(print_handle_sml){ // Handle //
units = 3;
lay_flat_for_print = true;
handle(units,lay_flat_for_print);
}
if(print_cabinet_sml){ // Cabinet //
w=88;
h=70;
screw_bottom_front = [36];
screw_side_front = [];
round_peg = [[40, 45, 15, 0, 15], // Pillar in front of PowerPort 6
[90, 45, 15, 0, 15], // Pillar in front of PowerPort 6
[10, 80, 10, 0, 15], // Pillar to the near right of PowerPort 6
[10, 120, 10, 0, 15], // Pillar to the far right of PowerPort 6
[60, 110, 65, 0, 8], // Pillar under the PowerPort 6
];
depth = 155;
units = 3;
cabinet(depth,units,screw_bottom_front,round_peg,screw_side_front);
}
if(print_lid){ // Lid //
depth = 155;
units = 3;
screw_front = [36];//mm
screw_back = [36];//mm
lid(depth,units,screw_front,screw_back);
}
if(print_rear){ // Back plate //
square_hole = [[14 ,12, 80, 16]];
round_hole = [[6,5,6],[6,1,6]];
screw_top = [36];//mm
screw_bottom = [36];//mm
screw_side = [];
depth = 155;
units = 3;
back_plate(units,depth,screw_top,screw_bottom,screw_side,square_hole,round_hole);
}

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ $fn = 50*1;
//Constants, do not change !
sixinch = 155*1; // cm = 6"
width = 155-20-20; // 11.5cm between rails
width = sixinch-20-20; // 11.5cm between rails
unit = (44.5/19)*6; // 1U
gauge = 3*1;
gauge_box = 2*1;
@ -185,8 +185,9 @@ module box(dp,u,screw_bottom_front,round_peg,screw_side_front, remove_middle){
difference(){
translate([20,0,gauge]){
difference(){
cube([115,u*unit,dp]);
translate([gauge_box,gauge_box,-1]){ cube([115-gauge_box*2,u*unit,dp+2]);}
cube_width = sixinch - 40;
cube([cube_width,u*unit,dp]);
translate([gauge_box,gauge_box,-1]){ cube([cube_width-gauge_box*2,u*unit,dp+2]);}
}
}
//CHIMNEY
@ -298,8 +299,9 @@ module lid(dp,u,screw_front,screw_back, remove_middle=false){
}
//lid
cube_width = sixinch - 40;
translate([20+gauge_box+slip,u*unit-gauge_box,gauge]){
cube([115-gauge_box*2-slip*2,gauge_box,dp]);
cube([cube_width-gauge_box*2-slip*2,gauge_box,dp]);
}
//back rest
translate([sixinch/2-40,u*unit-gauge_box-2,gauge+dp-2-gauge_box]){