mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-13 03:39:56 +01:00
manual_stepper: Add an "extras" module for manually controlling a stepper
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
22
test/klippy/manual_stepper.cfg
Normal file
22
test/klippy/manual_stepper.cfg
Normal file
@@ -0,0 +1,22 @@
|
||||
# Test config for manual_stepper
|
||||
[manual_stepper basic_stepper]
|
||||
step_pin: ar54
|
||||
dir_pin: ar55
|
||||
enable_pin: !ar38
|
||||
step_distance: .0125
|
||||
|
||||
[manual_stepper homing_stepper]
|
||||
step_pin: ar60
|
||||
dir_pin: !ar61
|
||||
enable_pin: !ar56
|
||||
step_distance: .0125
|
||||
endstop_pin: ^ar14
|
||||
|
||||
[mcu]
|
||||
serial: /dev/ttyACM0
|
||||
pin_map: arduino
|
||||
|
||||
[printer]
|
||||
kinematics: none
|
||||
max_velocity: 300
|
||||
max_accel: 3000
|
||||
24
test/klippy/manual_stepper.test
Normal file
24
test/klippy/manual_stepper.test
Normal file
@@ -0,0 +1,24 @@
|
||||
# Test case for manual_stepper
|
||||
CONFIG manual_stepper.cfg
|
||||
DICTIONARY atmega2560-16mhz.dict
|
||||
|
||||
# Test basic moves
|
||||
MANUAL_STEPPER STEPPER=basic_stepper ENABLE=1
|
||||
MANUAL_STEPPER STEPPER=basic_stepper SET_POSITION=0
|
||||
MANUAL_STEPPER STEPPER=basic_stepper MOVE=10 SPEED=10
|
||||
MANUAL_STEPPER STEPPER=basic_stepper MOVE=5 SPEED=5
|
||||
MANUAL_STEPPER STEPPER=basic_stepper MOVE=12 SPEED=12
|
||||
MANUAL_STEPPER STEPPER=basic_stepper ENABLE=0
|
||||
|
||||
# Test homing move
|
||||
MANUAL_STEPPER STEPPER=homing_stepper ENABLE=1
|
||||
MANUAL_STEPPER STEPPER=homing_stepper SET_POSITION=0
|
||||
MANUAL_STEPPER STEPPER=homing_stepper MOVE=10 SPEED=10
|
||||
MANUAL_STEPPER STEPPER=homing_stepper ENABLE=0
|
||||
|
||||
# Test motor off
|
||||
M84
|
||||
|
||||
# Verify stepper_buzz
|
||||
STEPPER_BUZZ STEPPER="manual_stepper basic_stepper"
|
||||
STEPPER_BUZZ STEPPER="manual_stepper homing_stepper"
|
||||
Reference in New Issue
Block a user