Add structures to insert 2020 Tslot into to make rails fit more snug

This commit is contained in:
Matt McWilliams 2023-08-23 23:35:00 -04:00
parent f16795b11c
commit b30c637c10
10 changed files with 25235 additions and 16915 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "1.8.11", "version": "1.8.12",
"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.11", "version": "1.8.12",
"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.11", "version": "1.8.12",
"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.11", "version": "1.8.12",
"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.11", "version": "1.8.12",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "mcopy", "name": "mcopy",
"version": "1.8.11", "version": "1.8.12",
"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.11", "version": "1.8.12",
"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.11", "version": "1.8.12",
"ext_port": 1111, "ext_port": 1111,
"profiles": { "profiles": {
"mcopy": { "mcopy": {

View File

@ -15,7 +15,7 @@ RailSpacing = 100; //160
ThreadedRodSpacing = 50; ThreadedRodSpacing = 50;
RailEndX = RailSpacing + 40; RailEndX = RailSpacing + 40;
TNutVoid = 17; TNutVoid = 17;
BoltSpacingX = 110; BoltSpacingX = RailSpacing - 30;
module rail_debug (H = 175) { module rail_debug (H = 175) {
color("lime") linear_extrude(height=H) { color("lime") linear_extrude(height=H) {
@ -72,46 +72,57 @@ module bearing_void (pos = [0, 0, 0], Width = 8, Hole = true, Fuzz = 0.1) {
} }
} }
module mounting_bolt_void (pos = [0, 0, 0], rot = [0, 0, 0]) {
translate(pos) rotate(rot) {
cylinder(r = R(10), h = 150, center = true, $fn = 40);
translate([0, 0, 0]) cylinder(r = R(20), h = 8, center = true, $fn = 60);
}
}
module rail_end (pos = [0, 0, 0], rot = [90, 0, 0], Motors = true) { module rail_end (pos = [0, 0, 0], rot = [90, 0, 0], Motors = true) {
Z = 95; Z = 95;
RailVoid = 20.4; RailVoid = 20.4;
translate(pos) rotate(rot) difference () { translate(pos) rotate(rot) {
difference () { difference () {
translate([0, -10, 20]) rounded_cube([RailEndX, Z, 80], d = 10, center = true, $fn = 50); difference () {
translate([0, 10, 50]) rotate([0, 90, 0]) rounded_cube([60, Z, RailEndX + 1], d = 10, center = true, $fn = 50); translate([0, -10, 20]) rounded_cube([RailEndX, Z, 80], d = 10, center = true, $fn = 50);
} translate([0, 10, 50]) rotate([0, 90, 0]) rounded_cube([60, Z, RailEndX + 1], d = 10, center = true, $fn = 50);
//rails
translate([-RailSpacing / 2, 0, 5]) cube([RailVoid, RailVoid, 40], center = true);
translate([RailSpacing / 2, 0, 5]) cube([RailVoid, RailVoid, 40], center = true);
//rails bolts
bolt_voids_2020([-RailSpacing / 2, 0, 0]);
rotate([0, 180, 0]) bolt_voids_2020([-RailSpacing / 2, 0, 0]);
if (Motors) {
//camera drive motor
translate([ThreadedRodSpacing / 2, 0, 0]) {
cylinder(r = R(NEMA17PadD + 0.5), h = 60, center = true, $fn = 100);
bolt_voids_motor([0, 0, 16 - 21]);
} }
//lens drive motor //rails
translate([-ThreadedRodSpacing / 2, 0, 0]) { translate([-RailSpacing / 2, 0, 5]) cube([RailVoid, RailVoid, 40], center = true);
cylinder(r = R(NEMA17PadD + 0.5), h = 60, center = true, $fn = 100); translate([RailSpacing / 2, 0, 5]) cube([RailVoid, RailVoid, 40], center = true);
bolt_voids_motor([0, 0, 16 - 21]);
//rails bolts
bolt_voids_2020([-RailSpacing / 2, 0, -15 + 5 + 6 ]);
rotate([0, 180, 0]) bolt_voids_2020([-RailSpacing / 2, 0, -15 + 5 + 6]);
if (Motors) {
//camera drive motor
translate([ThreadedRodSpacing / 2, 0, 0]) {
cylinder(r = R(NEMA17PadD + 0.5), h = 60, center = true, $fn = 100);
bolt_voids_motor([0, 0, 16 - 21]);
}
//lens drive motor
translate([-ThreadedRodSpacing / 2, 0, 0]) {
cylinder(r = R(NEMA17PadD + 0.5), h = 60, center = true, $fn = 100);
bolt_voids_motor([0, 0, 16 - 21]);
}
} else {
translate([-ThreadedRodSpacing / 2, 0, 0]) cylinder(r = R(LinearBearingOuterDiameter + 0.5), h = 60, center = true, $fn = 100);
translate([-ThreadedRodSpacing / 2, 0, 0]) cylinder(r = R(LinearBearingOuterDiameter + 0.5), h = 60, center = true, $fn = 100);
} }
} else {
translate([-ThreadedRodSpacing / 2, 0, 0]) cylinder(r = R(LinearBearingOuterDiameter + 0.5), h = 60, center = true, $fn = 100); //linear motion rod
translate([-ThreadedRodSpacing / 2, 0, 0]) cylinder(r = R(LinearBearingOuterDiameter + 0.5), h = 60, center = true, $fn = 100); translate([0, 0, 5]) cylinder(r = R(ThreadDiameter), h = 40, center = true, $fn = 50);
//mounting bolts
mounting_bolt_void([BoltSpacingX / 2, -41, 40], [90, 0, 0]);
mounting_bolt_void([-BoltSpacingX / 2, -41, 40], [90, 0, 0]);
} }
end_2020([-RailSpacing / 2, 0, -15 + 2.4]);
//linear motion rod end_2020([RailSpacing / 2, 0, -15 + 2.4]);
translate([0, 0, 5]) cylinder(r = R(ThreadDiameter), h = 40, center = true, $fn = 50);
//mounting bolts
translate([BoltSpacingX / 2, 0, 40]) rotate([90, 0, 0]) cylinder(r = R(10), h = 150, center = true, $fn = 40);
translate([-BoltSpacingX / 2, 0, 40]) rotate([90, 0, 0]) cylinder(r = R(10), h = 150, center = true, $fn = 40);
} }
} }
@ -172,6 +183,7 @@ module lens_sled (pos = [0, 0, 0], rot = [90, 0, 0]) {
Y = 40; Y = 40;
LensDriveX = -ThreadedRodSpacing / 2; LensDriveX = -ThreadedRodSpacing / 2;
RailVoid = 20.4; RailVoid = 20.4;
LensFrameM3VoidsZ = (60 / 2) + (40 / 2) - 12.5 + 5 + 6;
translate(pos) rotate(rot) { translate(pos) rotate(rot) {
difference () { difference () {
union () { union () {
@ -192,16 +204,35 @@ module lens_sled (pos = [0, 0, 0], rot = [90, 0, 0]) {
translate([-RailSpacing / 2, 53.5, 0]) cube([RailVoid, 32, RailVoid], center = true); translate([-RailSpacing / 2, 53.5, 0]) cube([RailVoid, 32, RailVoid], center = true);
// //
lens_sled_m3_bolt_voids([(RailEndX / 2) - (Y / 2), (60 / 2) + (40 / 2) - 5, 0]); lens_sled_m3_bolt_voids([(RailEndX / 2) - (Y / 2), LensFrameM3VoidsZ, 0]);
lens_sled_m3_bolt_voids([(-RailEndX / 2) + (Y / 2), (60 / 2) + (40 / 2) - 5, 0]); lens_sled_m3_bolt_voids([(-RailEndX / 2) + (Y / 2), LensFrameM3VoidsZ, 0]);
} }
//rail ends for snug fit
end_2020([(RailEndX / 2) - (Y / 2), LensFrameM3VoidsZ - (6 / 2) - 5.1, 0], [90, 0, 0]);
end_2020([(-RailEndX / 2) + (Y / 2), LensFrameM3VoidsZ - (6 / 2) - 5.1, 0], [90, 0, 0]);
//debug //debug
//translate([-ThreadedRodSpacing / 2, 0, -(Y / 2) + 8.4]) T_nut(); //translate([-ThreadedRodSpacing / 2, 0, -(Y / 2) + 8.4]) T_nut();
//translate([-ThreadedRodSpacing / 2, 0, (Y / 2) - 7.5]) rotate([180, 0, 0]) T_nut(); //translate([-ThreadedRodSpacing / 2, 0, (Y / 2) - 7.5]) rotate([180, 0, 0]) T_nut();
} }
} }
module end_2020 (pos = [0, 0, 0], rot = [0, 0, 0], Z = 5) {
translate(pos) rotate(rot) {
difference () {
union () {
cube([24, 5, Z], center = true);
cube([5, 24, Z], center = true);
cube([16.6, 11, Z], center = true);
cube([11, 16.5, Z], center = true);
}
cube([8, 8, Z + 1], center = true);
rotate([0, 0, 45]) cube([2, 40, Z + 1], center = true);
rotate([0, 0, -45]) cube([2, 40, Z + 1], center = true);
}
}
}
module bearing_roller (pos = [0, 0, 0], rot = [0, 0, 0]) { module bearing_roller (pos = [0, 0, 0], rot = [0, 0, 0]) {
A = 5.75; A = 5.75;
D1 = 25.4; D1 = 25.4;
@ -232,11 +263,11 @@ module debug () {
//translate([50 , -90 - 10, 22]) rotate([0, 90, 0]) bearing_void(); //translate([50 , -90 - 10, 22]) rotate([0, 90, 0]) bearing_void();
rail_end(); rail_end();
//camera_sled([0, -90, 0]); //camera_sled([0, -90, 0]);
difference () { /*difference () {
lens_sled([0, -90, 0]); lens_sled([0, -90, 0]);
translate([ 50 + (RailSpacing / 2), -90 - 50, 0]) cube([100, 100, 100], center = true); translate([ 50 + (RailSpacing / 2), -90 - 50, 0]) cube([100, 100, 100], center = true);
//translate([ -50 - (RailSpacing / 2), -90, 0]) cube([100, 100, 100], center = true); //translate([ -50 - (RailSpacing / 2), -90, 0]) cube([100, 100, 100], center = true);
} }*/
//color("green") translate([RailSpacing / 2, -90 + 15, 20]) rotate([0, 0, 0]) linear_extrude(height=100) 2020_profile(); //color("green") translate([RailSpacing / 2, -90 + 15, 20]) rotate([0, 0, 0]) linear_extrude(height=100) 2020_profile();
//difference () { //difference () {
@ -261,6 +292,7 @@ module debug () {
//translate([-ThreadedRodSpacing / 2, 40, 0]) rotate([90, 0, 0]) color("blue") NEMA17(); //translate([-ThreadedRodSpacing / 2, 40, 0]) rotate([90, 0, 0]) color("blue") NEMA17();
} }
PART = "bearing_rollerx"; PART = "bearing_rollerx";
if (PART == "rail_end") { if (PART == "rail_end") {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff