Jump to content
  • 0

voron 2.4 parts are alot smaller on the z than they should be. seeing if i can get help


twitch3d

Question

hi. i have been trying to figure this out. i print a voron test cube 30x30x30. after its done the x and y are fine. the z end up around 25.54. tried to use chatgpt but that made it worse. seeing if i can use the knowledge here.

 

########################################
# INCLUDES
########################################
[include mainsail.cfg]
[include ebb-canbus.cfg]
[include beacon.cfg]

########################################
# PRINTER
########################################
[printer]
kinematics: corexy
max_velocity: 300
max_accel: 3000
max_z_velocity: 15
max_z_accel: 350
square_corner_velocity: 1.0

[force_move]
enable_force_move: True

[gcode_arcs]
resolution: 0.1

[exclude_object]

########################################
# MCU
########################################
[mcu]
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_350055000A51313133353932-if00

########################################
# X STEP
########################################
[stepper_x]
step_pin: PB10
dir_pin: !PB11
enable_pin: !PG0
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400
endstop_pin: tmc5160_stepper_x:virtual_endstop
position_min: -5
position_endstop: 350
position_max: 350
homing_speed: 50
homing_retract_dist: 0
homing_positive_dir: true

[tmc5160 stepper_x]
cs_pin: PE15
spi_software_mosi_pin: PE14
spi_software_miso_pin: PE13
spi_software_sclk_pin: PE12
diag0_pin: ^!PG1
driver_SGT: 0
interpolate: false
run_current: 0.85
sense_resistor: 0.075
stealthchop_threshold: 0

########################################
# Y STEP
########################################
[stepper_y]
step_pin: PF15
dir_pin: !PF14
enable_pin: !PE9
rotation_distance: 40
microsteps: 32
full_steps_per_rotation: 400
endstop_pin: tmc5160_stepper_y:virtual_endstop
position_min: -5
position_endstop: 350
position_max: 350
homing_speed: 50
homing_retract_dist: 0
homing_positive_dir: true

[tmc5160 stepper_y]
cs_pin: PE11
spi_software_mosi_pin: PE14
spi_software_miso_pin: PE13
spi_software_sclk_pin: PE12
diag0_pin: ^!PE10
driver_SGT: 0
interpolate: false
run_current: 0.85
sense_resistor: 0.075
stealthchop_threshold: 0

########################################
# Z STEPPERS
########################################
[stepper_z]
step_pin: PD4
dir_pin: !PD3
enable_pin: !PD7
endstop_pin: probe:z_virtual_endstop
rotation_distance: 50
gear_ratio: 80:20
microsteps: 16
position_min: -5
position_max: 300
homing_positive_dir: false
homing_speed: 5
second_homing_speed: 3
homing_retract_dist: 0

[tmc2209 stepper_z]
uart_pin: PD5
interpolate: false
run_current: 0.7
sense_resistor: 0.110
stealthchop_threshold: 0

[stepper_z1]
step_pin: PC12
dir_pin: PC11
enable_pin: !PD2
rotation_distance: 50
gear_ratio: 80:20
microsteps: 16

[tmc2209 stepper_z1]
uart_pin: PD0
interpolate: false
run_current: 0.7
sense_resistor: 0.110
stealthchop_threshold: 0

[stepper_z2]
step_pin: PC9
dir_pin: !PC8
enable_pin: !PC10
rotation_distance: 50
gear_ratio: 80:20
microsteps: 16

[tmc2209 stepper_z2]
uart_pin: PA8
interpolate: false
run_current: 0.7
sense_resistor: 0.110
stealthchop_threshold: 0

[stepper_z3]
step_pin: PG7
dir_pin: PG6
enable_pin: !PC7
rotation_distance: 50
gear_ratio: 80:20
microsteps: 16

[tmc2209 stepper_z3]
uart_pin: PG8
interpolate: false
run_current: 0.7
sense_resistor: 0.110
stealthchop_threshold: 0


