Work on ESP32 case and CPC socket

This commit is contained in:
Matt McWilliams 2023-03-14 21:45:18 -04:00
parent a7d784583a
commit be50eb6fcf
2 changed files with 22 additions and 2 deletions

View File

@ -4,7 +4,7 @@
include <./common/common.scad>; include <./common/common.scad>;
PART="cpc_9pin_plugx"; PART="cpc_9pin_socket";
PlugD = 15.75; PlugD = 15.75;
PlugH = 11.65; PlugH = 11.65;
@ -93,7 +93,7 @@ module cpc_9pin_socket () {
difference () { difference () {
union () { union () {
cylinder(r = R(CollarD-1), h = PlugH, center = true); cylinder(r = R(CollarD), h = PlugH, center = true);
} }
translate([0, 0, -9]) union () { translate([0, 0, -9]) union () {
cylinder(r = R(SocketD), h = PlugH, center = true); cylinder(r = R(SocketD), h = PlugH, center = true);

View File

@ -13,6 +13,9 @@ CaseSplitZ = 25;
ESP32Position = [0, -7, -5]; ESP32Position = [0, -7, -5];
ESP32Size = [25.85, 53.8, 1.5]; ESP32Size = [25.85, 53.8, 1.5];
ButtonPosition = [0, CaseY/2, 3];
LEDPosition1 = [10, CaseY/2, 3];
LEDPosition2 = [-10, CaseY/2, 3];
module pin_debug (pos = [0, 0, 0]) { module pin_debug (pos = [0, 0, 0]) {
translate(pos) cube([.6, .6, 6.26], center = true); translate(pos) cube([.6, .6, 6.26], center = true);
@ -83,6 +86,17 @@ module esp32_mount (pos = [0, 0, 0]) {
} }
} }
module button_void (pos = [0, 0, 0]) {
D = 6.9;
translate(pos) rotate([90, 0, 0]) cylinder(r = R(D), h = 10, center = true, $fn = 60);
}
module LED_void (pos = [0, 0, 0]) {
D = 5.1;
translate(pos) rotate([90, 0, 0]) cylinder(r = R(D), h = 10, center = true, $fn = 60);
}
module case_bottom () { module case_bottom () {
difference () { difference () {
case_shell(); case_shell();
@ -90,7 +104,13 @@ module case_bottom () {
//micro usb //micro usb
translate([0, -(CaseY/2), -7.8]) cube([9, 7, 4], center = true); translate([0, -(CaseY/2), -7.8]) cube([9, 7, 4], center = true);
translate([0, -(CaseY/2)-3, -7.8]) cube([12, 10, 7.7], center = true); translate([0, -(CaseY/2)-3, -7.8]) cube([12, 10, 7.7], center = true);
//button
button_void(ButtonPosition);
//LEDS
LED_void(LEDPosition1);
LED_void(LEDPosition2);
} }
esp32_mount(ESP32Position); esp32_mount(ESP32Position);
} }