3d-stuff/openscad/own/supermicro_sc808t/hdd-holder/SCAD/hdd-holder.scad

83 lines
2.4 KiB
OpenSCAD
Raw Normal View History

2022-09-20 19:05:22 +02:00
use <./modules/disk_lff.scad>
use <./modules/disk_sff.scad>
tolerance=0.3;
mt=3;
$fn=25;
lff_w=101.60+tolerance;
lff_l=147.00+tolerance;
lff_h=28.50+tolerance;
sff_w=69.85+tolerance;
sff_l=100.45+tolerance;
sff_h=8.50+tolerance;
f1_w=15;
f1_h=17.5;
f1_l=167.5;
f2_w=32.5;
f2_h=20;
f2_l=167.5;
lff_tab_d=9;
2022-09-22 14:17:59 +02:00
lff_tab_l=88;
2022-09-20 19:05:22 +02:00
lff_tab_hole_dia=4;
lff_tab_mt=4;
h_dia=7.75;
// ##############################
module lff_tab(){
difference(){
hull(){
2022-09-20 22:12:14 +02:00
cube([lff_tab_d,lff_tab_mt,lff_tab_l-6*lff_tab_mt],center=true);
2022-09-20 19:05:22 +02:00
for(x=[lff_tab_l/2+lff_tab_mt/2,-lff_tab_l/2-mt/2],y=[-lff_tab_d/2]){
translate([y,0,x])#cube([0.1,lff_tab_mt,0.1],center=true);
}
}
2022-09-20 22:12:14 +02:00
for(x=[lff_tab_l/4,-lff_tab_l/4]){
2022-09-21 07:47:54 +02:00
translate([0,0,x])rotate([90,0,0])#cylinder(h=lff_tab_mt+0.1,d=lff_tab_hole_dia,center=true);
2022-09-20 19:05:22 +02:00
}
}
}
module frame(){
difference(){
union(){
translate([0,-(lff_h/2+mt/2-tolerance-0.1),lff_l/2])cube([lff_w+2*mt,lff_h,lff_l],center=true); //lff-box
for(x=[-(sff_w/2+mt/2+0.1),(sff_w/2+mt/2+0.1)]){
translate([x,mt+tolerance,sff_l/2+42.9]){
hull(){
cube([mt,sff_h,sff_l],center=true);
2022-09-20 22:12:14 +02:00
translate([0,-sff_h/2,-sff_l/2-sff_h-15])cube([mt,0.1,0.1],center=true);
2022-09-20 19:05:22 +02:00
}
}
2022-09-22 14:17:59 +02:00
translate([lff_tab_d/2+lff_w/2+mt,-lff_h-sff_h/2+2*mt-0.7,lff_l/2-6])lff_tab();
mirror([1,0,0])translate([lff_tab_d/2+lff_w/2+mt,-lff_h-sff_h/2+2*mt-0.7,lff_l/2-6])lff_tab();
2022-09-20 19:05:22 +02:00
}
}
union(){
// lff, connectors up top
2022-09-21 07:47:54 +02:00
translate([-lff_w/2,-30,0])#sff8300Model(0,8,4,10,0.3,1);
2022-09-20 19:05:22 +02:00
//sff
2022-09-21 07:47:54 +02:00
translate([-sff_w/2,-mt/20,45])#sff8200Model(0,8,0,8,tolerance,5);
2022-09-20 19:05:22 +02:00
}
}
}
module mount(){
difference(){
cylinder(d=h_dia+mt,h=mt+1,center=true);
cylinder(d=h_dia,h=mt+2,center=true);
}
}
// #############################
translate([94.25,-85,30+mt/2])rotate([90,0,180])frame();
//translate([94.25-25-lff_w,-85,30+mt/2])rotate([90,0,180])frame();
//translate([94.25-25-lff_w-25-lff_w,-85,30+mt/2])rotate([90,0,180])frame();
%linear_extrude(10)scale(0.75)import("IMG/hdds.svg",center=true);
translate([155,-78.5,0])%cube([1,157,1]);
2022-09-20 23:01:41 +02:00
translate([-222.5,-88.5,0])%cube([380,1,1]);