// ac_iec_mnt.scad // A mounting block for a standard IEC A/C socket used in my // AC control panel for the A/C feed cord. // // By L Glaister VE7IT April 3 2019 // all dimensions in mm. // $fn = 48; wid = 60; // width of block dep = 30; // ht = 22; // thickness plug_hole_size = 0.11 * 25.4; // tap hole for 6-32 c2c_plug = 39.7; // relay base center to center mounting holes c2c_base = c2c_plug + 3 * plug_hole_size; // cutout cavity for plug solder contacts int_w = 27.2; int_ht = 19.5; int_d = dep-2; rotate([-90,0,0]) // print it on its back difference() { // mounting block cube([wid,dep,ht],center=true); // all the holes and bits to subtract out union() { // base mounting holes (tap for 6-32) translate([c2c_base/2,0,0]) cylinder(h=2*ht,d=plug_hole_size,center=true); translate([-c2c_base/2,0,0]) cylinder(h=2*ht,d=plug_hole_size,center=true); // plug mounting holes (tap for 6-32) rotate([90,0,0]) translate([c2c_plug/2,0,0]) cylinder(h=dep*2,d=plug_hole_size,center=true); rotate([90,0,0]) translate([-c2c_plug/2,0,0]) cylinder(h=dep*2,d=plug_hole_size,center=true); // hole in rear for wires to exit rotate([90,0,0]) cylinder(h=dep*2,d=6,center=true); // cavity for solder connections translate([0,-2,0]) cube([int_w,int_d,int_ht],center=true); // knock the corners off to speed printing translate([wid/2,0,ht/2]) rotate([90,0,0]) cylinder(h=dep*2,d=ht,center=true); translate([-wid/2,0,ht/2]) rotate([90,0,0]) cylinder(h=dep*2,d=ht,center=true); }; };