Skip to content

Commit

Permalink
fixed model view sections, fixed tray cases nut holder placement, cha…
Browse files Browse the repository at this point in the history
…nged fan mask direction and finalized standard form adapters and cases.
  • Loading branch information
hominoids committed Apr 22, 2024
1 parent 42593fa commit 0807d49
Show file tree
Hide file tree
Showing 8 changed files with 173 additions and 159 deletions.
2 changes: 1 addition & 1 deletion get_customizer_values.scad
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// After running this script, copy the output from the first Echo command into the
// list of SBC boards in `sbc_case_builder.scad:32`
// Also copy the output from the second Echo command into the list of case acceessory
// sets in `sbc_case_builder.scad:258`
// sets in `sbc_case_builder.scad:196`

include <./SBC_Model_Framework/sbc_models.cfg>;
include <./sbc_case_builder_accessories.cfg>;
Expand Down
8 changes: 4 additions & 4 deletions lib/fans.scad
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,16 @@ module fans(style, mask) {

if(enablemask == true) {
if(mstyle == "fan_open") {
translate([0, 0, -adj-msetback]) fan_mask(diameter, mlength, "fan_open");
translate([0, 0, -mlength+msetback-1]) fan_mask(diameter, mlength, "fan_open");
}
if(mstyle == "default" || mstyle == "fan_1") {
translate([0, 0, -adj-msetback]) fan_mask(diameter, mlength, "fan_1");
translate([0, 0, -mlength+msetback-1]) fan_mask(diameter, mlength, "fan_1");
}
if(mstyle == "fan_2") {
translate([0, 0, -adj-msetback]) fan_mask(diameter, mlength, "fan_2");
translate([0, 0, -mlength+msetback-1]) fan_mask(diameter, mlength, "fan_2");
}
if(mstyle == "fan_hex") {
translate([0, 0, -adj-msetback]) fan_mask(diameter, mlength, "fan_hex");
translate([0, 0, -mlength+msetback-1]) fan_mask(diameter, mlength, "fan_hex");
}
}
if(enablemask == false) {
Expand Down
27 changes: 17 additions & 10 deletions mod/case_adapter.scad
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
NAME: case_adapter
DESCRIPTION: creates adapters for legacy cases footprints
TODO: verify mini-stx and nano-itx hole locations
TODO: nano-itx hole locations
USAGE: case_adapter(case_design)
Expand All @@ -27,7 +27,15 @@
module case_adapter(case_design) {

mb_adapters=[
["adapter_atx", 304.8, 243.84, ["left_rear", 6.35, 33.02], ["middle_rear", 163.83, 10.16], ["right_rear", 288.29, 10.16],
["adapter_ssi-eeb", 304.8, 330.2, ["left_rear", 6.35, 33.02], ["middle_rear", 163.83, 10.16], ["right_rear", 288.29, 10.16],
["left_middle", 6.35, 165.1], ["middle_middle", 163.83, 165.1], ["right_middle", 288.29, 165.1],
["middle_middle2", 209.55, 237.49], ["right_middle2", 288.29, 237.49],
["left_front", 6.35, 322.58], ["middle_front", 163.83, 322.58], ["right_front", 299.72, 322.58]],
["adapter_ssi-ceb", 304.8, 266.7, ["left_rear", 6.35, 33.02], ["middle_rear", 163.83, 10.16], ["right_rear", 288.29, 10.16],
["left_middle", 6.35, 165.1], ["middle_middle", 163.83, 165.1], ["right_middle", 288.29, 165.1],
["middle_front", 209.55, 237.49], ["right_front", 288.29, 237.49]],
["adapter_atx", 304.8, 243.84, ["left_rear", 6.35, 33.02], ["middle_rear", 163.83, 10.16],
["middle2_rear", 211.99, 10.16], ["right_rear", 288.29, 10.16],
["left_middle", 6.35, 165.1], ["middle_middle", 163.83, 165.1], ["right_middle", 288.29, 165.1],
["left_front", 6.35, 237.49], ["middle_front", 163.83, 237.49], ["right_front", 288.29, 237.49]],
["adapter_micro-atx", 243.84, 243.84, ["left_rear", 6.35, 33.02], ["middle_rear", 163.83, 10.16], ["right_rear", 211.99, 10.16],
Expand All @@ -44,6 +52,8 @@ mb_adapters=[
["left_front", 6.35, 165.1], ["right_front", 163.83, 165.1]],
["adapter_mini-itx", 170, 170, ["left_rear", 6.35, 33.02], ["right_rear", 163.83, 10.16],
["left_front", 6.35, 165.1], ["right_front", 163.83, 165.1]],
["adapter_mini-itx_thin", 170, 170, ["left_rear", 6.35, 33.02], ["right_rear", 163.83, 10.16],
["left_front", 6.35, 165.1], ["right_front", 163.83, 165.1]],
["adapter_mini-stx", 140, 147, ["left_rear", 5, 5], ["right_rear", 135, 5],
["left_front", 5, 142], ["right_front", 135, 142]],
];
Expand Down Expand Up @@ -301,9 +311,6 @@ mb_adapters=[
}
}
translate([mba_offset_x-10, -10, -1]) cube([mba_x+20, 10, floorthick+10]);
// translate([mba_offset_x-10, mba_y, -1]) cube([mba_x+20, 10, floorthick+4]);
// translate([mba_offset_x-10, -10, -1]) cube([10, mba_y+20, floorthick+4]);
// translate([mba_x+mba_offset_x, -10, -1]) cube([10, mba_y+20, floorthick+4]);
}
// additive accessories
if(accessory_name != "none") {
Expand Down Expand Up @@ -348,18 +355,18 @@ mb_adapters=[


/*
NAME: io_plate
NAME: io_shield
DESCRIPTION: creates rear io panel for legacy cases
TODO: none
USAGE: io_plate()
USAGE: io_shield()
*/
module io_plate() {
module io_shield() {

io_window_x = case_design == "adapter_mini-stx" ? 123.95 : 158.75;
io_window_x = case_design == ("adapter_mini-stx") ? 123.95 : 158.75;
io_window_y = 4;
io_window_z = case_design == "adapter_mini-stx" ? 40 : case_design == "adapter_thin-mini-stx" ? 25 : 44;
io_window_z = case_design == "adapter_mini-stx" ? 40 : case_design == "adapter_mini-itx_thin" ? 25 : 44;
io_offset = case_design == "adapter_mini-stx" ? 1.2 : 10.79;

difference() {
Expand Down
14 changes: 9 additions & 5 deletions mod/case_bottom.scad
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module case_bottom(case_design) {
rotate([90,0,90]) cylinder(d=10, h=4, $fn=6);
}
else {
translate([-adj-gap,wallthick+gap+pcb_depth-8,floorthick+3.4])
translate([-adj-gap,wallthick+gap+pcb_depth+case_offset_y-8,floorthick+3.4])
rotate([90,0,90]) cylinder(d=10, h=4, $fn=6);
}
}
Expand All @@ -126,7 +126,7 @@ module case_bottom(case_design) {
rotate([90,0,90]) cylinder(d=10, h=4, $fn=6);
}
else {
translate([width-wallthick-gap-wallthick-4+adj,wallthick+gap+pcb_depth-8,floorthick+3.4])
translate([width-wallthick-gap-wallthick-4+adj,wallthick+gap+pcb_depth+case_offset_y-8,floorthick+3.4])
rotate([90,0,90]) cylinder(d=10, h=4, $fn=6);
}
}
Expand Down Expand Up @@ -335,6 +335,7 @@ module case_bottom(case_design) {
rotate([90,0,90]) cylinder(d=6.6, h=3.5, $fn=6);
}
else {
echo(pcb_depth+case_offset_y-10);
translate([-wallthick-gap-adj-6,wallthick+gap+pcb_depth+case_offset_y-8,
floorthick+3.4]) rotate([0,90,0]) cylinder(d=3, h=10+sidethick+(2*adj));
translate([-gap+.6,wallthick+gap+pcb_depth+case_offset_y-8,floorthick+3.4])
Expand Down Expand Up @@ -456,12 +457,15 @@ module case_bottom(case_design) {
}
}
}
// rear io plate opening for standard form motherboards
if(rear_io_plate == true) {
// rear io shield opening for standard form motherboards
if(rear_io_shield == true) {
if(sbc_model == "mini-stx") {
translate([6.2+pcb_loc_x,-4.5,-4.4+bottom_height-case_offset_bz-pcb_z+pcb_loc_z]) cube([123.95, 10+pcb_loc_y, 40]);
}
else {
if(sbc_model == "mini-itx_thin") {
translate([-2.62+pcb_loc_x,-4.5,-2+bottom_height-case_offset_bz-pcb_z+pcb_loc_z]) cube([158.75, 10+pcb_loc_y, 25]);
}
if(sbc_model != "mini-stx" && sbc_model != "mini-itx_thin") {
translate([-2.62+pcb_loc_x,-4.5,-2+bottom_height-case_offset_bz-pcb_z+pcb_loc_z]) cube([158.75, 10+pcb_loc_y, 44]);
}
}
Expand Down
13 changes: 8 additions & 5 deletions mod/case_top.scad
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ module case_top(case_design) {
floorthick+3.4]) rotate([0,90,0]) cylinder(d=3, h=10+sidethick+(2*adj));
}
else {
translate([-wallthick-gap-adj-6,wallthick+gap+pcb_depth-8,
translate([-wallthick-gap-adj-6,wallthick+gap+pcb_depth+case_offset_y-8,
floorthick+3.4]) rotate([0,90,0]) cylinder(d=3, h=10+sidethick+(2*adj));
}
}
Expand All @@ -139,7 +139,7 @@ module case_top(case_design) {
floorthick+3.4]) rotate([0,90,0]) cylinder(d=3, h=10+sidethick+(2*adj));
}
else {
translate([width-3*(wallthick+gap)-adj,wallthick-gap+pcb_depth-8,
translate([width-3*(wallthick+gap)-adj,wallthick-gap+pcb_depth+case_offset_y-8,
floorthick+3.4]) rotate([0,90,0]) cylinder(d=3, h=10+sidethick+(2*adj));
}
}
Expand Down Expand Up @@ -379,12 +379,15 @@ module case_top(case_design) {
}
}
}
// rear io plate opening for standard form motherboards
if(rear_io_plate == true) {
// rear io shield opening for standard form motherboards
if(rear_io_shield == true) {
if(sbc_model == "mini-stx") {
translate([6.2+pcb_loc_x,-4.5,-4.4+bottom_height-case_offset_bz-pcb_z+pcb_loc_z]) cube([123.95, 10+pcb_loc_y, 40]);
}
else {
if(sbc_model == "mini-itx_thin") {
translate([-2.62+pcb_loc_x,-4.5,-2+bottom_height-case_offset_bz-pcb_z+pcb_loc_z]) cube([158.75, 10+pcb_loc_y, 25]);
}
if(sbc_model != "mini-stx" && sbc_model != "mini-itx_thin") {
translate([-2.62+pcb_loc_x,-4.5,-2+bottom_height-case_offset_bz-pcb_z+pcb_loc_z]) cube([158.75, 10+pcb_loc_y, 44]);
}
}
Expand Down
Loading

0 comments on commit 0807d49

Please sign in to comment.