diff --git a/scad/cpc_connectors.scad b/scad/cpc_connectors.scad index 1c951df..0ba73b5 100644 --- a/scad/cpc_connectors.scad +++ b/scad/cpc_connectors.scad @@ -40,6 +40,7 @@ module guide (Diameter, Height, Angle, Width) { } } +// module plug_pin (X, Y, H) { translate([X, Y, 0]) { cylinder(r = R(PlugPinD), h = H, center = true, $fn = 40); @@ -120,12 +121,18 @@ module flange_guide_void (pos = [0, 0, 0], Z = 8) { module cpc_9pin_socket () { $fn = FN; BaseH = 3; - PinH = SocketH + BaseH + 1; - BoltVoid = 32; + + BoltVoid = 26; + BackingH = 8; + BackingD = 17; + + PinH = SocketH + BaseH + BackingH + 10; + difference () { union () { cylinder(r = R(SocketOuterD), h = SocketH + BaseH, center = true); - translate([0, 0, -((SocketH + BaseH) / 2) + (BaseH / 2)]) rounded_cube([40, 40, BaseH], d = 6, center = true, $fn = 30); + translate([0, 0, -((SocketH + BaseH) / 2) + (BaseH / 2)]) rounded_cube([34, 34, BaseH], d = 6, center = true, $fn = 40); + translate([0, 0, - (BaseH / 2) - BackingH]) cylinder(r = R(BackingD), h = BackingH, center = true); } translate([0, 0, BaseH]) { cylinder(r = R(SocketD), h = SocketH + BaseH, center = true); diff --git a/scad/projector_controller.scad b/scad/projector_controller.scad index a6ce9ca..1e921db 100644 --- a/scad/projector_controller.scad +++ b/scad/projector_controller.scad @@ -1,7 +1,7 @@ include ; include ; -PART="electronics_mount"; +PART="usb_protector"; CaseX = 121; CaseY = 172; @@ -255,10 +255,20 @@ module electronics_mount () { } } +module usb_protector () { + H = 3; + difference () { + rounded_cube([IN, IN, H], d = 5, center = true, $fn = 40); + cube([11.75, 11.75, H + 1], center = true); + } +} + if (PART == "electronics_mount") { electronics_mount(); } else if (PART == "case_mounts") { case_mounts(); +} else if (PART == "usb_protector") { + usb_protector(); } else { debug(); } \ No newline at end of file