From 5a7e5377546161b97c79c3ffbb3c0ef729e72f8f Mon Sep 17 00:00:00 2001 From: teachingtechYT Date: Wed, 20 Apr 2022 17:14:23 +1000 Subject: [PATCH] Update to belt printer bed! Zesty Nimble V3 extruder also fitted --- FLsun super racer/printer.cfg | 175 +++++++++++++++++++++++++--------- 1 file changed, 129 insertions(+), 46 deletions(-) diff --git a/FLsun super racer/printer.cfg b/FLsun super racer/printer.cfg index 5b57f34..c99beb6 100644 --- a/FLsun super racer/printer.cfg +++ b/FLsun super racer/printer.cfg @@ -5,7 +5,7 @@ # https://github.com/KevinOConnor/klipper/blob/master/config/printer-flsun-qqs-2020.cfg # Please ensure you PID autotune your heaters rather than just using my PID values! # You will also need to substitute your own serial address after sending ls /dev/serial/by-id/* via SSH -# As this machine is a delta, it is best to run delta_calibration to get the exact values for your machine. +# As this machine is a delta, it is best to run delta_calibration to get the exact values for your machine. This is particularly important since I am now running a belt over the original bed, which gives an increase in build volume height. # DO NOT COPY THIS FILE WITHOUT CAREFULLY READING AND UPDATING IT # FIRST. Incorrectly configured parameters may cause damage. @@ -42,7 +42,10 @@ step_pin: P2.13 dir_pin: !P0.11 enable_pin: !P2.12 microsteps: 16 -rotation_distance: 7.805 +rotation_distance: 1.19717 +max_extrude_only_accel: 35 +max_extrude_only_velocity: 60 +max_extrude_only_distance: 110 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: P2.7 @@ -50,7 +53,16 @@ sensor_type: EPCOS 100K B57560G104F sensor_pin: P0.24 min_temp: 5 max_temp: 290 -pressure_advance: 0.0 +pressure_advance: 0.0825 + +[manual_stepper belt] +step_pin: P0.1 +dir_pin: P0.0 +enable_pin: !P0.10 +microsteps: 16 +rotation_distance: 27 +velocity: 10 +accel: 100 [heater_bed] heater_pin: P2.5 @@ -62,14 +74,35 @@ max_temp: 120 [mcu] serial: /dev/serial/by-id/usb-Klipper_lpc1768_0B121717240D575376D9344F070000F5-if00 +[mcu rpi] +serial: /tmp/klipper_host_mcu + +[adxl345] +cs_pin: rpi:None + +[resonance_tester] +accel_chip: adxl345 +probe_points: + 0,0,20 # an example + +[input_shaper] + [printer] kinematics: delta max_velocity: 300 -max_accel: 2800 -max_accel_to_decel: 2800 -square_corner_velocity: 5 +max_accel: 5000 +max_accel_to_decel: 2000 +square_corner_velocity: 4 max_z_velocity: 150 +[neopixel neo] +pin: P2.0 +chain_count: 15 +color_order: GRB +initial_RED: 0.0 +initial_GREEN: 0.0 +initial_BLUE: 0.0 + [delta_calibrate] radius: 120 horizontal_move_z: 20 @@ -92,6 +125,11 @@ sample_retract_dist: 3 samples_tolerance: 0.02 samples_tolerance_retries: 5 +[homing_override] +gcode: + G28 + SET_GCODE_OFFSET Z=0.8 + [virtual_sdcard] path: ~/.octoprint/uploads/ @@ -119,8 +157,35 @@ gcode: G1 E-50 F1000 RESTORE_GCODE_STATE NAME=M600_state +[gcode_macro neo_off] +gcode: + SET_LED LED=neo RED=0 GREEN=0 BLUE=0 + +[gcode_macro neo_timelapse] +gcode: + SET_LED LED=neo RED=1 GREEN=0 BLUE=0.1 INDEX=1 TRANSMIT=0 + SET_LED LED=neo RED=0.95 GREEN=0 BLUE=0.2 INDEX=2 TRANSMIT=0 + SET_LED LED=neo RED=0.9 GREEN=0 BLUE=0.3 INDEX=3 TRANSMIT=0 + SET_LED LED=neo RED=0.85 GREEN=0 BLUE=0.4 INDEX=4 TRANSMIT=0 + SET_LED LED=neo RED=0.8 GREEN=0 BLUE=0.5 INDEX=5 TRANSMIT=0 + SET_LED LED=neo RED=0.75 GREEN=0 BLUE=0.55 INDEX=6 TRANSMIT=0 + SET_LED LED=neo RED=0.7 GREEN=0 BLUE=0.6 INDEX=7 TRANSMIT=0 + SET_LED LED=neo RED=0.65 GREEN=0 BLUE=0.65 INDEX=8 TRANSMIT=0 + SET_LED LED=neo RED=0.6 GREEN=0 BLUE=0.7 INDEX=9 TRANSMIT=0 + SET_LED LED=neo RED=0.55 GREEN=0 BLUE=0.75 INDEX=10 TRANSMIT=0 + SET_LED LED=neo RED=0.5 GREEN=0 BLUE=0.8 INDEX=11 TRANSMIT=0 + SET_LED LED=neo RED=0.4 GREEN=0 BLUE=0.85 INDEX=12 TRANSMIT=0 + SET_LED LED=neo RED=0.3 GREEN=0 BLUE=0.9 INDEX=13 TRANSMIT=0 + SET_LED LED=neo RED=0.2 GREEN=0 BLUE=0.95 INDEX=14 TRANSMIT=0 + SET_LED LED=neo RED=0.1 GREEN=0 BLUE=1 INDEX=15 + [gcode_arcs] +[gcode_macro eject] +gcode: + MANUAL_STEPPER STEPPER=belt SET_POSITION=0 + MANUAL_STEPPER STEPPER=belt MOVE=400 + ######################################## # TMC2209 configuration ######################################## @@ -133,31 +198,31 @@ gcode: uart_pin: P1.17 run_current: 0.950 hold_current: 0.500 -stealthchop_threshold: 99 +stealthchop_threshold: 999 [tmc2209 stepper_b] uart_pin: P1.15 run_current: 0.950 hold_current: 0.500 -stealthchop_threshold: 99 +stealthchop_threshold: 999 [tmc2209 stepper_c] uart_pin: P1.10 run_current: 0.950 hold_current: 0.450 -stealthchop_threshold: 99 +stealthchop_threshold: 999 [tmc2209 extruder] uart_pin: P1.8 -run_current: 0.950 +run_current: 0.500 hold_current: 0.500 -stealthchop_threshold: 1 +stealthchop_threshold: 100 -#[tmc2209 extruder1] -#uart_pin: P1.1 -#run_current: 0.800 -#hold_current: 0.500 -#stealthchop_threshold: 999999 +[tmc2209 manual_stepper belt] +uart_pin: P1.1 +run_current: 0.800 +hold_current: 0.500 +stealthchop_threshold: 100 ######################################## # EXP1 / EXP2 (display) pins @@ -190,53 +255,49 @@ type: command name: Shut down pi gcode: {action_respond_info('action:POWEROFF')} + +[menu __main __eject] +type: command +name: Eject +gcode: + eject -[menu __main __custom] +[menu __main __neopixel] type: list -name: Custom +name: Neopixel -[menu __main __custom __probeacc] +[menu __main __neopixel __neo_off] +type: command +name: Neopixels off +gcode: + neo_off + +[menu __main __neopixel __neo_timelapse] type: command -name: Test probe accuracy +name: Neopixels timelapse gcode: - PROBE_ACCURACY PROBE_SPEED=10 SAMPLE_RETRACT_DIST=10 + neo_timelapse #*# <---------------------- SAVE_CONFIG ----------------------> #*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. #*# #*# [printer] -#*# delta_radius = 152.030543 +#*# delta_radius = 150.930391 #*# #*# [stepper_a] -#*# angle = 210.453708 +#*# angle = 210.335872 #*# arm_length = 315.000000 -#*# position_endstop = 336.307794 +#*# position_endstop = 366.510396 #*# #*# [stepper_b] -#*# angle = 330.074325 +#*# angle = 330.036903 #*# arm_length = 315.000000 -#*# position_endstop = 336.561114 +#*# position_endstop = 366.002644 #*# #*# [stepper_c] #*# angle = 90.000000 #*# arm_length = 315.000000 -#*# position_endstop = 338.047727 -#*# -#*# [delta_calibrate] -#*# height0 = 0.0 -#*# height0_pos = 26960.000,26960.000,26960.000 -#*# height1 = 0.0 -#*# height1_pos = 31937.000,31937.000,24096.000 -#*# height2 = 0.0 -#*# height2_pos = 26307.000,34760.000,26307.000 -#*# height3 = 0.0 -#*# height3_pos = 24123.000,31029.000,31029.000 -#*# height4 = 0.0 -#*# height4_pos = 26081.000,26081.000,32228.000 -#*# height5 = 0.0 -#*# height5_pos = 30329.000,24312.000,30329.000 -#*# height6 = 0.0 -#*# height6_pos = 33455.000,26212.000,26212.000 +#*# position_endstop = 366.472060 #*# #*# [extruder] #*# control = pid @@ -246,6 +307,28 @@ gcode: #*# #*# [heater_bed] #*# control = pid -#*# pid_kp = 68.773 -#*# pid_ki = 1.437 -#*# pid_kd = 822.702 \ No newline at end of file +#*# pid_kp = 52.157 +#*# pid_ki = 1.413 +#*# pid_kd = 481.150 +#*# +#*# [input_shaper] +#*# shaper_type_x = ei +#*# shaper_freq_x = 45.6 +#*# shaper_type_y = mzv +#*# shaper_freq_y = 53.0 +#*# +#*# [delta_calibrate] +#*# height0 = 0.0 +#*# height0_pos = 29305.000,29305.000,29305.000 +#*# height1 = 0.0 +#*# height1_pos = 34338.000,34287.000,26396.000 +#*# height2 = 0.0 +#*# height2_pos = 28701.000,37196.000,28670.000 +#*# height3 = 0.0 +#*# height3_pos = 26527.000,33489.000,33483.000 +#*# height4 = 0.0 +#*# height4_pos = 28487.000,28515.000,34707.000 +#*# height5 = 0.0 +#*# height5_pos = 32694.000,26667.000,32726.000 +#*# height6 = 0.0 +#*# height6_pos = 35861.000,28554.000,28558.000