Newer
Older
edge_diameter = 3;
pcb_e_d = pcb_diameter - edge_diameter;
hull () {
for (rz=[0:60:360]) rotate([0, 0, rz]) translate([0, pcb_e_d/2, 0]) circle(d=edge_diameter, $fn=100);
module tri() {
polygon([[0, 0], [p, 0], [0, p]]);
}
w = 6.1;
h = 0.9;
translate([-w/2, -h, 0]) difference() {
square([w, h]);
tri();
hexagon_wh_ratio = 0.8660253; // calculated with https://hexagoncalculator.apphb.com/
function hex_width(h) = h * hexagon_wh_ratio;
correction = -0.2; // TODO: figure out why translation fails. checked: calculation is ok
translate([-hex_width(pcb_diameter)/2 + correction, 0, 0]) rotate([0, 0, -90]) usb_c();