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 22 additions and 2 deletions
Showing only changes of commit be50eb6fcf - Show all commits

View File

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

View File

@ -13,6 +13,9 @@ CaseSplitZ = 25;
ESP32Position = [0, -7, -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]) {
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 () {
difference () {
case_shell();
@ -90,7 +104,13 @@ module case_bottom () {
//micro usb
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);
//button
button_void(ButtonPosition);
//LEDS
LED_void(LEDPosition1);
LED_void(LEDPosition2);
}
esp32_mount(ESP32Position);
}