Add LED holder concept to projector panel design

This commit is contained in:
Matt McWilliams 2023-08-29 17:05:53 -04:00
parent dcbb57f732
commit d778adc7d0
1 changed files with 54 additions and 8 deletions

View File

@ -26,14 +26,10 @@ NubVoidD = 5.5;
NubVoidX = 3.5; NubVoidX = 3.5;
NubX = (-PanelX / 2) + 66; NubX = (-PanelX / 2) + 66;
module debug () { LEDD = 5.0;
panel(); LEDPin = 0.6;
NEMA17([0, KeyDistance / 2, -50]); LEDPinSpacing = 2.54;
//NEMA17([0, -KeyDistance / 2, -50]); LEDH = 8.6;
gate_key([0, KeyDistance / 2, -14], [0, 0, 45]);
gate_key([0, -KeyDistance / 2, -14], [0, 0, 45]);
}
module bearing_void (pos = [0, 0, 0], width= 8) { module bearing_void (pos = [0, 0, 0], width= 8) {
fuzz = 0.3; fuzz = 0.3;
@ -121,6 +117,48 @@ module LED_prop (pos = [0, 0, 0], rot = [0, 0, 0], H = 15, flip = false) {
} }
} }
module LED (pos = [0, 0, 0], rot = [0, 0, 0]) {
$fn = 90;
D = LEDD;
H = LEDH;
translate(pos) rotate(rot) {
cylinder(r = (D / 2), h = H - (D / 2), center = true);
translate([0, 0, (H / 2) - (D / 4)]) sphere(r = D / 2);
translate([0, 0, -(H / 2) + (D / 4) + (1 / 2)]) difference () {
cylinder(r = (6 / 2), h = 1, center = true);
translate([5.5, 0, 0]) cube([6, 6, 1 + 1], center = true);
}
translate([-LEDPinSpacing / 2, 0, -(29.5 / 2) - (H / 2) + 2]) cube([LEDPin, LEDPin, 29.5], center = true);
translate([LEDPinSpacing / 2, 0, -(27 / 2) - (H / 2) + 2]) cube([LEDPin, LEDPin, 27], center = true);
}
}
module LED_housing (pos = [0, 0, 0], rot = [0, 0, 0]) {
$fn = 90;
D = LEDD + 0.2;
H = LEDH;
Opening = 3;
translate(pos) rotate(rot) {
difference () {
union() {
cube([D + 3, D + 3, 10], center = true);
translate([0, 0, -4]) cube([D + 3, D + 3, 10], center = true);
translate([0, 5, -6]) cube([D + 3, 15, 6], center = true);
}
translate([0, 0, -(10 / 2) + (H / 2) - 1.301]) union () {
cylinder(r = (D / 2), h = H - (D / 2), center = true);
translate([0, 0, (H / 2) - (D / 4)]) sphere(r = D / 2);
}
cylinder(r = (Opening / 2), h = 10 + 1, center = true);
translate([0, 0, -7]) cylinder(r = (6.02 / 2), h = 4.01, center = true);
translate([0, 7.5, -8]) difference () {
cube([6.02, 15, 3], center = true);
cube([1.5, 15 + 1, 3 + 1], center = true);
}
}
}
}
module nub_void (pos = [0, 0, 0]) { module nub_void (pos = [0, 0, 0]) {
translate(pos) { translate(pos) {
translate([NubVoidX / 2, 0, 0]) cylinder(r = R(NubVoidD), h = PanelZ + 1, center = true, $fn = 50); translate([NubVoidX / 2, 0, 0]) cylinder(r = R(NubVoidD), h = PanelZ + 1, center = true, $fn = 50);
@ -260,6 +298,14 @@ module projector () {
} }
module debug () {
panel();
NEMA17([0, KeyDistance / 2, -50]);
//NEMA17([0, -KeyDistance / 2, -50]);
gate_key([0, KeyDistance / 2, -14], [0, 0, 45]);
gate_key([0, -KeyDistance / 2, -14], [0, 0, 45]);
}
PART = "panelx"; PART = "panelx";
if (PART == "gate_key") { if (PART == "gate_key") {