Skip to content

Commit

Permalink
Merge pull request #20 from tomek-szczesny/main
Browse files Browse the repository at this point in the history
Added vent_hex(), updated h3_ultimate2
  • Loading branch information
hominoids authored Jan 5, 2023
2 parents 7998524 + 0007243 commit d565be1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
7 changes: 3 additions & 4 deletions sbc_case_builder_accessories.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

types for additive: circle,rectangle,slot,text,art,button,standoff,batt_holder,uart_holder,hd_holder,hd_vertleft_holder,
hd_vertright_holder,hc4_oled_holder,access_port,button,pcb_holder,boom_grill,boom_speaker_holder
types for subtractive: circle,rectangle,slot,text,art,punchout,vent,fan,hd_holes,hd_vertleft_holes,hd_vertright_holes,microusb,sphere
types for subtractive: circle,rectangle,slot,text,art,punchout,vent,vent_hex,fan,hd_holes,hd_vertleft_holes,hd_vertright_holes,microusb,sphere
types for model: uart_strap,fan_cover,hd25,hd35,hc4_oled,feet,button_top,access_cover,net_card,hk35_lcd,hk_boom,boom_speaker,boom_vring,hk_uart
types for platter: uart_strap,fan_cover,button_top,boom_vring

Expand Down Expand Up @@ -899,9 +899,8 @@ accessory_data = [
"model","hd25",98,110,2,"bottom",[90,0,-90],["case",true,true,false],0,0,0,7,0,"",0], // model 2.5 hd

["h3_ultimate2",
"sub","vent",111.5,30,48,"top",[0,0,90],["case",true,false,false],2,12,4,1,17,"vertical",1, // vent opening
"sub","vent",111.5,30,28,"top",[0,0,90],["case",true,false,false],2,12,4,1,17,"vertical",1, // vent opening
"sub","vent",111.5,30,4,"bottom",[0,0,90],["case",true,false,false],2,6,4,1,17,"vertical",1, // vent opening
"sub","vent_hex",111.5,12,20,"top",[0,0,90],["case",true,false,false],17,5,4,8,3,"vertical",0, // vent opening
"sub","vent_hex",111.5,12,4,"bottom",[0,0,90],["case",true,false,false],17,1,4,8,3,"vertical",0, // vent opening
"suball","fan",0,25,3,"top",[0,270,0],["case",false,false,false],60,0,6,1,0,"",0, // sub fan opening
"model","fan_cover",-4,25,3,"top",[0,270,0],["case",false,false,false],60,0,3,2,0,"",0, // model fan cover
"platter","fan_cover",-50,50,0,"top",[0,0,0],["case",false,false,false],60,0,3,2,0,"",0, // model fan cover
Expand Down
31 changes: 29 additions & 2 deletions sbc_case_builder_library.scad
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Contributions:
hk_vu8m(brackets),u_bracket(),screw(),m1_hdmount() Copyright 2022 Tomek Szczęsny, mctom @ www.forum.odroid.com
vent_hex() Copyright 2023 Tomek Szczęsny, mctom @ www.forum.odroid.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -48,8 +49,8 @@
20221101 version 2.0.2 added hdmi_a_vertical mask, increased jack_3.5 mask dia.to 6mm, lowered hdmi_a_vertical mask by 2mm,
added mask for microsdcard2
20221207 version 2.0.3 added double_stacked_usb3-usb2, hd35_vtab(side) and supporting code
2023xxxx version 2.0.x added h3_port_extender(style, mask = false), hk_pwr_button(mask = false), keyhole(keysize, mask = false)
and supporting code
2023xxxx version 2.0.x added h3_port_extender(style, mask = false), hk_pwr_button(mask = false), keyhole(keysize, mask = false),
vent_hex(cells_x, cells_y, cell_size, cell_spacing, orientation) and supporting code
see https://github.com/hominoids/SBC_Case_Builder
Expand Down Expand Up @@ -122,6 +123,7 @@
h3_port_extender(style, mask = false)
hk_pwr_button(mask = false)
keyhole(keysize, mask = false)
vent_hex(cells_x, cells_y, cell_size, cell_spacing, orientation)
*/

use <./lib/fillets.scad>;
Expand Down Expand Up @@ -327,6 +329,9 @@ module sub(type,loc_x,loc_y,loc_z,face,rotation,size_x,size_y,size_z,data_1,data
if(type == "vent") {
translate([loc_x,loc_y,loc_z]) rotate(rotation) vent(size_x,size_y,size_z,data_4,data_1,data_2,data_3);
}
if(type == "vent_hex") {
translate([loc_x,loc_y,loc_z]) rotate(rotation) vent_hex(size_x,size_y,size_z,data_1,data_2,data_3);
}
if(type == "microusb") {
translate([loc_x,loc_y,loc_z]) rotate(rotation) microusb_open();
}
Expand Down Expand Up @@ -3528,6 +3533,28 @@ module vent(width,length,height,gap,rows,columns,orientation) {
}
}

// Hex vent opening
module vent_hex(cells_x, cells_y, thickness, cell_size, cell_spacing, orientation) {
xs = cell_size + cell_spacing;
ys = xs * sqrt(3/4);
rot = (orientation=="vertical") ? 90 : 0;

rotate([rot,0,0]) translate([cell_size/2, cell_size*sqrt(3/8),-1]) {
for (ix = [0 : ceil(cells_x/2)-1]) {
for (iy = [0 : 2 : cells_y-1]) {
translate([ix*xs, iy*ys,0]) rotate([0,0,90])
cylinder(r=cell_size/sqrt(3), h=thickness, $fn=6);
}
}
for (ix = [0 : (cells_x/2)-1]) {
for (iy = [1 : 2 : cells_y-1]) {
translate([(ix+0.5)*xs, iy*ys,0]) rotate([0,0,90])
cylinder(r=cell_size/sqrt(3), h=thickness, $fn=6);
}
}
}
}


// hk power button
module hk_pwr_button(mask = false) {
Expand Down

0 comments on commit d565be1

Please sign in to comment.