adjustments for case adapters and io plate, remove unneed stl models
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
// Gets a list of SBCs from the SBC Model Framework and Accessory sets
|
||||
// for use with SBC Case Builder.
|
||||
// After running this script, copy the output from the first Echo command into the
|
||||
// list of SBC boards in `sbc_case_builder.scad:83`
|
||||
// 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:164`
|
||||
// sets in `sbc_case_builder.scad:258`
|
||||
|
||||
include <./SBC_Model_Framework/sbc_models.cfg>;
|
||||
include <./sbc_case_builder_accessories.cfg>;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
module case_adapter(case_design) {
|
||||
|
||||
mb_adapters=[
|
||||
["adapter_atx", 304.8, 243.84, ["left_rear", 6.35, 33.02], ["right_rear", 288.29, 10.16],
|
||||
["adapter_atx", 304.8, 243.84, ["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],
|
||||
["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],
|
||||
@@ -37,21 +37,13 @@ mb_adapters=[
|
||||
["adapter_dtx", 230.2, 243.84, ["left_rear", 6.35, 33.02], ["middle_rear", 163.83, 10.16], ["right_rear", 211.99, 10.16],
|
||||
["left_middle", 6.35, 165.1], ["middle_middle", 163.83, 165.1], ["right_middle", 209.55, 165.1],
|
||||
["left_front", 6.35, 237.49], ["right_front", 163.83, 237.49]],
|
||||
["adapter_flex-atx", 228.6, 190.5, ["left_rear", 6.35, 33.02], ["right_rear", 211.99, 10.16],
|
||||
["adapter_flex-atx", 228.6, 190.5, ["left_rear", 6.35, 33.02], ["middle_rear", 163.83, 10.16], ["right_rear", 211.99, 10.16],
|
||||
["left_front", 6.35, 165.1], ["middle_front", 163.83, 165.1],
|
||||
["right_front", 209.55, 165.1]],
|
||||
["adapter_mini-dtx", 203.2, 170.18, ["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", 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", 147, 140, ["left_rear", 4.8, 5.15], ["right_rear", 139.8, 5.15],
|
||||
["left_front", 4.8, 134.85], ["right_front", 139.8, 134.85]],
|
||||
["adapter_nano-itx", 120, 120, ["left_rear", 6.35, 33.02], ["right_rear", 113.65, 6.35],
|
||||
["left_front", 6.35, 113.65], ["right_front", 113.65, 113.65]],
|
||||
["adapter_nuc", 101.6, 101.6, ["left_rear", 3.3, 7.3], ["right_rear", 98.3, 7.3],
|
||||
["left_front", 3.3, 97.7], ["right_front", 98.3, 97.7]],
|
||||
["adapter_pico-itx", 100, 72, ["left_rear", 2.97, 3.04], ["right_rear", 97.05, 3.04],
|
||||
["left_front", 2.97, 69.08], ["right_front", 97.05, 69.08]]
|
||||
];
|
||||
|
||||
mb = search([case_design],mb_adapters);
|
||||
@@ -61,7 +53,7 @@ mb_adapters=[
|
||||
mba_offset_x = -6.35;
|
||||
mba_offset_y = 0;
|
||||
mba_radius = 5;
|
||||
mba_standoff = [5.75, floorthick, 3.4, 7, floorthick, "none", "round", "none", true, false, 0, 0];
|
||||
mba_standoff = [6.75, floorthick, 4, 7, floorthick, "none", "round", "none", true, false, 0, 0];
|
||||
io_offset = 6.35;
|
||||
adj = .01;
|
||||
|
||||
@@ -233,10 +225,8 @@ module io_panel() {
|
||||
translate([0,0,0]) cube([io_window_x,4,io_window_z]);
|
||||
}
|
||||
translate([2,-2,2]) cube([io_window_x-4,5,io_window_z-4]);
|
||||
translate([0 ,6,bottom_height-pcb_z+pcb_loc_z-adj])
|
||||
translate([8.79 ,6,bottom_height-pcb_z+pcb_loc_z+2])
|
||||
sbc(sbc_model, cooling, fan_size, gpio_opening, uart_opening, true);
|
||||
}
|
||||
}
|
||||
|
||||
translate([-8.79,-4,0])
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ include <./sbc_case_builder_accessories.cfg>;
|
||||
view = "model"; // [model, platter, part]
|
||||
individual_part = "bottom"; // [top, bottom, right, left, front, rear, io_panel, accessories]
|
||||
// single board computer model
|
||||
sbc_model = "c1+"; // ["c1+", "c2", "c4", "hc4", "xu4", "xu4q", "mc1", "hc1", "n1", "n2", "n2+", "n2l", "n2lq", "m1", "m1s", "h2", "h2+", "h3", "h3+", "show2", "rpipico", "rpipicow", "rpicm4+ioboard", "rpicm1", "rpicm3", "rpicm3l", "rpicm3+", "rpicm4s", "rpicm4", "rpicm4l", "rpizero", "rpizerow", "rpizero2w", "rpi1a+", "rpi1b+", "rpi2b", "rpi3a+", "rpi3b", "rpi3b+", "rpi4b", "rpi5", "rock64", "rockpro64", "quartz64a", "quartz64b", "h64b", "star64", "rock4a", "rock4b", "rock4a+", "rock4b+", "rock4c", "rock4c+", "rock5b-v1.3", "rock5b", "rock5bq", "vim1", "vim2", "vim3", "vim3l", "vim4", "tinkerboard", "tinkerboard-s", "tinkerboard-2", "tinkerboard-2s", "tinkerboard-r2", "tinkerboard-r2s", "opizero", "opizero2", "opir1plus_lts", "opir1", "opi5", "jetsonnano", "lepotato", "sweetpotato", "tritium-h2+", "tritium-h3", "tritium-h5", "solitude", "alta", "atomicpi", "visionfive2", "visionfive2q", "licheerv+dock", "rak19007"]
|
||||
sbc_model = "c1+"; // ["c1+", "c2", "c4", "hc4", "xu4", "xu4q", "mc1", "hc1", "n1", "n2", "n2+", "n2l", "n2lq", "m1", "m1s", "h2", "h2+", "h3", "h3+", "show2", "rpipico", "rpipicow", "rpicm4+ioboard", "rpicm1", "rpicm3", "rpicm3l", "rpicm3+", "rpicm4s", "rpicm4", "rpicm4l", "rpizero", "rpizerow", "rpizero2w", "rpi1a+", "rpi1b+", "rpi2b", "rpi3a+", "rpi3b", "rpi3b+", "rpi4b", "rpi5", "rock64", "rockpro64", "quartz64a", "quartz64b", "h64b", "star64", "rock4a", "rock4b", "rock4a+", "rock4b+", "rock4c", "rock4c+", "rock5b-v1.3", "rock5b", "rock5bq", "vim1", "vim2", "vim3", "vim3l", "vim4", "tinkerboard", "tinkerboard-s", "tinkerboard-2", "tinkerboard-2s", "tinkerboard-r2", "tinkerboard-r2s", "opizero", "opizero2", "opir1plus_lts", "opir1", "opi5", "jetsonnano", "lepotato", "sweetpotato", "tritium-h2+", "tritium-h3", "tritium-h5", "solitude", "alta", "atomicpi", "visionfive2", "visionfive2q", "licheerv+dock", "rak19007", "atx", "micro-atx", "dtx", "flex-atx", "mini-dtx", "mini-itx", "mini-stx", "nano-itx", "nuc", "pico-itx"]
|
||||
|
||||
// sbc off in model view
|
||||
sbc_off = false;
|
||||
@@ -40,7 +40,7 @@ sbc_highlight = false;
|
||||
// enable highlight for accessory subtractive geometry
|
||||
accessory_highlight = false;
|
||||
// base case design
|
||||
case_design = "shell"; // [shell,panel,stacked,tray,tray_sides,tray_vu5,tray_vu7,round,hex,snap,fitted,paper_split-top,paper_full-top,adapter_atx,adapter_micro-atx,adapter_dtx,adapter_flex-atx,adapter_mini-dtx,adapter_mini-itx,adapter_mini-stx,adapter_nano-itx,adapter_nuc,adapter_pico-itx]
|
||||
case_design = "shell"; // [shell,panel,stacked,tray,tray_sides,tray_vu5,tray_vu7,round,hex,snap,fitted,paper_split-top,paper_full-top,adapter_atx,adapter_micro-atx,adapter_dtx,adapter_flex-atx,adapter_mini-dtx,adapter_mini-itx]
|
||||
|
||||
// raises top mm in model view or < 0 = off
|
||||
raise_top = 0; // [-1:100]
|
||||
@@ -437,7 +437,7 @@ if (view == "platter") {
|
||||
if(case_design == "paper_split-top" || case_design == "paper_full-top") {
|
||||
case_folded(case_design);
|
||||
}
|
||||
if(case_design == "adapter_mini-itx" || case_design == "adapter_flex-atx" || case_design == "adapter_mini-dtx" || case_design == "adapter_dtx" || case_design == "adapter_micro-atx" || case_design == "adapter_atx" || case_design == "adapter_mini-stx" || case_design == "adapter_nano-itx" || case_design == "adapter_nuc" || case_design == "adapter_pico-itx") {
|
||||
if(case_design == "adapter_mini-itx" || case_design == "adapter_flex-atx" || case_design == "adapter_mini-dtx" || case_design == "adapter_dtx" || case_design == "adapter_micro-atx" || case_design == "adapter_atx") {
|
||||
color("dimgrey",1) case_adapter(case_design);
|
||||
color("dimgrey",1) translate([-180, 0, 4]) rotate([270,0,0]) io_panel();
|
||||
}
|
||||
@@ -694,13 +694,13 @@ if (view == "model") {
|
||||
}
|
||||
}
|
||||
}
|
||||
if(case_design == "adapter_mini-itx" || case_design == "adapter_flex-atx" || case_design == "adapter_mini-dtx" || case_design == "adapter_dtx" || case_design == "adapter_micro-atx" || case_design == "adapter_atx" || case_design == "adapter_mini-stx" || case_design == "adapter_nano-itx" || case_design == "adapter_nuc" || case_design == "adapter_pico-itx") {
|
||||
if(case_design == "adapter_mini-itx" || case_design == "adapter_flex-atx" || case_design == "adapter_mini-dtx" || case_design == "adapter_dtx" || case_design == "adapter_micro-atx" || case_design == "adapter_atx") {
|
||||
color("dimgrey",1) case_adapter(case_design);
|
||||
if(sbc_off == false) {
|
||||
translate([pcb_loc_x ,pcb_loc_y,bottom_height-pcb_z+pcb_loc_z])
|
||||
sbc(sbc_model, cooling, fan_size, gpio_opening, uart_opening, false);
|
||||
}
|
||||
color("dimgrey",1) translate([0,-4,0]) io_panel();
|
||||
color("dimgrey",1) translate([-8.79,-4.5,-2]) io_panel();
|
||||
}
|
||||
// ui access panel
|
||||
if(bottom_access_panel_enable == true) {
|
||||
@@ -797,9 +797,8 @@ if (view == "part") {
|
||||
}
|
||||
}
|
||||
if(individual_part == "bottom") {
|
||||
case_bottom(case_design);
|
||||
if(case_design == "adapter_mini-itx" || case_design == "adapter_flex-atx" || case_design == "adapter_mini-dtx" || case_design == "adapter_dtx" || case_design == "adapter_micro-atx" || case_design == "adapter_atx" || case_design == "adapter_mini-stx" || case_design == "adapter_nano-itx" || case_design == "adapter_nuc" || case_design == "adapter_pico-itx") {
|
||||
color("dimgrey",1) case_adapter(case_design);
|
||||
if(case_design == "adapter_mini-itx" || case_design == "adapter_flex-atx" || case_design == "adapter_mini-dtx" || case_design == "adapter_dtx" || case_design == "adapter_micro-atx" || case_design == "adapter_atx") {
|
||||
case_adapter(case_design);
|
||||
}
|
||||
else {
|
||||
case_bottom(case_design);
|
||||
@@ -836,8 +835,8 @@ if (view == "part") {
|
||||
}
|
||||
}
|
||||
if(individual_part == "io_panel") {
|
||||
if(case_design == "adapter_mini-itx" || case_design == "adapter_flex-atx" || case_design == "adapter_mini-dtx" || case_design == "adapter_dtx" || case_design == "adapter_micro-atx" || case_design == "adapter_atx" || case_design == "adapter_mini-stx" || case_design == "adapter_nano-itx" || case_design == "adapter_nuc" || case_design == "adapter_pico-itx") {
|
||||
color("dimgrey",1) translate([0, 0, 4]) rotate([270,0,0]) io_panel();
|
||||
if(case_design == "adapter_mini-itx" || case_design == "adapter_flex-atx" || case_design == "adapter_mini-dtx" || case_design == "adapter_dtx" || case_design == "adapter_micro-atx" || case_design == "adapter_atx") {
|
||||
translate([0, 0, 4]) rotate([270,0,0]) io_panel();
|
||||
}
|
||||
}
|
||||
if(individual_part == "accessories") {
|
||||
|
||||
BIN
stl/db9_f.stl
BIN
stl/db9_f.stl
Binary file not shown.
BIN
stl/db9_m.stl
BIN
stl/db9_m.stl
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user