Work on LED enclosure

This commit is contained in:
Matt McWilliams 2023-10-03 09:16:34 -04:00
parent b5f5b6461a
commit 66b18dd351
8 changed files with 33 additions and 17 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.39", "version": "1.8.40",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

2
app/package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.39", "version": "1.8.40",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy-app", "name": "mcopy-app",
"version": "1.8.39", "version": "1.8.40",
"description": "GUI for the mcopy small gauge film optical printer platform", "description": "GUI for the mcopy small gauge film optical printer platform",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.39", "version": "1.8.40",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.39", "version": "1.8.40",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mcopy", "name": "mcopy",
"version": "1.8.39", "version": "1.8.40",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"arduino": "file:app/lib/arduino", "arduino": "file:app/lib/arduino",

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.39", "version": "1.8.40",
"description": "Small gauge film optical printer platform", "description": "Small gauge film optical printer platform",
"main": "build.js", "main": "build.js",
"directories": { "directories": {

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.39", "version": "1.8.40",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -162,6 +162,7 @@ module LED_housing (pos = [0, 0, 0], rot = [0, 0, 0], OffsetZ = 0, Void = true)
translate([0, 0, -4]) 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, 5, -6]) cube([D + 3, 15, 6], center = true);
} }
translate([0, 14, -9]) rotate([45, 0, 0]) cube([20, 15, 10], center = true);
if (Void) { if (Void) {
translate([0, 0, -(10 / 2) + (H / 2) - 1.301]) union () { translate([0, 0, -(10 / 2) + (H / 2) - 1.301]) union () {
cylinder(r = (D / 2), h = H - (D / 2), center = true); cylinder(r = (D / 2), h = H - (D / 2), center = true);
@ -181,7 +182,20 @@ module LED_housing (pos = [0, 0, 0], rot = [0, 0, 0], OffsetZ = 0, Void = true)
} }
module LED_enclosure (pos = [0, 0, 0], rot = [0, 0, 0]) { module LED_enclosure (pos = [0, 0, 0], rot = [0, 0, 0]) {
translate(pos) rotate(rot) {
difference () {
translate([9, -9, 0]) cube([50, 50, 20], center = true);
translate([0, 0, 3]) difference () {
cube([63, 63, 20 + 1], center = true);
translate([-77, 0, 0]) rotate([0, 0, 45]) cube([63, 163, 20 + 1 + 1], center = true);
translate([0, 77, 0]) rotate([0, 0, 45]) cube([63, 163, 20 + 1 + 1], center = true);
translate([48, -48, 0]) rotate([0, 0, 45]) cube([63, 63, 20 + 1 + 1], center = true);
}
translate([50, -50, 0]) rotate([0, 0, 45]) cube([63, 63, 20 + 1 + 1], center = true);
translate([44, -44, 0]) rotate([0, 45, 45]) cube([6, 63, 6], center = true);
scale([1.01, 1.01, 1]) stepper_mount_block_positive(H = 20 + 1);
}
}
} }
module nub_void (pos = [0, 0, 0]) { module nub_void (pos = [0, 0, 0]) {
@ -350,7 +364,6 @@ module gate_key (pos = [0, 0, 0], rot = [0, 0, 0], KeyRot = 0) {
} }
} }
module panel (pos = [0, 0, 0], rot = [0, 0, 0], Mounts = "2020") { module panel (pos = [0, 0, 0], rot = [0, 0, 0], Mounts = "2020") {
MountBoltsX = (-PanelX / 2) + 10; MountBoltsX = (-PanelX / 2) + 10;
translate(pos) rotate(rot) { translate(pos) rotate(rot) {
@ -477,13 +490,14 @@ module debug () {
//NEMA17([0, -KeyDistance / 2, -50]); //NEMA17([0, -KeyDistance / 2, -50]);
//gate_key([0, KeyDistance / 2, -14], [0, 0, -90 + 45], KeyRot=90); //gate_key([0, KeyDistance / 2, -14], [0, 0, -90 + 45], KeyRot=90);
//gate_key([0, -KeyDistance / 2, -14], [0, 0, 180 + 45 ]); //gate_key([0, -KeyDistance / 2, -14], [0, 0, 180 + 45 ]);
translate([0, -KeyDistance / 2, -13]) { translate([0, -KeyDistance / 2, 0]) {
color("blue") LED_housing([0, -17.25, -4.5], [90, -90, 134], Void = true); color("blue") LED_housing([0, -17.25, -4.5 - 13], [90, -90, 134], Void = true);
color("green") LED_housing([0, -17.25, -4.5], [-90, 90, 134], OffsetZ = -24.25, Void = true); color("green") LED_housing([0, -17.25, -4.5 - 13], [-90, 90, 134], OffsetZ = -24.25, Void = true);
LED_enclosure([0, 0, -15]);
} }
/*translate([0, KeyDistance / 2, 0]) { /*translate([0, KeyDistance / 2, 0]) {
color("blue") LED_housing([0, -17.25, -4.5], [90, -90, 134], Void = true); color("blue") LED_housing([0, -17.25, -4.5 - 13], [90, -90, 134], Void = true);
color("green") LED_housing([0, -17.25, -4.5], [-90, 90, 134], OffsetZ = -24.25, Void = true); color("green") LED_housing([0, -17.25, -4.5 - 13], [-90, 90, 134], OffsetZ = -24.25, Void = true);
}*/ }*/
difference () { difference () {
@ -498,14 +512,14 @@ module debug () {
} }
//translate([50, 0, 0]) rotate([0, 0, 45]) cube([100, 250, 150], center = true); //translate([50, 0, 0]) rotate([0, 0, 45]) cube([100, 250, 150], center = true);
//translate([0, 0, -82.5 - 10]) cube([100, 250, 150], center = true); //translate([0, 0, -82.5 - 10]) cube([100, 250, 150], center = true);
} }
//color("red") translate([(-PanelX / 2) + 10, 0, (-PanelZ / 2) -10]) rotate([90, 0, 0]) 2020_tslot(PanelY); //color("red") translate([(-PanelX / 2) + 10, 0, (-PanelZ / 2) -10]) rotate([90, 0, 0]) 2020_tslot(PanelY);
//orbital_mount([(-PanelX / 2) - 4.5, 0, 40], [0, 90, 0]); //orbital_mount([(-PanelX / 2) - 4.5, 0, 40], [0, 90, 0]);
} }
PART = "led_housingx"; PART = "led_enclosure";
if (PART == "gate_key") { if (PART == "gate_key") {
gate_key(KeyRot = 90); gate_key(KeyRot = 90);
@ -513,6 +527,8 @@ if (PART == "gate_key") {
rotate([180, 0, 0]) panel(); rotate([180, 0, 0]) panel();
} else if (PART == "led_housing"){ } else if (PART == "led_housing"){
LED_housing(); LED_housing();
} else if (PART == "led_enclosure"){
LED_enclosure();
} else if (PART == "orbital_mount") { } else if (PART == "orbital_mount") {
orbital_mount(); orbital_mount();
} else { } else {