What's new
VORON Design

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members!

Solved problems with XY motors

daschin

Member
Printer Model
Voron 2.4
Extruder Type
Other
Cooling Type
Stealthburner
Hi

I have a problem with the XY motors as I have configured the XY motor with rotation_distance: 32 but when verifying in X it makes the whole distance but when verifying the Y it does not do it for Y and for this to reach the whole distance I have to put it in rotation_distance: 30.6 the problem is that when I see when I move any of the two there is a loss of steps.

Motor specifications
Manufacturer Part Number: 17HS19-2004S1-H
Motor Type: Bipolar Stepper
Step Angle: 1.8deg
Holding Torque: 59Ncm(83.6oz.in)
Rated Current/phase: 2.0A
Phase Resistance: 1.5ohms
Inductance: 3.0mH±20%(1KHz)
Insulation Class: H 180C(356F)

1728882185696.jpeg

Printer and motor config
Code:
[printer]
kinematics: corexy
max_velocity: 300  
max_accel: 4000
max_z_velocity: 15
max_z_accel: 350
square_corner_velocity: 5.0
...
#################################
#   Stepper X
#################################
[stepper_x]
step_pin: PF13
dir_pin: !PF12
enable_pin: !PF14
rotation_distance: 32
microsteps: 32
full_steps_per_rotation:200
endstop_pin: PG6
position_min: 0
position_endstop: 350
position_max: 350
homing_speed: 70
homing_retract_dist: 5
homing_positive_dir: True

[tmc2209 stepper_x]
uart_pin: PC4
interpolate: true
run_current: 1
sense_resistor: 0.110
stealthchop_threshold: 0

#################################
#   Stepper Y
#################################
[stepper_y]
step_pin: PG0
dir_pin: PG1
enable_pin: !PF15
rotation_distance: 32
microsteps: 32
full_steps_per_rotation:200
endstop_pin: PG9
position_min: 0
position_endstop: 350
position_max: 350
homing_speed: 70
homing_retract_dist: 5
homing_positive_dir: True

[tmc2209 stepper_y]
uart_pin: PD11
interpolate: true
run_current: 1
sense_resistor: 0.110
stealthchop_threshold: 0
 
It almost sounds like you're adjusting rotation distance to make the toolhead travel the full travel. That's... not right. You adjust rotation distance to accurately represent the pulleys on your printer. (Which should be the same as saying that 10mm requested =10mm actual)And then you achieve your travel distances by adjusting the min, max, and endstop positions
 
I have been doing the calibration from 0 starting with the initial value of rotation_distance:40 when doing a movement of 100mm the real movement is 80mm and in X is 81mm when using the formula of new_rotation_distance = previous_rotation_distance *actual_extrude_distance/requested_extrude_distance

X=40*80/100=32
Y=40*81/100=32.4

I recheck 100mm movements at X=99mm, Y=100m

X=32*99/100=31.68

recheck X=100mm, Y = 100

When I see the complete movements in X there is no problem with it moving but in Y there are 6mm left untraveled; and when making movements there is loss of steps between XY
 
So, a few things.
1. You have 16tooth pulleys on your a&b drives rather than 20s. You should fix that physically. (Does that mean some of your x drives have the 20s?)

2. You say you have skipped steps. Okay well, fix that directly too. Check belts (routing and tension) maybe increase the current a little.

3. You have extra travel distance. Sure. That's fine. *If* you need to access that, do it by adjusting min/max/endstop positions.
 
If I had the 16 Tooth Pulley I changed them and it does not require changing the rotation_distance 40, adjust the max and min positions.
 
Top