3d-stuff/openscad/own/supermicro_sc808t/fanholder/fanholder-rear.scad

93 lines
3.4 KiB
OpenSCAD
Raw Normal View History

2022-09-12 22:07:50 +02:00
// supermicro SC808 (and others) fan holder for 2x 40x40x28mm fans instead of 3x 40x40x56mm
2022-09-30 19:51:14 +02:00
// by zeus - 2022-09-09 - CC-BY-NC-SA-4.0 - https://git.kostianix.de/zeus/3d-stuff/openscad/own/supermicro_sc808t/
2022-09-12 22:07:50 +02:00
// #####################################
$fn=100;
mt=1.75;
mt_center=22.5;
nipple_offset=5.5;
fan_w=42.0;
fan_h=fan_w;
fan_d=28.75;
fan_holedist=32.2;
fan_block_w=fan_w*0.55;
base_w=2*fan_w+2*mt+mt_center;
base_d=fan_d+2*mt+2*nipple_offset;
base_h=10;
2022-09-13 00:15:12 +02:00
base_hole_dist=157;
2022-09-12 22:07:50 +02:00
base_hole_dia=6.4;
base_hole_sleeve_h=4;
base_hole_sleeve_dia=base_hole_dia+1.5;
base_hole_y_offset=7.5;
base_w_cpl=base_hole_dist+2*mt;
base_w_tab=base_w_cpl/2-mt-mt_center/2-fan_w;
// #####################################
module fanblock(){
union(){
difference(){
cube([base_w,base_d,base_h],center=true);
cube([base_w-2*mt,base_d-2*mt,base_h+0.1],center=true);
for (x=[-mt_center/2-fan_w/2,-(-mt_center/2-fan_w/2)],y=[(fan_d+2*nipple_offset)/2-mt,-(fan_d+2*nipple_offset)/2+mt],z=[mt,-mt]){
translate([x,y,0]){
rotate([90,0,0])translate([0,fan_w/2-base_h/2+mt,z])cylinder(r=fan_w/2,h=2*mt+0.1,center=true);
}
}
}
for (x=[-mt_center/2-fan_w/2,-(-mt_center/2-fan_w/2)],y=[(fan_d+2*nipple_offset)/2-mt,-(fan_d+2*nipple_offset)/2+mt]){
translate([x,y,0]){
difference(){
cube([fan_block_w,2*mt,base_h],center=true);
rotate([90,0,0])translate([0,fan_w/2-base_h/2+mt,0])cylinder(r=fan_w/2,h=2*mt+0.1,center=true);
}
}
}
cube([mt_center,fan_d+2*nipple_offset,base_h],center=true);
}
}
module sleeve(){
difference(){
cylinder(d=base_hole_sleeve_dia,h=base_hole_sleeve_h,center=true);
cylinder(d=base_hole_dia,h=base_hole_sleeve_h+0.1,center=true);
}
}
2022-09-12 23:03:20 +02:00
module sleeve6(){
$fn=6;
difference(){
cylinder(d=base_hole_sleeve_dia+2,h=base_hole_sleeve_h,center=true);
cylinder(d=base_hole_dia+2,h=base_hole_sleeve_h+0.1,center=true);
}
}
2022-09-12 22:07:50 +02:00
module tab(){
difference(){
hull(){
translate([-mt/2,0,0])cube([mt,base_d,mt],center=true);
translate([-base_w_tab,-base_hole_y_offset-mt,0])cylinder(r=base_hole_dia/2-1,h=mt,center=true);
translate([-base_w_tab,+base_hole_y_offset+mt,0])cylinder(r=base_hole_dia/2-1,h=mt,center=true);
}
2022-09-12 23:03:20 +02:00
translate([-base_hole_dist/2+base_w/2,base_hole_y_offset,0])cylinder(d=base_hole_dia+2,h=mt+0.1,center=true,$fn=6);
2022-09-12 22:07:50 +02:00
translate([-base_hole_dist/2+base_w/2,-base_hole_y_offset,0])cylinder(d=base_hole_dia,h=mt+0.1,center=true);
}
2022-09-12 23:03:20 +02:00
translate([-base_hole_dist/2+base_w/2,base_hole_y_offset,base_hole_sleeve_h/2-mt/2])sleeve6();
translate([-base_hole_dist/2+base_w/2,-base_hole_y_offset,base_hole_sleeve_h/2-mt/2])sleeve();
2022-09-12 22:07:50 +02:00
hull(){
translate([-mt/2,0,0])cube([mt,mt,mt],center=true);
translate([-mt/2,0,base_h-mt])cube([mt,mt,mt],center=true);
translate([-mt/2-base_w_tab,0,0])cube([mt,mt,mt],center=true);
}
}
module hole_control(){
for(x=[-base_hole_dist/2,base_hole_dist/2],y=[-base_hole_y_offset,base_hole_y_offset]){
translate([x,y,0])#cylinder(d=base_hole_dia-1,h=4*mt,center=true);
}
}
// #####################################
translate([0,0,base_h/2])fanblock();
translate([-base_w/2,0,mt/2])tab();
2022-09-12 23:03:20 +02:00
rotate([0,0,180])translate([-base_w/2,0,mt/2])mirror([0,1,0])tab();
2022-09-12 22:07:50 +02:00
//hole_control();