added h3_port_extender_holder and updated h3_ultimate2 case.

This commit is contained in:
Edward Kisiel
2023-01-24 22:39:50 -05:00
parent 6ef186018f
commit 236be28bdd
3 changed files with 66 additions and 16 deletions

View File

@@ -270,6 +270,10 @@ if (view == "platter") {
translate([loc_x-20,loc_y-10,loc_z+3]) rotate([0,0,0]) button_top(data_3, size_x, size_z);
translate([loc_x-20,loc_y-20,loc_z]) rotate([0,0,0]) button_clip(data_3);
}
if (class == "platter" && type == "h3_port_extender_holder") {
translate([loc_x,loc_y,loc_z]) rotate([0,0,0]) h3_port_extender_holder("bottom");
translate([loc_x-20,loc_y+40,loc_z+36.5]) rotate([180,0,0]) h3_port_extender_holder("top");
}
}
}
if(case_design == "tray") {
@@ -645,6 +649,10 @@ if (view == "part") {
translate([loc_x-20,loc_y-10,loc_z+3]) rotate([0,0,0]) button_top(data_3, size_x, size_z);
translate([loc_x-20,loc_y-20,loc_z]) rotate([0,0,0]) button_clip(data_3);
}
if (class == "platter" && type == "h3_port_extender_holder") {
translate([loc_x,loc_y,loc_z]) rotate([0,0,0]) h3_port_extender_holder("bottom");
translate([loc_x-20,loc_y+40,loc_z+36.5]) rotate([180,0,0]) h3_port_extender_holder("top");
}
}
}
}

View File