[heater_bed]
heater_pin: PG11
sensor_type: Generic 3950
sensor_pin: PA2   # <-- change if you're using TH1/TH2/TH3
control: pid
pid_Kp: 60.0
pid_Ki: 1.0
pid_Kd: 500.0
min_temp: 0
max_temp: 120

[temperature_sensor raspberry_pi]
sensor_type: temperature_host
min_temp: 0
max_temp: 100

[temperature_sensor mcu_temp]
sensor_type: temperature_mcu
min_temp: 0
max_temp: 100

########################################
# QUAD GANTRY LEVEL
########################################
[quad_gantry_level]
gantry_corners:
   -60,-10
   410,410

points:
   50,25
   50,275
   300,275
   300,25

speed: 50
horizontal_move_z: 10
max_adjust: 10
retries: 8
retry_tolerance: 0.01

[safe_z_home]
home_xy_position: 175, 175 # update for your machine
z_hop: 3

[bed_mesh]
  speed: 100
  horizontal_move_z: 15
  mesh_min: 20, 20
  mesh_max: 310,310

  fade_start: 0.6
  fade_end: 10.0
  probe_count: 15, 15
#  probe_count: 5,5
  algorithm: bicubic
#  relative_reference_index: 12
#  zero_reference_position: x y

########################################
# G32
########################################
[gcode_macro G32]
gcode:
    G90
    G28 X Y
    G1 X175 Y175 F15000
    G28 Z
    G1 Z10 F1500

[gcode_macro START_PRINT]
gcode:
    {% set BED = params.BED|default(60)|float %}
    {% set HOTEND = params.HOTEND|default(200)|float %}

    M140 S{BED}
    M104 S{HOTEND}

    G90
    G28

    QUAD_GANTRY_LEVEL
    G28 Z

    BED_MESH_CALIBRATE

    M190 S{BED}
    M109 S{HOTEND}

    G1 Z5 F3000
    G1 X10 Y10 F15000
    G1 Z0.2
    G92 E0
    G1 X150 E20 F800
    G92 E0
    
        # Strong prime purge
    G1 Z1.0 F3000
    G1 X5 Y10 F15000
    G92 E0
    G1 X150 E40 F800
    G1 X160 F15000
    G1 X30 E15 F800
    G92 E0
    G1 E10 F300
    G1 Z0.3


