From 89204c9071e51d7fdb155ba9c921d80f5415235f Mon Sep 17 00:00:00 2001 From: ss1gohan13 <89548129+ss1gohan13@users.noreply.github.com> Date: Thu, 12 Jun 2025 21:35:27 -0500 Subject: [PATCH] Update printer.cfg Sovol I really hope you're reading here... your config is severely misconfigured and this should be the proper config. You falsly advertise 40K acceleration when in fact the printer cannot do that. You yourselves even released an orca profile that had half of the acceleration listed... get better. I'm tired of fixing your configs and macros. --- home/sovol/printer_data/config/printer.cfg | 422 ++++++++++++--------- 1 file changed, 234 insertions(+), 188 deletions(-) diff --git a/home/sovol/printer_data/config/printer.cfg b/home/sovol/printer_data/config/printer.cfg index 8f213dd..c197cae 100755 --- a/home/sovol/printer_data/config/printer.cfg +++ b/home/sovol/printer_data/config/printer.cfg @@ -1,162 +1,54 @@ [include mainsail.cfg] + [include timelapse.cfg] -[include get_ip.cfg] -[include Macro.cfg] -[include moonraker_obico_macros.cfg] -[mcu] -serial: /dev/ttyACM1 -restart_method: command +[include get_ip.cfg] -[mcu extra_mcu] -serial: /dev/ttyACM0 -restart_method: command +#[include plr.cfg] # Don't use power loss recovery. Sensorless homing and lack of bed heat will cause problem. +[include Macro.cfg] -[adxl345] -cs_pin:extra_mcu:PB12 +[include moonraker_obico_macros.cfg] [exclude_object] -[resonance_tester] -accel_chip: adxl345 -probe_points: - 175, 175, 30 # an example175 Y175 Z30 -accel_per_hz:50 -min_freq:1 -max_freq:100 -max_smoothing:0.2 -hz_per_sec:0.5 +[save_variables] +filename =~/printer_data/config/saved_variables.cfg #=/home/sovol/printer_data/config/saved_variables.cfg -[temperature_sensor mcu_temp] -sensor_type: temperature_mcu -min_temp:0 -max_temp:100 +[idle_timeout] +gcode: _IDLE_TIMEOUT +timeout: 600 -[temperature_sensor Host_temp] -sensor_type: temperature_host -min_temp: 0 -max_temp: 110 +# [virtual_sdcard] +# path:/home/sovol/printer_data/gcodes/ #It's in mainsail.cfg -[temperature_sensor Toolhead_Temp] -sensor_type: temperature_mcu -sensor_mcu: extra_mcu +# [pause_resume] -[virtual_sdcard] -path:/home/sovol/printer_data/gcodes/ +##################################################################### +#--------------------------MCU and PRINTER--------------------------# +##################################################################### + +[mcu] +serial: /dev/ttyACM1 +restart_method: command -[pause_resume] +[mcu extra_mcu] +serial: /dev/ttyACM0 +restart_method: command [printer] kinematics: corexy -max_velocity: 700 -max_accel: 40000 +max_velocity: 600 +max_accel: 20000 max_accel_to_decel: 10000 max_z_velocity: 20 max_z_accel: 500 square_corner_velocity: 5.0 -[input_shaper] -damping_ratio_x: 0.001 -damping_ratio_y: 0.001 -shaper_type_x = mzv -shaper_freq_x = 35 -shaper_type_y = mzv -shaper_freq_y = 35 - -[probe] -pin: extra_mcu:PB6 -x_offset: -17 -y_offset: 10 -#z_offset : 0 -speed: 15.0 -speed: 5.0 -samples: 2 -sample_retract_dist: 2.0 -lift_speed: 50 -samples_result: average -samples_tolerance: 0.016 -samples_tolerance_retries: 2 - - -[probe_pressure] -pin: ^!PE12 -x_offset: 0 -y_offset: 0 -z_offset : 0 -speed: 1.0 - -[homing_override] -gcode: - {% if not 'Z' in params and not 'Y' in params and 'X' in params %} - G28 X - G0 X348 F1200 - {% elif not 'Z' in params and not 'X' in params and 'Y' in params %} - G28 Y - G0 Y360 F1200 - {% elif not 'Z' in params and 'X' in params and 'Y' in params %} - G28 Y - G0 Y360 F1200 - G4 P2000 - G28 X - G0 X348 F1200 - {% elif 'Z' in params and not 'X' in params and not 'Y' in params %} - G90 - G0 X191 Y165 F3600 - G28 Z - G0 Z10 F600 - {% else %} - G90 - G0 Z5 F300 - G28 Y - G0 Y360 F1200 - G4 P2000 - G28 X - G0 X348 F1200 - G90 - G0 X191 Y165 F3600 - G28 Z - G0 Z10 F600 - {% endif %} -axes: xyz -set_position_z: 0 - -[bed_mesh] -speed: 500 -horizontal_move_z: 5 -mesh_min: 10,10 -mesh_max: 333,340 -probe_count: 9,9 -algorithm: bicubic -bicubic_tension: 0.4 -split_delta_z: 0.016 -mesh_pps:3,3 -adaptive_margin: 5 -fade_start: 0 -fade_end: 10 -fade_target: 0 - -[quad_gantry_level] -gantry_corners: - -60,-10 - 410,420 -points: - 36,10 - 36,320 - 346,320 - 346,10 -speed: 400 -horizontal_move_z: 10 -retry_tolerance: 0.05 -retries: 5 -max_adjust: 30 +##################################################################### +#--------------------------X/A MOTOR--------------------------------# +##################################################################### -[z_offset_calibration] -center_xy_position:191,165 -endstop_xy_position:289,361 -z_hop: 10 -z_hop_speed: 15 - [stepper_x] step_pin: PE2 dir_pin: !PE0 @@ -175,14 +67,17 @@ homing_positive_dir: True [tmc2209 stepper_x] uart_pin: PE1 interpolate: True -run_current: 1.5 -hold_current: 1.5 +run_current: 1.2 #1.5 sense_resistor: 0.150 -stealthchop_threshold: 0 +#stealthchop_threshold: 999999 uart_address:3 driver_sgthrs: 65 diag_pin: PE15 +##################################################################### +#--------------------------Y/B MOTOR--------------------------------# +##################################################################### + [stepper_y] step_pin: PB8 dir_pin: !PB6 @@ -201,14 +96,19 @@ homing_positive_dir: true [tmc2209 stepper_y] uart_pin: PB7 interpolate: True -run_current: 1.5 -hold_current: 1.5 +run_current: 1.2 #1.5 sense_resistor: 0.150 -stealthchop_threshold: 0 +#stealthchop_threshold: 999999 uart_address:3 driver_sgthrs: 65 diag_pin: PE13 +##################################################################### +#--------------------------Z AXIS-----------------------------------# +##################################################################### + +###################### Front left Z motor ########################### + [stepper_z] #motherboard:Z3 step_pin:PC0 dir_pin:PE5 @@ -228,13 +128,15 @@ second_homing_speed: 10.0 [tmc2209 stepper_z] uart_pin: PE6 interpolate: true -run_current: 0.58 -hold_current: 0.58 +run_current: 0.50 #0.58 +# hold_current: 0.58 sense_resistor: 0.150 stealthchop_threshold: 999999 uart_address:3 -[stepper_z1] ##motherboard:Z1 +###################### Back left Z motor ############################ + +[stepper_z1] ##motherboard:Z2 step_pin:PD3 dir_pin:!PD1 enable_pin:!PD4 @@ -245,13 +147,15 @@ microsteps: 16 [tmc2209 stepper_z1] uart_pin:PD2 interpolate: true -run_current: 0.58 -hold_current: 0.58 +run_current: 0.50 #0.58 +#hold_current: 0.58 sense_resistor: 0.150 stealthchop_threshold: 999999 uart_address:3 -[stepper_z2] ##motherboard:Z2 +###################### Back Right Z motor ########################### + +[stepper_z2] ##motherboard:Z1 step_pin:PD7 dir_pin:PD5 enable_pin:!PB5 @@ -262,12 +166,14 @@ microsteps: 16 [tmc2209 stepper_z2] uart_pin:PD6 interpolate: true -run_current: 0.58 -hold_current: 0.58 +run_current: 0.50 #0.58 +#hold_current: 0.58 sense_resistor: 0.150 stealthchop_threshold: 999999 uart_address:3 +###################### Front Right Z motor ########################## + [stepper_z3] ##motherboard:Z4 step_pin:PD11 dir_pin:!PD9 @@ -279,19 +185,15 @@ microsteps: 16 [tmc2209 stepper_z3] uart_pin:PD10 interpolate: true -run_current: 0.58 -hold_current: 0.58 +run_current: 0.50 #0.58 +#hold_current: 0.58 sense_resistor: 0.150 uart_address:3 stealthchop_threshold: 999999 -[thermistor my_thermistor_e] -temperature1:25 -resistance1:110000 -temperature2:100 -resistance2:7008 -temperature3:220 -resistance3:435 +##################################################################### +#--------------------------TOOLHEAD---------------------------------# +##################################################################### [extruder] step_pin: extra_mcu:PA8 @@ -311,32 +213,107 @@ min_temp: 5 max_temp: 305 max_power: 1.0 min_extrude_temp: 150 -control : pid -pid_kp : 33.838 -pid_ki : 5.223 -pid_kd : 47.752 +#control : pid +#pid_kp : 33.838 +#pid_ki : 5.223 +#pid_kd : 47.752 pressure_advance: 0.025 -pressure_advance_smooth_time: 0.035 +pressure_advance_smooth_time: 0.04 #0.035 +max_extrude_cross_section: 10 [tmc2209 extruder] uart_pin: extra_mcu:PB10 interpolate: True run_current: 0.8 -hold_current: 0.8 +# hold_current: 0.8 uart_address:3 -sense_resistor: 0.150 +sense_resistor: 0.150 + +[thermistor my_thermistor_e] +temperature1:25 +resistance1:110000 +temperature2:100 +resistance2:7008 +temperature3:220 +resistance3:435 [verify_heater extruder] max_error: 120 check_gain_time:30 hysteresis: 5 -heating_gain: 2 +heating_gain: 2 -[filament_switch_sensor filament_sensor] -pause_on_runout: True -event_delay: 3.0 -pause_delay: 0.5 -switch_pin: PE9 +[probe] +pin: extra_mcu:PB6 +x_offset: -17 +y_offset: 10 +#z_offset : 0 +speed: 15.0 +speed: 5.0 +samples: 5 #2 +sample_retract_dist: 2.0 +lift_speed: 50 +samples_result: average +samples_tolerance: 0.008 #0.016 +samples_tolerance_retries: 5 #2 + +############################ ADXL ################################### + +[adxl345] +cs_pin:extra_mcu:PB12 +axes_map: x,z,y + +[resonance_tester] +accel_chip: adxl345 +probe_points: + 175, 175, 30 # an example175 Y175 Z30 +# accel_per_hz:50 +# min_freq:20 +# max_freq:40 +# max_smoothing:0.2 +# hz_per_sec:0.5 + +[input_shaper] +#damping_ratio_x: 0.001 +#damping_ratio_y: 0.001 +shaper_type_x = mzv +shaper_freq_x = 35 +shaper_type_y = mzv +shaper_freq_y = 35 + +##################################################################### +#------------------------------BED----------------------------------# +##################################################################### + +[bed_mesh] +speed: 500 +horizontal_move_z: 5 +mesh_min: 10,10 +mesh_max: 333,340 +probe_count: 9,9 +algorithm: bicubic +bicubic_tension: 0.4 +split_delta_z: 0.01 #0.016 +mesh_pps:3,3 +adaptive_margin: 5 +fade_start: 0 +fade_end: 10 +fade_target: 0 + +[quad_gantry_level] +gantry_corners: + -60,-10 + 410,420 +points: + 36,10 + 36,320 + 346,320 + 346,10 +speed: 400 +horizontal_move_z: 10 +retry_tolerance: 0.008 #0.05 +retries: 10 #5 +max_adjust: 10 #30 [thermistor my_thermistor] temperature1:25 @@ -352,17 +329,89 @@ sensor_type: my_thermistor sensor_pin: PC5 max_power: 1.0 min_temp: 5 -max_temp: 105 -control : pid -pid_kp : 73.571 -pid_ki : 1.820 -pid_kd : 783.849 +max_temp: 109 +#control : pid +#pid_kp : 73.571 +#pid_ki : 1.820 +#pid_kd : 783.849 [verify_heater heater_bed] -max_error: 120 -check_gain_time:40 +max_error: 140 +check_gain_time: 80 hysteresis: 5 -heating_gain: 2 +heating_gain: 2 + +[probe_pressure] +pin: ^!PE12 +x_offset: 0 +y_offset: 0 +z_offset : 0 +speed: 1.0 + +[z_offset_calibration] +center_xy_position:191,165 +endstop_xy_position:289,361 +z_hop: 10 +z_hop_speed: 15 + +[homing_override] +gcode: + {% if not 'Z' in params and not 'Y' in params and 'X' in params %} + G28 X + G0 X348 F1200 + {% elif not 'Z' in params and not 'X' in params and 'Y' in params %} + G28 Y + G0 Y360 F1200 + {% elif not 'Z' in params and 'X' in params and 'Y' in params %} + G28 Y + G0 Y360 F1200 + G4 P2000 + G28 X + G0 X348 F1200 + {% elif 'Z' in params and not 'X' in params and not 'Y' in params %} + G90 + G0 X191 Y165 F3600 + G28 Z + G0 Z10 F600 + {% else %} + G90 + G0 Z5 F300 + G28 Y + G0 Y360 F1200 + G4 P2000 + G28 X + G0 X348 F1200 + G90 + G0 X191 Y165 F3600 + G28 Z + G0 Z10 F600 + {% endif %} +axes: xyz +set_position_z: 0 + +[filament_switch_sensor filament_sensor] +pause_on_runout: True +event_delay: 3.0 +pause_delay: 0.5 +switch_pin: PE9 + +##################################################################### +#--------------------------FANS AND TEMPS---------------------------# +##################################################################### + +[temperature_sensor mcu_temp] +sensor_type: temperature_mcu +min_temp:0 +max_temp:100 + +[temperature_sensor Host_temp] +sensor_type: temperature_host +min_temp: 0 +max_temp: 110 + +[temperature_sensor Toolhead_Temp] +sensor_type: temperature_mcu +sensor_mcu: extra_mcu [fan_generic fan0] # back model cooling fan pin: extra_mcu:PA7 @@ -386,6 +435,10 @@ tachometer_pin:extra_mcu:PA1 tachometer_ppr: 1 tachometer_poll_interval: 0.0013 +##################################################################### +#--------------------------MCU PINS AND EXP-------------------------# +##################################################################### + [board_pins] aliases: # EXP1 header @@ -434,14 +487,7 @@ resolution: 1.0 pin:PA3 pwm: 1 value:1 -cycle_time: 5 - -[idle_timeout] -gcode: _IDLE_TIMEOUT -timeout: 600 - -[save_variables] -filename =/home/sovol/printer_data/config/saved_variables.cfg +cycle_time: 0.010 #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.