Work on adding reinforcement to the electronics mount.

This commit is contained in:
Matt McWilliams 2024-11-09 17:09:45 -05:00
parent 9a526eac71
commit e771056313
8 changed files with 88 additions and 19 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.146", "version": "1.8.147",
"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.146", "version": "1.8.147",
"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.146", "version": "1.8.147",
"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.146", "version": "1.8.147",
"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.146", "version": "1.8.147",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mcopy", "name": "mcopy",
"version": "1.8.146", "version": "1.8.147",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"alert": "file:app/lib/alert", "alert": "file:app/lib/alert",

View File

@ -1,6 +1,6 @@
{ {
"name": "mcopy", "name": "mcopy",
"version": "1.8.146", "version": "1.8.147",
"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.146", "version": "1.8.147",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -1,8 +1,6 @@
include <arduino.scad>; include <arduino.scad>;
include <common/common.scad>; include <common/common.scad>;
PART="electronics_mount";
CaseX = 121; CaseX = 121;
CaseY = 172; CaseY = 172;
CaseZ = 56; CaseZ = 56;
@ -30,6 +28,8 @@ RelayPosition = [25, -25, 1];
ResistorPosition = [-37, 18, 0]; ResistorPosition = [-37, 18, 0];
CapacitorPosition = [-35, -40, 0]; CapacitorPosition = [-35, -40, 0];
ReinforcementBoltSpacingX = 65;
/** /**
* DEBUG MODULES * DEBUG MODULES
**/ **/
@ -124,18 +124,23 @@ module capacitor_debug (pos = [0, 0, 0]) {
} }
} }
module debug () {
case_debug();
translate([0, 0, -CaseInnerZ/2+(CaseMountsH)]) electronics_mount();
relay_module_debug([RelayPosition[0], RelayPosition[1], RelayPosition[2]-15]);
resistor_debug([ResistorPosition[0], ResistorPosition[1], ResistorPosition[2] -8]);
capacitor_debug([CapacitorPosition[0], CapacitorPosition[1], CapacitorPosition[2] - 8]);
}
/** /**
* CASE MODULES * CASE MODULES
**/ **/
module m3_bolt (pos = [0, 0, 0], h = 10, pad = 0) {
translate(pos) cylinder(r = R(3.25 + pad), h = h, center = true, $fn = 30);
}
module arduino_bolts_voids (pos = [0, 0, 0], rot = [0, 0, 0], h = 10, pad = 0) {
translate(pos) rotate(rot) {
m3_bolt([-2.5, -15.25, 0], h, pad);
m3_bolt([-50.75, -14, 0], h, pad);
m3_bolt([-45.7, -66, 0], h, pad);
m3_bolt([-17.75, -66, 0], h, pad);
}
}
module arduino_mount_reinforcement () { module arduino_mount_reinforcement () {
X = 57.25; X = 57.25;
Y = 71; Y = 71;
@ -240,18 +245,69 @@ module capacitor_mount (pos = [0, 0, 0]) {
} }
} }
module electronics_attachment_bolt_reinforcement (pos = [0, 0, 0]) {
translate(pos) translate([-28, -4, -2]) {
translate([ReinforcementBoltSpacingX / 2, -4, 0]) {
cylinder(r = R(12), h = 5, center = true, $fn = 30);
}
translate([-ReinforcementBoltSpacingX / 2, -4, 0]) {
cylinder(r = R(12), h = 5, center = true, $fn = 30);
}
}
}
module electronics_attachment_bolt_voids (pos = [0, 0, 0]) {
translate(pos) translate([-28, -4, 0]) {
translate([ReinforcementBoltSpacingX / 2, -4, 0]) {
cylinder(r = R(3.25), h = 20 + 1, center = true, $fn = 30);
translate([0, 0, -4]) m3_nut();
translate([6, 0, 0]) cylinder(r = R(3.25), h = 20 + 1, center = true, $fn = 30);
}
translate([-ReinforcementBoltSpacingX / 2, -4, 0]) {
cylinder(r = R(3.25), h = 20 + 1, center = true, $fn = 30);
translate([0, 0, -4]) m3_nut();
}
}
}
//BOM: 4, M3 hex cap bolt 8mm,N/A,Attach Arduino Uno
module electronics_mount () { module electronics_mount () {
difference () { difference () {
union() { union() {
case_mounts([0, 0, 0]); case_mounts([0, 0, 0]);
translate(ArduinoPosition) { translate(ArduinoPosition) {
scale([1.02, 1.02, 1]) rotate([0, 0, 180]) bumper(); rotate([0, 0, 180]) bumper();
arduino_mount_reinforcement(); arduino_mount_reinforcement();
} }
relay_mount(RelayPosition); relay_mount(RelayPosition);
resistor_mount(ResistorPosition); resistor_mount(ResistorPosition);
capacitor_mount(CapacitorPosition); capacitor_mount(CapacitorPosition);
electronics_attachment_bolt_reinforcement(ArduinoPosition);
} }
arduino_bolts_voids(ArduinoPosition);
electronics_attachment_bolt_voids(ArduinoPosition);
}
//translate([35.1, 76.8, 4.5]) rotate([0, 0, 180]) arduino();
}
module electronics_attachment () {
difference () {
cube([70, 16, 19.75], center = true);
translate([1/2, 0, -15.5]) cube([58, 20 + 1, 20], center = true);
translate([5.5, 0, -11.5]) cube([48, 20 + 1, 20], center = true);
translate([11.75, 00, -4.5]) cube([13, 20 + 1, 20], center = true);
translate([-18, 00, -5]) cube([10, 20 + 1, 20], center = true);
translate([ReinforcementBoltSpacingX / 2, 0, 0]) {
cylinder(r = R(3.25), h = 20 + 1, center = true, $fn = 30);
translate([0, 0, 10]) cylinder(r = R(6.5), h = 20 , center = true, $fn = 30);
}
translate([-ReinforcementBoltSpacingX / 2, 0, 0]) {
cylinder(r = R(3.25), h = 20 + 1, center = true, $fn = 30);
translate([0, 0, 10]) cylinder(r = R(6.5), h = 20 , center = true, $fn = 30);
}
arduino_bolts_voids([28, 6.5, 0], h = 20, pad = 5);
} }
} }
@ -263,8 +319,21 @@ module usb_protector () {
} }
} }
module debug () {
case_debug();
translate([0, 0, -CaseInnerZ/2+(CaseMountsH)]) electronics_mount();
relay_module_debug([RelayPosition[0], RelayPosition[1], RelayPosition[2]-15]);
resistor_debug([ResistorPosition[0], ResistorPosition[1], ResistorPosition[2] -8]);
capacitor_debug([CapacitorPosition[0], CapacitorPosition[1], CapacitorPosition[2] - 8]);
translate(ArduinoPosition) translate([-27.5, -8, -10]) electronics_attachment();
}
PART="electronics_mount";
if (PART == "electronics_mount") { if (PART == "electronics_mount") {
electronics_mount(); electronics_mount();
} else if (PART == "electronics_attachment") {
electronics_attachment();
} else if (PART == "case_mounts") { } else if (PART == "case_mounts") {
case_mounts(); case_mounts();
} else if (PART == "usb_protector") { } else if (PART == "usb_protector") {