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

83 lines
2.4 KiB
OpenSCAD

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;
lff_tab_l=88;
lff_tab_hole_dia=4;
lff_tab_mt=4;
h_dia=7.75;
// ##############################
module lff_tab(){
difference(){
hull(){
cube([lff_tab_d,lff_tab_mt,lff_tab_l-6*lff_tab_mt],center=true);
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);
}
}
for(x=[lff_tab_l/4,-lff_tab_l/4]){
translate([0,0,x])rotate([90,0,0])#cylinder(h=lff_tab_mt+0.1,d=lff_tab_hole_dia,center=true);
}
}
}
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);
translate([0,-sff_h/2,-sff_l/2-sff_h-15])cube([mt,0.1,0.1],center=true);
}
}
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();
}
}
union(){
// lff, connectors up top
translate([-lff_w/2,-30,0])#sff8300Model(0,8,4,10,0.3,1);
//sff
translate([-sff_w/2,-mt/20,45])#sff8200Model(0,8,0,8,tolerance,5);
}
}
}
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]);
translate([-222.5,-88.5,0])%cube([380,1,1]);