Copyright 2018 Asoc. Electrónica de Teleco UPM Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. total_width = 109.4 - 2; //locking tabs should be a la altura donde está el borde del hdd (un poco más dentro, de hecho) //tabs width = 11.78; //tabs length = 9.30; //bottom clearance = 3.5; //top clearance = 6; //rail width = 6.85; hdd_x = 101.6; hdd_y = 147; hdd_z = 25.4; hdd_hole1 = 28.50; hdd_hole2 = hdd_hole1 + 101.60; //el agujero más separado del extremo es el del extremo de los conectores holes_z = 6.35; //screw_d = 3.51; screw_d = 3; side_sep = 0.5; //caddy_thick = 3.2; caddy_thick = (total_width - hdd_x - (2*side_sep))/2; side_l = hdd_y - hdd_hole1 + 5; rail_thick = 2.8; rail_width = 6.85; rail_height = 10; rail_length = side_l - 10; back_l = 30; back_h = 20; back_angle = 10; back_thick = 2.8; bottom_h = 2; bottom_tab_width = 12; top_h = 2; top_tab_width = 24; top_tab_l = caddy_thick + 7; top_back_tab_y = 100; ear_l = 30; ear_z = 15.2; ear_thick = caddy_thick; notch_d = 8; notch_l = 9.30; notch_w = 11.6; notch_thick = 2.6; ear_angle = 10; //hdd //color("Crimson")translate([0,0,0])cube([hdd_x,hdd_y,hdd_z]); //hddholder /*translate([-10,hdd_hole1,holes_z])rotate([0,90,0])cylinder(h = 20, r = screw_d/2); translate([-10,hdd_hole2,holes_z])rotate([0,90,0])cylinder(h = 20, r = screw_d/2); translate([-10+hdd_x,hdd_hole1,holes_z])rotate([0,90,0])cylinder(h = 20, r = screw_d/2); translate([-10+hdd_x,hdd_hole2,holes_z])rotate([0,90,0])cylinder(h = 20, r = screw_d/2);*/ $fn = 20; color("MediumSlateBlue"){ translate([0,hdd_hole1,holes_z])rotate([0,90,0])scale([1, 1, 1.5])sphere(r = screw_d/2); translate([0,hdd_hole2,holes_z])rotate([0,90,0])scale([1, 1, 1.5])sphere(r = screw_d/2); translate([0+hdd_x,hdd_hole1,holes_z])rotate([0,90,0])scale([1, 1, 1.5])sphere(r = screw_d/2); translate([0+hdd_x,hdd_hole2,holes_z])rotate([0,90,0])scale([1, 1, 1.5])sphere(r = screw_d/2); translate([-2,hdd_hole1,holes_z])rotate([0,90,0])cylinder(h = 2, r = screw_d); translate([-2,hdd_hole2,holes_z])rotate([0,90,0])cylinder(h = 2, r = screw_d); translate([hdd_x,hdd_hole1,holes_z])rotate([0,90,0])cylinder(h = 2, r = screw_d); translate([hdd_x,hdd_hole2,holes_z])rotate([0,90,0])cylinder(h = 2, r = screw_d); } //sides color("MediumSlateBlue")translate([-caddy_thick-side_sep,hdd_y-side_l,-side_sep-bottom_h])cube([caddy_thick,side_l+side_sep+back_thick,hdd_z+(2*side_sep)+bottom_h]); color("MediumSlateBlue")translate([hdd_x+side_sep,hdd_y-side_l,-side_sep-bottom_h])cube([caddy_thick,side_l+side_sep+back_thick,hdd_z+(2*side_sep)+bottom_h]); //side rails color("MediumSlateBlue")translate([-rail_thick-caddy_thick-side_sep,hdd_y-side_l,holes_z-(rail_width/2)])cube([rail_thick,rail_length,rail_width]); color("MediumSlateBlue")translate([caddy_thick+hdd_x+side_sep,hdd_y-side_l,holes_z-(rail_width/2)])cube([rail_thick,rail_length,rail_width]); //back color("MediumSlateBlue")translate([-caddy_thick-side_sep+1,hdd_y,0])rotate([0,0,back_angle])cube([back_l,back_thick,back_h]); color("MediumSlateBlue")translate([hdd_x+side_sep-back_l+caddy_thick,hdd_y,0])translate([back_l-1,0,back_h])rotate([0,180,0])rotate([0,0,back_angle])cube([back_l,back_thick,back_h]); //bottom //back tab difference(){ color("MediumSlateBlue")translate([-caddy_thick-side_sep,hdd_hole2,-bottom_h-side_sep])cube([hdd_x+2*(caddy_thick+side_sep),bottom_tab_width,bottom_h]); color("MediumSlateBlue")translate([hdd_x/2,hdd_hole2+2,-2-side_sep])rotate([0,180,0])linear_extrude(height = 1) { text("AETEL", center=true, font="Montserrat:style=Bold",size = 8); //translate([40,0,0])text("HDD Caddy", center=true, font="Lato",size = 5); } } //front tab color("MediumSlateBlue")translate([-caddy_thick-side_sep,hdd_hole1,-bottom_h-side_sep])cube([hdd_x+2*(caddy_thick+side_sep),bottom_tab_width,bottom_h]); //top //back tab 1 color("MediumSlateBlue")translate([-caddy_thick-side_sep,top_back_tab_y,hdd_z+side_sep])cube([top_tab_l,top_tab_width,top_h]); //back tab 2 color("MediumSlateBlue")translate([hdd_x+caddy_thick+side_sep-top_tab_l,top_back_tab_y,hdd_z+side_sep])cube([top_tab_l,top_tab_width,top_h]); //front tab 1 color("MediumSlateBlue")translate([-caddy_thick-side_sep,hdd_hole1,hdd_z+side_sep])cube([top_tab_l,top_tab_width,top_h]); //front tab 2 color("MediumSlateBlue")translate([hdd_x+caddy_thick+side_sep-top_tab_l,hdd_hole1,hdd_z+side_sep])cube([top_tab_l,top_tab_width,top_h]); //ears color("MediumSlateBlue")translate([-caddy_thick-side_sep,hdd_y-side_l+1,-side_sep-bottom_h+(hdd_z+(2*side_sep)+bottom_h)/2-ear_z/2])rotate([0,0,270-ear_angle])cube([ear_l,ear_thick,ear_z]); color("MediumSlateBlue")translate([hdd_x+side_sep+caddy_thick,hdd_y+side_sep-side_l,ear_z-side_sep-bottom_h+(hdd_z+(2*side_sep)+bottom_h)/2-ear_z/2])rotate([0,180,0])rotate([0,0,270-ear_angle])cube([ear_l,ear_thick,ear_z]); difference(){ union(){ color("MediumSlateBlue")translate([-caddy_thick-side_sep,hdd_y-side_l+1,-side_sep-bottom_h])rotate([0,0,270-ear_angle])cube([12,ear_thick,hdd_z+(2*side_sep)+bottom_h]); color("MediumSlateBlue")translate([hdd_x+side_sep-back_l+caddy_thick+1,hdd_y+side_sep-side_l,-side_sep-bottom_h])translate([back_l-1,0,hdd_z+(2*side_sep)+bottom_h])rotate([0,180,0])rotate([0,0,270-ear_angle])cube([12,ear_thick,hdd_z+(2*side_sep)+bottom_h]); } color("MediumSlateBlue")union(){ translate([-10,8,-5])rotate([0,90,0])scale([1, 2.4, 1])cylinder(h=hdd_x+20, r = 10); translate([-10,8,hdd_z+3])rotate([0,90,0])scale([1, 2.4, 1])cylinder(h=hdd_x+20, r = 10); } } //notch difference(){ union(){ color("MediumSlateBlue")translate([-8,notch_d,-side_sep-bottom_h+(hdd_z+(2*side_sep)+bottom_h)/2-notch_w/2])rotate([0,0,-22])cube([notch_thick,notch_l,notch_w]); color("MediumSlateBlue")translate([hdd_x+8,notch_d,notch_w-side_sep-bottom_h+(hdd_z+(2*side_sep)+bottom_h)/2-notch_w/2])rotate([0,180,0])rotate([0,0,-22])cube([notch_thick,notch_l,notch_w]); } color("MediumSlateBlue")translate([-10,-10+notch_d,0])cube([hdd_x+20,10,hdd_z]); }