[gcode_macro END_PRINT]
gcode:
    G91
    G1 E-2 F1800
    G1 Z10 F3000
    G90

    G1 X175 Y340 F15000

    M104 S0
    M140 S0
    M107
    M84

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [beacon model default]
#*# model_coef = 1.7099073109921885,
#*#     2.0211563799034336,
#*#     0.7168447228960514,
#*#     0.2892531567801001,
#*#     0.13191968273479082,
#*#     0.10105163712391221,
#*#     -0.008688354870815816,
#*#     -0.0483725484563286,
#*#     0.05199264525541425,
#*#     0.04144544588257719
#*# model_domain = 3.2862443678267267e-07,3.3420936747094874e-07
#*# model_range = 0.200000,5.000000
#*# model_temp = 40.839154
#*# model_offset = -0.05000
#*#
#*# [bed_mesh default]
#*# version = 1
#*# points =
#*#       -0.020738, 0.006587, 0.021652, 0.036150, 0.058339, 0.059022, 0.077771, 0.085299, 0.103774, 0.121473, 0.105029, 0.103509, 0.088098, 0.046444, 0.011052
#*#       -0.026329, -0.008883, 0.017518, 0.030087, 0.044989, 0.044354, 0.068958, 0.068572, 0.092183, 0.093919, 0.089127, 0.077468, 0.072952, 0.020100, -0.001082
#*#       -0.037892, -0.021729, 0.005714, 0.020026, 0.036186, 0.029151, 0.054124, 0.048655, 0.067721, 0.067598, 0.062131, 0.051064, 0.051435, -0.003629, -0.029961
#*#       -0.043726, -0.027892, -0.001373, 0.013552, 0.030226, 0.023491, 0.045555, 0.040574, 0.055479, 0.047696, 0.039295, 0.035631, 0.037459, -0.024599, -0.034256
#*#       -0.047693, -0.021253, 0.001896, 0.012588, 0.026739, 0.021967, 0.037593, 0.033537, 0.042788, 0.038340, 0.028733, 0.028529, 0.029114, -0.022230, -0.038331
#*#       -0.054765, -0.036573, -0.014905, -0.002473, 0.007602, 0.011989, 0.022905, 0.015098, 0.022402, 0.023875, 0.011868, 0.010619, 0.005746, -0.034488, -0.045297
#*#       -0.065670, -0.065406, -0.032813, -0.009783, 0.003626, 0.005133, 0.012585, 0.004997, 0.014067, 0.013685, -0.004686, 0.000239, -0.015937, -0.046902, -0.054388
#*#       -0.073020, -0.060213, -0.039977, -0.017297, -0.007862, -0.008437, 0.003416, -0.000392, 0.009687, -0.001860, -0.020028, -0.018115, -0.027255, -0.064835, -0.061519
#*#       -0.090585, -0.059614, -0.044122, -0.013536, -0.014406, -0.010813, 0.001498, -0.001238, 0.008458, 0.005657, -0.020778, -0.014469, -0.027456, -0.053694, -0.063072
#*#       -0.087032, -0.077625, -0.040553, -0.018836, -0.008020, -0.002536, 0.005769, 0.003350, 0.011998, 0.010434, -0.021431, -0.013864, -0.024991, -0.048898, -0.059285
#*#       -0.088236, -0.074721, -0.040000, -0.018160, -0.007724, -0.005137, 0.006600, 0.005621, 0.015875, 0.014318, -0.019811, -0.014444, -0.025227, -0.044624, -0.059712
#*#       -0.078058, -0.057114, -0.013769, 0.001654, -0.002343, 0.000534, 0.012741, 0.017875, 0.022735, 0.022352, -0.008366, -0.004560, -0.019127, -0.041710, -0.052632
#*#       -0.064643, -0.042329, -0.018330, 0.006848, 0.012216, 0.021269, 0.031270, 0.033418, 0.037882, 0.038215, 0.005051, 0.008722, -0.006923, -0.029946, -0.039140
#*#       -0.044463, -0.019436, 0.006672, 0.041366, 0.044004, 0.050889, 0.053446, 0.053130, 0.055729, 0.057201, 0.024284, 0.029031, 0.011865, -0.009158, -0.018960
#*#       -0.011988, 0.011194, 0.036446, 0.081011, 0.085494, 0.090570, 0.087826, 0.085428, 0.077968, 0.085252, 0.048830, 0.059506, 0.044191, 0.022668, 0.018237
#*# x_count = 15
#*# y_count = 15
#*# mesh_x_pps = 2
#*# mesh_y_pps = 2
#*# algo = bicubic
#*# tension = 0.2
#*# min_x = 20.0
#*# max_x = 310.0
#*# min_y = 20.0
#*# max_y = 310.0
 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

It has to do with your gear ratio and rotation distance under [stepper_z]

Here is a my configuration - see if this works

tepper_z]
step_pin: PF11
dir_pin: PG3
enable_pin: !PG5
rotation_distance: 40
gear_ratio: 80:16
microsteps: 64
endstop_pin: probe:z_virtual_endstop
position_max: 340
position_min: -5
homing_speed: 30    #8
second_homing_speed: 10   #5
homing_retract_dist: 0

AS you can see my gear_ratio is 80:16 because I have 16 tooth pulleys (as to your 80:20 assume you have 20 tooth pulleys) and my corresponding rotation distance is 40 (as to your 50)  So play around with the rotation distance and see if it makes a difference.

My micro steps are larger than yours, 64 (as to your 16). But that won't make a difference in dimensional accuracy, only brakes down the rotation of the motors into smaller steps to eliminate jerkiness and theoretically increases higher positional resolution) It also affects torque of the motors, so the lower the higher the torque, which you may need on Z, depending on your motors.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...