From 99b63150ac98193719d6997096dc86fd0173b094 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Mon, 9 Oct 2023 20:52:58 -0400 Subject: [PATCH] Add more smoothing during homing step. Is running consistently but is ending with motor in wrong position each time. Very strange. --- app/data/cfg.json | 2 +- app/package-lock.json | 2 +- app/package.json | 2 +- data/cfg.json | 2 +- ino/mcopy_projector_firmware/mcopy_projector_firmware.ino | 2 +- .../mcopy_projector_homing_debug.ino | 2 +- package-lock.json | 4 ++-- package.json | 2 +- processing/mcopy/cfg.json | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/data/cfg.json b/app/data/cfg.json index 6083798..db45c0a 100644 --- a/app/data/cfg.json +++ b/app/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.53", + "version": "1.8.54", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/app/package-lock.json b/app/package-lock.json index 7b42f48..c210158 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.53", + "version": "1.8.54", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/app/package.json b/app/package.json index 1baab86..2be976e 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.8.53", + "version": "1.8.54", "description": "GUI for the mcopy small gauge film optical printer platform", "main": "main.js", "scripts": { diff --git a/data/cfg.json b/data/cfg.json index 6083798..db45c0a 100644 --- a/data/cfg.json +++ b/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.53", + "version": "1.8.54", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/ino/mcopy_projector_firmware/mcopy_projector_firmware.ino b/ino/mcopy_projector_firmware/mcopy_projector_firmware.ino index 18b9310..4254deb 100644 --- a/ino/mcopy_projector_firmware/mcopy_projector_firmware.ino +++ b/ino/mcopy_projector_firmware/mcopy_projector_firmware.ino @@ -4,7 +4,7 @@ Hardware - Arduino Uno + Arduino Mega Itead Dual Stepper Shield 2x NEMA17 Stepper Motors diff --git a/notes/mcopy_projector_homing_debug/mcopy_projector_homing_debug.ino b/notes/mcopy_projector_homing_debug/mcopy_projector_homing_debug.ino index e1902a3..07c6f39 100644 --- a/notes/mcopy_projector_homing_debug/mcopy_projector_homing_debug.ino +++ b/notes/mcopy_projector_homing_debug/mcopy_projector_homing_debug.ino @@ -80,7 +80,7 @@ long analogReadAccurate (uint8_t pin) { } long analogReadAccurateAverage (uint8_t pin) { - uint8_t count = 3; + uint8_t count = 5; double sum = 0.0; for (uint8_t i = 0; i < count; i++) { sum += analogReadAccurate(pin); diff --git a/package-lock.json b/package-lock.json index b5e6aa5..57b9924 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mcopy", - "version": "1.8.53", + "version": "1.8.54", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mcopy", - "version": "1.8.53", + "version": "1.8.54", "license": "MIT", "dependencies": { "arduino": "file:app/lib/arduino", diff --git a/package.json b/package.json index c710b1b..563fae6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcopy", - "version": "1.8.53", + "version": "1.8.54", "description": "Small gauge film optical printer platform", "main": "build.js", "directories": { diff --git a/processing/mcopy/cfg.json b/processing/mcopy/cfg.json index 6083798..db45c0a 100644 --- a/processing/mcopy/cfg.json +++ b/processing/mcopy/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.8.53", + "version": "1.8.54", "ext_port": 1111, "profiles": { "mcopy": {