aboutsummaryrefslogtreecommitdiffstats
path: root/config/generic-rambo.cfg
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-08-25 13:52:10 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-08-26 18:27:21 -0400
commit931811ab59d5aa1960a42e7a5a772e82111b17a2 (patch)
tree383e49900f36cecfda7241a915d02cda3ce0a4d7 /config/generic-rambo.cfg
parent9d75c3b0cace034ef8d51be1b38b705db33ac793 (diff)
downloadkutter-931811ab59d5aa1960a42e7a5a772e82111b17a2.tar.gz
kutter-931811ab59d5aa1960a42e7a5a772e82111b17a2.tar.xz
kutter-931811ab59d5aa1960a42e7a5a772e82111b17a2.zip
chipmisc: Add support for configuring ad5206 digipots
Support an "ad5206" config section so that one can configure the digipots found on Reprap "RAMBo" boards. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'config/generic-rambo.cfg')
-rw-r--r--config/generic-rambo.cfg19
1 files changed, 12 insertions, 7 deletions
diff --git a/config/generic-rambo.cfg b/config/generic-rambo.cfg
index f01eb82f..caaa6e23 100644
--- a/config/generic-rambo.cfg
+++ b/config/generic-rambo.cfg
@@ -76,13 +76,6 @@ pin: PH5
[mcu]
serial: /dev/ttyACM0
-custom:
- # Initialize digipot
- send_spi_message pin=PD7 msg=0487 # X = ~0.75A
- send_spi_message pin=PD7 msg=0587 # Y = ~0.75A
- send_spi_message pin=PD7 msg=0387 # Z = ~0.75A
- send_spi_message pin=PD7 msg=00A5 # E0
- send_spi_message pin=PD7 msg=017D # E1
[printer]
kinematics: cartesian
@@ -91,6 +84,18 @@ max_accel: 3000
max_z_velocity: 5
max_z_accel: 100
+[ad5206 stepper_digipot]
+enable_pin: PD7
+# Scale the config so that the channel value can be specified in amps.
+# (For Rambo v1.0d boards, use 1.56 instead.)
+scale: 2.08
+# Channel 1 is E0, 2 is E1, 3 is unused, 4 is Z, 5 is X, 6 is Y
+channel_1: 1.34
+channel_2: 1.0
+channel_4: 1.1
+channel_5: 1.1
+channel_6: 1.1
+
# Enable 16 micro-steps on steppers X, Y, Z, E0, E1
[static_digital_output stepper_config]
pins: