In my camper I have a very old WD TVLive Media player. I say old because they stopped making them over a decade ago. It has several limitations but one is being able to read a maximum of 2TB HDD. Until now the HDD have either been velcro’d down but I decided to make a container that will hold the three I have.
First I designed the basic shape in OpenScad:
This was the code:
// HHD Holder for Camper
//Variables
thk=3; //Thickness of walls
hddwide=82; //width of HDD
hdd1=21; //depth of HDD TV Disk 1
hdd2=15; //depth of HDD Movie and TV Disk2
hdd3=12.5; //depth of HDD Movie and TV Disk2
hddhite=110; //Height of HDD
tot=110; //total height
scrw=5; //screw diameter
scrwhd=6.6; //Screw head diameter
fit=2; //Fit allowance
fxrad=scrwhd; //fixing width
wide=hddwide+fit;
dep1=hdd1+fit;
dep2=hdd2+fit;
dep3=hdd3+fit;
hite=hddhite*0.7;
//End variables
$fn=60;
translate([0,0,0])container(dep1);
translate([0,dep1+thk,0])container(dep2);
translate([0,dep1+dep2+(thk*2),0])container(dep3);
//Mounting
translate([(wide+(thk*2)),0,scrw+hite+thk]){
rotate([0,90,90]){
difference(){
translate([0,0,0])fixing();
translate([0,0,-1])cylinder(thk*2,d=scrw);
translate([0,wide+(thk*2),-1])cylinder(thk*2,d=scrw) ;
}
}
}
module fixing(){
hull(){
translate([0,0,0])cylinder(thk,r=fxrad);
translate([0,wide+(thk*2),0])cylinder(thk,r=fxrad) ;
}
}
module container(hdd){
difference(){
cube([wide+(thk*2),hdd +(thk*2),hite+thk]);
translate([thk,thk,thk])cube([wide,hdd,(hite)+1]);
}
}
I made a couple of test pieces to check for fit and make the appropriate adjustments in the code before printing the final object.
.
Not elegant but practical