Changed idle-current to 1 amp

This commit is contained in:
David Carley
2021-03-09 23:12:07 -08:00
parent 07adf6d93e
commit 94118706c8
3 changed files with 37 additions and 35 deletions

View File

@@ -147,7 +147,9 @@ class Config(object):
for motor in config['motors']: for motor in config['motors']:
motor['stall-microstep'] = 8 motor['stall-microstep'] = 8
motor['stall-current'] = 1 motor['stall-current'] = 1
motor['idle-current'] = 1
motor['max-accel'] = 750 motor['max-accel'] = 750
motor['latch-backoff'] = 5
if motor['axis'] == 'X' or motor['axis'] == 'Y': if motor['axis'] == 'X' or motor['axis'] == 'Y':
motor['search-velocity'] = 1.688 motor['search-velocity'] = 1.688
motor['max-velocity'] = 10 motor['max-velocity'] = 10

View File

@@ -38,9 +38,9 @@
"max-velocity": 10, "max-velocity": 10,
"search-velocity": 1.688, "search-velocity": 1.688,
"travel-per-rev": 10, "travel-per-rev": 10,
"idle-current": 0.5, "idle-current": 1,
"drive-current": 2.8, "drive-current": 2.8,
"latch-backoff": 5.001, "latch-backoff": 5,
"enabled": true, "enabled": true,
"homing-mode": "stall-min", "homing-mode": "stall-min",
"reverse": false, "reverse": false,
@@ -48,7 +48,7 @@
"min-soft-limit": 0, "min-soft-limit": 0,
"max-switch": "disabled", "max-switch": "disabled",
"step-angle": 1.8, "step-angle": 1.8,
"stall-current": 1.0, "stall-current": 1,
"stall-sample-time": 200, "stall-sample-time": 200,
"microsteps": 16, "microsteps": 16,
"stall-volts": 2, "stall-volts": 2,
@@ -64,9 +64,9 @@
"max-velocity": 10, "max-velocity": 10,
"search-velocity": 1.688, "search-velocity": 1.688,
"travel-per-rev": 10, "travel-per-rev": 10,
"idle-current": 0.5, "idle-current": 1,
"drive-current": 2.8, "drive-current": 2.8,
"latch-backoff": 5.001, "latch-backoff": 5,
"enabled": true, "enabled": true,
"homing-mode": "stall-min", "homing-mode": "stall-min",
"reverse": false, "reverse": false,
@@ -86,29 +86,29 @@
}, },
{ {
"latch-velocity": 0.1, "latch-velocity": 0.1,
"max-accel": 10, "max-accel": 750,
"max-velocity": 17, "max-velocity": 10,
"search-velocity": 0.5, "search-velocity": 1.688,
"travel-per-rev": 10, "travel-per-rev": 10,
"idle-current": 0.5, "idle-current": 1,
"drive-current": 2.8, "drive-current": 2.8,
"latch-backoff": 5, "latch-backoff": 5,
"enabled": true, "enabled": true,
"homing-mode": "manual", "homing-mode": "stall-min",
"reverse": false, "reverse": false,
"stall-microstep": 8, "stall-microstep": 8,
"min-soft-limit": 0, "min-soft-limit": 0,
"max-switch": "disabled", "max-switch": "disabled",
"step-angle": 1.8, "step-angle": 1.8,
"stall-current": 1.5, "stall-current": 1,
"stall-sample-time": 50, "stall-sample-time": 200,
"microsteps": 16, "microsteps": 16,
"stall-volts": 6, "stall-volts": 2,
"axis": "Y", "axis": "Y",
"min-switch": "disabled", "min-switch": "disabled",
"max-jerk": 50, "max-jerk": 1000,
"max-soft-limit": 752, "max-soft-limit": 410,
"zero-backoff": 1 "zero-backoff": 1.5
}, },
{ {
"latch-velocity": 0.1, "latch-velocity": 0.1,
@@ -116,9 +116,9 @@
"max-velocity": 3, "max-velocity": 3,
"search-velocity": 0.675, "search-velocity": 0.675,
"travel-per-rev": 4, "travel-per-rev": 4,
"idle-current": 0.5, "idle-current": 1,
"drive-current": 2.8, "drive-current": 2.8,
"latch-backoff": 5.001, "latch-backoff": 5,
"enabled": true, "enabled": true,
"homing-mode": "stall-max", "homing-mode": "stall-max",
"reverse": true, "reverse": true,

View File

@@ -38,9 +38,9 @@
"max-velocity": 10, "max-velocity": 10,
"search-velocity": 1.688, "search-velocity": 1.688,
"travel-per-rev": 10, "travel-per-rev": 10,
"idle-current": 0.5, "idle-current": 1,
"drive-current": 2.8, "drive-current": 2.8,
"latch-backoff": 5.001, "latch-backoff": 5,
"enabled": true, "enabled": true,
"homing-mode": "stall-min", "homing-mode": "stall-min",
"reverse": false, "reverse": false,
@@ -64,9 +64,9 @@
"max-velocity": 10, "max-velocity": 10,
"search-velocity": 1.688, "search-velocity": 1.688,
"travel-per-rev": 10, "travel-per-rev": 10,
"idle-current": 0.5, "idle-current": 1,
"drive-current": 2.8, "drive-current": 2.8,
"latch-backoff": 5.001, "latch-backoff": 5,
"enabled": true, "enabled": true,
"homing-mode": "stall-min", "homing-mode": "stall-min",
"reverse": false, "reverse": false,
@@ -86,29 +86,29 @@
}, },
{ {
"latch-velocity": 0.1, "latch-velocity": 0.1,
"max-accel": 10, "max-accel": 750,
"max-velocity": 17, "max-velocity": 10,
"search-velocity": 0.5, "search-velocity": 1.688,
"travel-per-rev": 10, "travel-per-rev": 10,
"idle-current": 0.5, "idle-current": 1,
"drive-current": 2.8, "drive-current": 2.8,
"latch-backoff": 5, "latch-backoff": 5,
"enabled": true, "enabled": true,
"homing-mode": "manual", "homing-mode": "stall-min",
"reverse": false, "reverse": false,
"stall-microstep": 8, "stall-microstep": 8,
"min-soft-limit": 0, "min-soft-limit": 0,
"max-switch": "disabled", "max-switch": "disabled",
"step-angle": 1.8, "step-angle": 1.8,
"stall-current": 1.5, "stall-current": 1,
"stall-sample-time": 50, "stall-sample-time": 200,
"microsteps": 16, "microsteps": 16,
"stall-volts": 6, "stall-volts": 2,
"axis": "Y", "axis": "Y",
"min-switch": "disabled", "min-switch": "disabled",
"max-jerk": 50, "max-jerk": 1000,
"max-soft-limit": 752, "max-soft-limit": 816,
"zero-backoff": 1 "zero-backoff": 1.5
}, },
{ {
"latch-velocity": 0.1, "latch-velocity": 0.1,
@@ -116,9 +116,9 @@
"max-velocity": 3, "max-velocity": 3,
"search-velocity": 0.675, "search-velocity": 0.675,
"travel-per-rev": 4, "travel-per-rev": 4,
"idle-current": 0.5, "idle-current": 1,
"drive-current": 2.8, "drive-current": 2.8,
"latch-backoff": 5.001, "latch-backoff": 5,
"enabled": true, "enabled": true,
"homing-mode": "stall-max", "homing-mode": "stall-max",
"reverse": true, "reverse": true,