/* Arbitrary Waveform Generator PCB size is 104.25mm x 69.5mm Arbitrary Waveform Generator hole spacing is 94.25mm x 59.5mm Wall thickness is rounded_corner / 2 Case dimension is y = 105mm + 10mm + 56mm + (2 x 0.5mm clearance around) = 172mm Case Dimension x = 142.5 + (2 x 0.5mm clearance around) = 143.5mm */ // spacer cube_x = 8; cube_y = 8; cube_z = 10.5; hole_size_1 = 2.5; // dimensions rounded_corner = 5; // in mm // dimensions of box box_width = 105.5; // in mm (PCB x) box_depth = 71.5; // in mm (PCB y) box_height = 8; // in mm + bottom_thickness bottom_thickness = 3; // in mm // dimensions of cover top_thickness = 1; // in mm (not used) top_height = 3; // in mm (not used) main_case(); // Arbitrary Waveform Generator translate([4.25,1.5,3]) cube_with_hole(); translate([98.25,2,3]) cube_with_hole(); translate([98.25,62,3]) cube_with_hole(); translate([4.25,62,3]) cube_with_hole(); // USB Plug difference() { color("red",1.0) { translate([-1.5,36,10]) cube([5,13,5]); }; }; /*-------------------------------------------------------------------------------------------*/ /* maincase */ module main_case() { translate([5, 2.5, 0]) difference() { // outer case minkowski(){ cube([box_width-rounded_corner, box_depth-rounded_corner, box_height+bottom_thickness+top_height]); cylinder(r=rounded_corner,h=1); } // inner case translate([-rounded_corner/2, -rounded_corner/2, bottom_thickness]) cube([box_width, box_depth, box_height+bottom_thickness+top_height]); }; }; /* Spacer for PCB */ module cube_with_hole() { difference() { cube([cube_x,cube_y,cube_z]); translate([cube_x / 2, cube_y / 2, 10]) cube([hole_size_1, hole_size_1, cube_z], center=true); }; };