@@ -920,20 +920,27 @@ accessory_data = [
"add2","nut_holder",144,114.4,9 ,"bottom",[0,270,0],["case",false,false,false],8,16,5,"m3","sloped",0,0, // vent cover nut holder
"sub","rectangle",-4,100.5,3,"top",[0,0,0],["sbc-case_z",true,true,true],14,4,20,0,0,"",[1,1,1,1], // sub rectangle
"sub","rectangle",100.5,17,30,"top",[0,0,0],["sbc-case_z",true,true,true],9,4,10,0,0,"",[1,1,1,1], // sub rectangle
"add1","round",30,127,4,"top",[0,0,0],["case",true,false,true],4,0,47,0,0,"",0, // wall support
"add1","round",71,127,4,"top",[0,0,0],["case",true,false,true],4,0,47,0,0,"",0, // wall support
"add1","round",-31.5,18,4,"top",[0,0,0],["case",true,false,true],4,0,47,0,0,"",0, // wall support
"add1","round",-31.5,92,4,"top",[0,0,0],["case",true,false,true],4,0,47,0,0,"",0, // wall support
"add1","round",-10,127,4,"top",[0,0,0],["case",true,false,true],4,0,47,0,0,"",0, // wall support
"add1","round",101,127,4,"top",[0,0,0],["case",true,false,true],4,0,47,0,0,"",0, // wall support
"model","standoff",78,127,8.65,"top",[-90,0,0],["case",false,false,true],0,0,0,0,0,0,[5.75,10,3.2,10,0.01,0,0,1,0,0,0], // standoff
"model","standoff",78,127,36.2,"top",[-90,0,0],["case",false,false,true],0,0,0,0,0,0,[5.75,10,3.2,6.5,0.01,0,0,1,0,0,0], // standoff
"platter","standoff",-100,145,0,"top",[0,0,0],["case",false,false,true],0,0,0,0,0,0,[5.75,10,3.4,6.5,0.001,0,0,1,0,0,0], // standoff
"platter","standoff",-75,145,0,"top",[0,0,0],["case",false,false,true],0,0,0,0,0,0,[5.75,10,3.4,6.5,0.001,0,0,1,0,0,0], // standoff
"model","h3_port_extender",31,117,4,"top",[0,0,-90],["case",true,false,true],0,0,0,0,0,"remote",0, // port extender model
"sub","h3_port_extender",31,117,4,"top",[0,0,-90],["case",true,false,true],0,0,0,0,0,"remote",0, // port extender model
"add1","round",30,111.5,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",71,111.5,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",-31.5,3,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",-31.5,77,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",-10,111.5,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",101,111.5,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",91.25,-16.5,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",66.25,-16.5,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",42.25,-16.5,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",16.25,-16.5,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
"add1","round",-1,-16.5,4,"top",[0,0,0],["case",true,true,true],4,0,47,0,0,"",0, // wall support
// "model","standoff",78,127,8.65,"top",[-90,0,0],["case",false,false,true],0,0,0,0,0,0,[5.75,10,3.2,10,0.01,0,0,1,0,0,0], // standoff
// "model","standoff",78,127,36.2,"top",[-90,0,0],["case",false,false,true],0,0,0,0,0,0,[5.75,10,3.2,6.5,0.01,0,0,1,0,0,0], // standoff
// "platter","standoff",-100,145,0,"top",[0,0,0],["case",false,false,true],0,0,0,0,0,0,[5.75,10,3.4,6.5,0.001,0,0,1,0,0,0], // standoff
// "platter","standoff",-75,145,0,"top",[0,0,0],["case",false,false,true],0,0,0,0,0,0,[5.75,10,3.4,6.5,0.001,0,0,1,0,0,0], // standoff
"model","h3_port_extender",31,119,4,"top",[0,0,-90],["case",true,false,true],0,0,0,0,0,"remote",0, // port extender model
"sub","h3_port_extender",31,119,4,"top",[0,0,-90],["case",true,false,true],0,0,0,0,0,"remote",0, // port extender openings
"model","h3_port_extender_holder",31,119,4,"top",[0,0,-90],["case",true,false,true],0,0,0,0,0,"both",0, // port extender holder
"platter","h3_port_extender_holder",-170,150,0,"top",[0,0,-90],["case",true,false,true],0,0,0,0,0,"remote",0, // port extender holder
"model","hk_pwr_button",11,114,53,"top",[0,0,180],["case",false,false,true],0,0,0,0,0,0,0, // hk pwr button model
"sub","hk_pwr_button",11,114,53,"top",[0,0,0],["case",false,false,true],0,0,0,0,0,0,0, // hk pwr button model
"sub","hk_pwr_button",11,114,53,"top",[0,0,0],["case",false,false,true],0,0,0,0,0,0,0, // hk pwr button opening
"model","dsub",12,-1,48,"top",[0,90,0],["case",false,false,false],0,0,0,0,0,0,[9,"male",4], // db9 model
"sub","dsub",12,-1,48,"top",[0,90,0],["case",false,false,false],0,0,0,0,0,0,[9,"male",4], // db9 model
"add1","access_port",19,20,-0.01,"bottom",[0,0,0],["sbc",true,true,true], 81,100,2,0,0,"portrait",0, // access port

View File

@@ -53,7 +53,7 @@
vent_hex(cells_x, cells_y, cell_size, cell_spacing, orientation) and supporting code, dsub(dsubsize, mask = false),
vent_panel_hex(x, y, thick, cell_size, cell_spacing, border, borders),
added nut_holder(nut, style, dia_x, dia_y, height), fixed access_port and access_cover 180 rotation
in portrait and landscape,
in portrait and landscape, added h3_port_extender_holder(part)
see https://github.com/hominoids/SBC_Case_Builder
@@ -124,6 +124,7 @@
mask(loc_x,loc_y,rotation,side,class,type,case_z,wallthick,gap,floorthick,pcb_z)
punchout(width,depth,gap,thick,fillet,shape)
h3_port_extender(style, mask = false)
h3_port_extender_holder(part)
hk_pwr_button(mask = false)
keyhole(keysize, mask = false)
vent_hex(cells_x, cells_y, cell_size, cell_spacing, orientation)
@@ -299,6 +300,9 @@ module add(type,loc_x,loc_y,loc_z,face,rotation,size_x,size_y,size_z,data_1,data
if(type == "h3_port_extender") {
translate([loc_x,loc_y,loc_z]) rotate(rotation) h3_port_extender(data_3);
}
if(type == "h3_port_extender_holder") {
translate([loc_x,loc_y,loc_z]) rotate(rotation) h3_port_extender_holder(data_3);
}
if(type == "hk_pwr_button") {
translate([loc_x,loc_y,loc_z]) rotate(rotation) hk_pwr_button();
}
@@ -3702,8 +3706,8 @@ module h3_port_extender(style, mask = false) {
translate([-20, 6.25, 15]) cube([12,7.5,14.75]);
translate([-20, 15.875, 15]) cube([12,7.5,14.75]);
translate([-20, 25.375, 15]) cube([12,7.5,14.75]);
translate([-20, 17, 32.2]) rotate([0,90,0]) cylinder(d=3.5, h=12);
translate([-20, 17, 4.6]) rotate([0,90,0]) cylinder(d=3.5, h=12);
translate([-20, 17, 32.2]) rotate([0,90,0]) cylinder(d=2.5, h=12);
translate([-20, 17, 4.6]) rotate([0,90,0]) cylinder(d=2.5, h=12);
}
else {
// gpio 24 pin front position
@@ -3716,6 +3720,37 @@ module h3_port_extender(style, mask = false) {
}
}
//
// h3_port_extender_holder(part = "both)
// holder for the @mctom's remote h3 port extender
//
module h3_port_extender_holder(part) {
adjust = .01;
size = [14,40,5.5];
if(part == "bottom" || part == "both") {
difference() {
translate([-7.5,-3.5,2]) cube(size);
translate([-.25,-.25,-adjust]) cube([2.5, 33.25, 12]);
translate([2, 2, -adjust]) cube([10, 28, 12]);
translate([-10,(33.25/2)+.25,4.5]) rotate([0,90,0]) cylinder(d=2.7, h=20);
translate([-7,-1.,-adjust]) cylinder(d=4.25, h=20);
}
}
if(part == "top" || part == "both") {
difference() {
translate([-7.5,-3.5,29.5]) cube(size);
translate([-.25,-.25,28]) cube([2.5, 33.25, 12]);
translate([1.5, 2, 27.5-adjust]) cube([10, 28.5, 12]);
translate([-10, -4, 28]) cube([20, 13, 10]);
translate([1.35, 20, 25.5]) cube([10, 13, 5]);
translate([-10,(33.25/2)+.25,32]) rotate([0,90,0]) cylinder(d=2.7, h=20);
}
}
}
// enclosed keyhole
module keyhole(keysize, mask = false) {