Parts work

This commit is contained in:
Matt McWilliams 2023-08-29 22:34:55 -04:00
parent d7a10f9737
commit b6b1f5d5ba
9 changed files with 18 additions and 16 deletions

View File

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

View File

@ -32,8 +32,8 @@ module m3_bolt_void (pos = [0, 0, 0], BoltH = 20, CapH = 3) {
} }
} }
module bolt_voids_2020 (pos = [0, 0, 0]) { module bolt_voids_2020 (pos = [0, 0, 0], rot = [0, 0, 0]) {
translate(pos) { translate(pos) rotate (rot) {
//translate([0, -25, 0]) rotate([90, 0, 0]) m3_bolt_void(CapH = 6); //translate([0, -25, 0]) rotate([90, 0, 0]) m3_bolt_void(CapH = 6);
translate([0, 20, 0]) rotate([-90, 0, 0]) m3_bolt_void(CapH = 20); translate([0, 20, 0]) rotate([-90, 0, 0]) m3_bolt_void(CapH = 20);
translate([-16, 0, 0]) rotate([0, -90, 0]) m3_bolt_void(CapH = 6, BoltH = 10); translate([-16, 0, 0]) rotate([0, -90, 0]) m3_bolt_void(CapH = 6, BoltH = 10);
@ -94,8 +94,8 @@ module rail_end (pos = [0, 0, 0], rot = [90, 0, 0], Motors = true) {
translate([RailSpacing / 2, 0, 5]) cube([RailVoid, RailVoid, 40], center = true); translate([RailSpacing / 2, 0, 5]) cube([RailVoid, RailVoid, 40], center = true);
//rails bolts //rails bolts
bolt_voids_2020([-RailSpacing / 2, 0, -15 + 5 + 6 ]); bolt_voids_2020([-RailSpacing / 2, 0, -15 + 5 + 7 ]);
rotate([0, 180, 0]) bolt_voids_2020([-RailSpacing / 2, 0, -15 + 5 + 6]); bolt_voids_2020([RailSpacing / 2, 0, -15 + 5 + 7], [0, 180, 0]);
if (Motors) { if (Motors) {
//camera drive motor //camera drive motor
@ -110,8 +110,8 @@ module rail_end (pos = [0, 0, 0], rot = [90, 0, 0], Motors = true) {
bolt_voids_motor([0, 0, 16 - 21]); bolt_voids_motor([0, 0, 16 - 21]);
} }
} else { } 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.4), h = 60, center = true, $fn = 100);
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.4), h = 60, center = true, $fn = 100);
} }
//linear motion rod //linear motion rod
@ -293,10 +293,12 @@ module debug () {
} }
PART = "bearing_rollerx"; PART = "rail_end";
if (PART == "rail_end") { if (PART == "rail_end") {
rail_end(); rail_end();
} else if (PART == "rail_end_idle") {
rail_end(Motors = false);
} else if (PART == "lens_sled") { } else if (PART == "lens_sled") {
lens_sled(); lens_sled();
} else if (PART == "bearing_roller") { } else if (PART == "bearing_roller") {

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
openscad -o "./stl/${3}" -D"PART=\"${2}\"" "./scad/${1}" openscad --enable=fast-csg -o "./stl/${3}" -D"PART=\"${2}\"" "./scad/${1}"
echo "Compiled ${3} from ${1}" echo "Compiled ${3} from ${1}"
if [ -f "./scad/common/c14n_stl.py" ]; then if [ -f "./scad/common/c14n_stl.py" ]; then
python3 ./scad/common/c14n_stl.py "./stl/${3}" python3 ./scad/common/c14n_stl.py "./stl/${3}"