From f80f4e9516772ccfb2253d5bb6e46308e12756be Mon Sep 17 00:00:00 2001 From: David Long Date: Thu, 23 Jun 2022 19:37:03 -0400 Subject: [PATCH] Updates to support rockpro64 board --- .gitmodules | 3 +++ SBC_Model_Framework | 1 + sbc_case_builder.cfg | 6 +++--- sbc_case_builder.scad | 8 ++++---- sbc_case_builder_library.scad | 20 ++++++++++++++++++++ 5 files changed, 31 insertions(+), 7 deletions(-) create mode 100644 .gitmodules create mode 160000 SBC_Model_Framework diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..164cf43 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "SBC_Model_Framework"] + path = SBC_Model_Framework + url = git@github.com:davejlong/SBC_Model_Framework.git diff --git a/SBC_Model_Framework b/SBC_Model_Framework new file mode 160000 index 0000000..f1fb73a --- /dev/null +++ b/SBC_Model_Framework @@ -0,0 +1 @@ +Subproject commit f1fb73a9dbc5e3a52b36c48e844b801d0ff8307f diff --git a/sbc_case_builder.cfg b/sbc_case_builder.cfg index 63a4e19..4fc7623 100644 --- a/sbc_case_builder.cfg +++ b/sbc_case_builder.cfg @@ -1627,13 +1627,13 @@ case_data = [ 0,0,0,0,0,0,0, // pcb_loc_x,pcb_loc_y,pcb_loc_z,case_offset_x,case_offset_y,case_offset_tz,case_offset_bz, 2,2,2,1.5,[3,3], // wallthick,floorthick,sidethick,gap,fillet false,true,true,true,true, // indents,sidewall_support,sbc_top_standoffs,sbc_bottom_standoffs,case_ext_standoffs - false,"vent","fan","vent","true", // sata_punchout,gpio_opening,cooling,exhaust_vents,mode + false,"none","fan","vent","true", // sata_punchout,gpio_opening,cooling,exhaust_vents,mode [6.75,15,2.5,10,4,4,0,1,0,4.5,5.1], // top_pcb_standoff [6.75,11.4,3.6,10,4,1,0,0,0,4.5,5.1], // bottom_pcb_standoff [6.75,15,2.5,10,4,4,0,1,1,4.5,5.1], // top_ext_standoff [6.75,11.4,3.6,10,4,2,0,0,0,4.5,5.1], // bottom_ext_standoff - "sub","fan",43,26,25,"top",[0,0,0],40,0,6,2,0,"",0, // sub fan opening - "sub","rectangle",43,0,25,"top",[0,0,0],40,10,6,0,0,"",[1,1,1,1]], // sub pcie opening + "sub","fan",20,0,25,"top",[0,0,0],80,0,6,2,0,"",0,/* // sub fan opening + "sub","rectangle",43,0,25,"top",[0,0,0],40,10,6,0,0,"",[1,1,1,1]*/], // sub pcie opening ["rockpro64_panel","rockpro64","panel","none", // case_name, sbc_model, case_design, case_style 0,0,0,0,0,0,0, // pcb_loc_x,pcb_loc_y,pcb_loc_z,case_offset_x,case_offset_y,case_offset_tz,case_offset_bz, diff --git a/sbc_case_builder.scad b/sbc_case_builder.scad index 6a3bf34..a8ade47 100644 --- a/sbc_case_builder.scad +++ b/sbc_case_builder.scad @@ -37,14 +37,14 @@ see https://github.com/hominoids/SBC_Case_Builder */ -use <./lib/sbc_models.scad>; +use <./SBC_Model_Framework/sbc_models.scad>; use <./sbc_case_builder_library.scad>; use <./lib/fillets.scad>; -include <./lib/sbc_models.cfg>; +include <./SBC_Model_Framework/sbc_models.cfg>; include <./sbc_case_builder.cfg>; -case_name = "m1_tray"; // case_name to load from sbc_case_builder.cfg -view = "model"; // viewing mode "platter", "model", "debug" +case_name = "rockpro64_shell"; // case_name to load from sbc_case_builder.cfg +view = "platter"; // viewing mode "platter", "model", "debug" highlight = false; // enable highlight for subtarctive geometry (true or false) sbc_off = false; // sbc off in model view (true or false) diff --git a/sbc_case_builder_library.scad b/sbc_case_builder_library.scad index 9f4b397..ce6218e 100644 --- a/sbc_case_builder_library.scad +++ b/sbc_case_builder_library.scad @@ -2543,6 +2543,26 @@ module mask(loc_x,loc_y,loc_z,rotation,side,class,type,wallthick,gap,floorthick, place(loc_x+6,loc_y-.25,loc_z,10.5,13.5,rotation,side) cube([10.5,8,10.5]); } + // pwr5.5_9.5x7 opening + if(type == "pwr5.5_9.5x7" && rotation == 0) { + place(loc_x-.25,loc_y-6,loc_z,10,13.5,rotation,side) + cube([10,8,7.5]); + } + // pwr5.5_9.5x7 opening + if(type == "pwr5.5_9.5x7" && rotation == 90) { + place(loc_x-6,loc_y-.25,loc_z,10,13.5,rotation,side) + cube([10,8,7.5]); + } + // pwr5.5_9.5x7 opening + if(type == "pwr5.5_9.5x7" && rotation == 180) { + place(loc_x-.25,loc_y+6,loc_z,10,13.5,rotation,side) + cube([10,8,7.5]); + } + // pwr5.5_9.5x7 opening + if(type == "pwr5.5_9.5x7" && rotation == 270) { + place(loc_x+6,loc_y-.25,loc_z,10,13.5,rotation,side) + cube([10,8,7.5]); + } // emmc storage if(type == "emmc" && side == "bottom" && rotation == 0) { place(loc_x-.5,loc_y-.5,floorthick+adjust,14.5,19.5,rotation,side)