mirror of
git://soft.sys114.com/klipper
synced 2026-02-11 04:40:25 +09:00
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>
This commit is contained in:
@@ -76,13 +76,6 @@ hard_pwm: 1
|
||||
|
||||
[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,17 @@ max_accel: 3000
|
||||
max_z_velocity: 25
|
||||
max_z_accel: 30
|
||||
|
||||
[ad5206 stepper_digipot]
|
||||
enable_pin: PD7
|
||||
# Scale the config so that the channel value can be specified in amps
|
||||
scale: 1.56
|
||||
# Channel 1 is E0, 2 is E1, 3 is unused, 4 is Z, 5 is X, 6 is Y
|
||||
channel_1: 1.0
|
||||
channel_2: 0.75
|
||||
channel_4: 0.82
|
||||
channel_5: 0.82
|
||||
channel_6: 0.82
|
||||
|
||||
# Enable 8 micro-steps on steppers X, Y, Z, E0
|
||||
[static_digital_output stepper_config]
|
||||
pins:
|
||||
|
||||
Reference in New Issue
Block a user