hd cableholder_spacer work, top cover adjustments, other changes

This commit is contained in:
Edward Kisiel
2025-04-14 20:49:57 -04:00
parent c151a9047b
commit 53b242440f
5 changed files with 39 additions and 16 deletions

View File

@@ -28,16 +28,20 @@
*/ */
module cableholder_spacer(size = [9.4,20,6]) { module cableholder_spacer(length) {
// size = [9.4,16,6]; size = [9.4,16,6];
adj = .01;
$fn = 90; $fn = 90;
translate([0,size[2]/2,-5]) rotate([90,0,0]) translate([0,size[2]/2,-5]) rotate([90,0,0])
difference() { difference() {
translate([size[0]/2,size[0]/2,0]) rotate([0,0,90]) slot(size[0],size[1],size[2]); union() {
#translate([-1,5,3]) rotate([0,90,0]) cylinder(d=3.2, h=12); translate([size[0]/2,size[0]/2,0]) rotate([0,0,90]) long_slot(size[0],size[1],size[2]);
translate([-1,7.5,-1]) cube([2,20,9]); translate([-length,5,3]) rotate([0,90,0]) cylinder(d=6, h=length+1);
translate([5,9.5,-1]) rotate([0,0,90]) slot(4.5,13,9); }
#translate([-length-adj,5,3]) rotate([0,90,0]) cylinder(d=3.2, h=length+size[0]+adj);
translate([-1,8,-1]) cube([2,20,9]);
translate([5,9.5,-1]) rotate([0,0,90]) long_slot(4.5,11,9);
translate([3,20,-1]) rotate([0,0,45]) cube([2,6,9]); translate([3,20,-1]) rotate([0,0,45]) cube([2,6,9]);
} }
} }

View File

@@ -512,13 +512,13 @@ echo(pcb_depth+case_offset_y-10);
// bottom cover pattern // bottom cover pattern
if(bottom_cover_pattern != "solid") { if(bottom_cover_pattern != "solid") {
if(bottom_cover_pattern == "hex_5mm") { if(bottom_cover_pattern == "hex_5mm") {
translate([1,0,-floorthick]) vent_hex((width)/3.75,(depth)/6,floorthick+4,5,1.5,"horizontal"); translate([1,0,-floorthick]) vent_hex(width/3.75,depth/6,floorthick+4,5,1.5,"horizontal");
} }
if(bottom_cover_pattern == "hex_8mm") { if(bottom_cover_pattern == "hex_8mm") {
translate([1,2,-floorthick]) vent_hex((width)/5.5,(depth)/9.5,floorthick+4,8,1.5,"horizontal"); translate([1,2,-floorthick]) vent_hex(width/5.5,depth/9.5,floorthick+4,8,1.5,"horizontal");
} }
if(bottom_cover_pattern == "linear_vertical") { if(bottom_cover_pattern == "linear_vertical") {
translate([0,-gap,-floorthick]) vent(wallthick,depth-2*wallthick-gap,floorthick+4,1,1,(width-2*wallthick-gap)/4,"horizontal"); #translate([0,-gap,-floorthick]) vent(wallthick,depth-2*wallthick-gap,floorthick+4,1,1,(width-2*wallthick-gap)/4,"horizontal");
} }
if(bottom_cover_pattern == "linear_horizontal") { if(bottom_cover_pattern == "linear_horizontal") {
translate([-gap,-gap,-floorthick]) vent(width-2*wallthick-gap,wallthick,floorthick+4,1,(depth-2*wallthick-gap)/3,1,"horizontal"); translate([-gap,-gap,-floorthick]) vent(width-2*wallthick-gap,wallthick,floorthick+4,1,(depth-2*wallthick-gap)/3,1,"horizontal");

View File

@@ -268,7 +268,7 @@ module case_side(case_design, side) {
// hd holes for bays // hd holes for bays
for( i=[0:1:hd_bays-1]) { for( i=[0:1:hd_bays-1]) {
translate([-gap,-(3*wallthick)-gap+hd_y_position,hd_z_position+(hd_space+27.1)*i]) translate([-gap+adj,-(3*wallthick)-gap+hd_y_position,hd_z_position+(hd_space+27.1)*i])
rotate([0,0,0]) hd_holes(3.5, "portrait", "both", sidethick+2); rotate([0,0,0]) hd_holes(3.5, "portrait", "both", sidethick+2);
} }

View File

@@ -460,10 +460,21 @@ module case_top(case_design) {
// top cover pattern // top cover pattern
if(top_cover_pattern != "solid") { if(top_cover_pattern != "solid") {
if(top_cover_pattern == "hex_5mm") { if(top_cover_pattern == "hex_5mm") {
translate([1,0,case_z-(2*floorthick)]) vent_hex((width)/3.75,(depth)/6,floorthick+4,5,1.5,"horizontal"); if(case_design == "panel_nas") {
translate([6,5,case_z-(2*floorthick)]) vent_hex((width-10)/3.75,(depth-10)/6,floorthick+4,5,1.5,"horizontal");
}
else {
translate([1,0,case_z-(2*floorthick)]) vent_hex(width/3.75,depth/6,floorthick+4,5,1.5,"horizontal");
}
} }
if(top_cover_pattern == "hex_8mm") { if(top_cover_pattern == "hex_8mm") {
translate([1,2,case_z-(2*floorthick)]) vent_hex((width)/5.5,(depth)/9.5,floorthick+4,8,1.5,"horizontal");
if(case_design == "panel_nas") {
translate([2,5,case_z-(2*floorthick)]) vent_hex(width/5.5,depth/9.5,floorthick+4,8,1.5,"horizontal");
}
else {
translate([1,2,case_z-(2*floorthick)]) vent_hex(width/5.5,depth/9.5,floorthick+4,8,1.5,"horizontal");
}
} }
if(top_cover_pattern == "linear_vertical") { if(top_cover_pattern == "linear_vertical") {
translate([0,-gap,case_z-(2*floorthick)]) translate([0,-gap,case_z-(2*floorthick)])

View File

@@ -670,10 +670,18 @@ if (view == "model") {
sbc(sbc_model, cooling, fan_size, gpio_opening, uart_opening, false); sbc(sbc_model, cooling, fan_size, gpio_opening, uart_opening, false);
} }
for( i=[0:1:hd_bays-1]) { for( i=[0:1:hd_bays-1]) {
// translate([-gap,-(3*wallthick)-gap+hd_y_position,hd_z_position+(hd_space+27.1)*i]) translate([-gap,-(3*wallthick)-gap+hd_y_position,hd_z_position+(hd_space+27.1)*i])
// rotate([0,0,0]) hd35("portrait", [false,0,0,"default"]); rotate([0,0,0]) hd35("portrait", [false,0,0,"default"]);
translate([-gap,-(3*wallthick)-gap+hd_y_position+101.6,hd_z_position+(hd_space+27.1)*i]) if(pcb_width > 100) {
rotate([0,0,0]) cableholder_spacer(); translate([101.6-gap+wallthick+(width-2*(sidethick+gap)-101.6)-11.4,28.5-(3*wallthick)-gap+hd_y_position+101.6,hd_z_position+6+(hd_space+27.1)*i])
rotate([0,0,0]) cableholder_spacer((width-2*(sidethick+gap)-101.6)-9.4);
translate([101.6-gap+wallthick+(width-2*(sidethick+gap)-101.6)-11.4,-31-(3*wallthick)-gap+hd_y_position+101.6,hd_z_position+6+(hd_space+27.1)*i])
rotate([0,0,0]) cableholder_spacer((width-2*(sidethick+gap)-101.6)-9.4);
translate([101.6-gap+wallthick+(width-2*(sidethick+gap)-101.6)-11.4,-73-(3*wallthick)-gap+hd_y_position+101.6,hd_z_position+6+(hd_space+27.1)*i])
rotate([0,0,0]) cableholder_spacer((width-2*(sidethick+gap)-101.6)-9.4);
}
} }
} }
if(case_design == "stacked") { if(case_design == "stacked") {