canon_ble #82

Merged
mattmcw merged 149 commits from canon_ble into main 2023-08-01 03:38:52 +00:00
2 changed files with 21 additions and 4 deletions
Showing only changes of commit 9e7990851e - Show all commits

View File

@ -40,6 +40,7 @@ module guide (Diameter, Height, Angle, Width) {
} }
} }
//
module plug_pin (X, Y, H) { module plug_pin (X, Y, H) {
translate([X, Y, 0]) { translate([X, Y, 0]) {
cylinder(r = R(PlugPinD), h = H, center = true, $fn = 40); 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 () { module cpc_9pin_socket () {
$fn = FN; $fn = FN;
BaseH = 3; BaseH = 3;
PinH = SocketH + BaseH + 1;
BoltVoid = 32; BoltVoid = 26;
BackingH = 8;
BackingD = 17;
PinH = SocketH + BaseH + BackingH + 10;
difference () { difference () {
union () { union () {
cylinder(r = R(SocketOuterD), h = SocketH + BaseH, center = true); 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]) { translate([0, 0, BaseH]) {
cylinder(r = R(SocketD), h = SocketH + BaseH, center = true); cylinder(r = R(SocketD), h = SocketH + BaseH, center = true);

View File

@ -1,7 +1,7 @@
include <arduino.scad>; include <arduino.scad>;
include <common/common.scad>; include <common/common.scad>;
PART="electronics_mount"; PART="usb_protector";
CaseX = 121; CaseX = 121;
CaseY = 172; 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") { if (PART == "electronics_mount") {
electronics_mount(); electronics_mount();
} else if (PART == "case_mounts") { } else if (PART == "case_mounts") {
case_mounts(); case_mounts();
} else if (PART == "usb_protector") {
usb_protector();
} else { } else {
debug(); debug();
} }