diff --git a/crowsnest.conf b/crowsnest.conf index 7fc9284..2ddd7bc 100644 --- a/crowsnest.conf +++ b/crowsnest.conf @@ -41,7 +41,7 @@ enable_rtsp: false # If camera-streamer is used, this enabl rtsp_port: 8554 # Set different ports for each device! port: 8080 # HTTP/MJPG Stream/Snapshot Port device: /dev/video0 # See Log for available ... -resolution: 640x480 # widthxheight format +resolution: 2650x1440 # widthxheight format max_fps: 15 # If Hardware Supports this it will be forced, otherwise ignored/coerced. #custom_flags: # You can run the Stream Services with custom flags. #v4l2ctl: # Add v4l2-ctl parameters to setup your camera, see Log what your cam is capable of. diff --git a/macros.cfg b/macros.cfg index 4fdd08d..3f33f90 100644 --- a/macros.cfg +++ b/macros.cfg @@ -25,13 +25,17 @@ gcode: # Home the printer G28 # Move the nozzle near the bed - G1 Z5 F3000 - # Move the nozzle very close to the bed - G1 Z0.15 F300 + SMART_PARK # Wait for bed to reach temperature M190 S{BED_TEMP} + # KAMP bed mesh calibration + BED_MESH_CALIBRATE + # KAMP Smart Park + SMART_PARK # Set and wait for nozzle to reach temperature M109 S{EXTRUDER_TEMP} + # KAMP adaptive purge + VORON_PURGE [gcode_macro END_PRINT] gcode: @@ -73,18 +77,6 @@ gcode: SET_DISPLAY_TEXT {% endif %} -# SDCard 'looping' (aka Marlin M808 commands) support -# -# Support SDCard looping -[sdcard_loop] - -# 'Marlin' style M808 compatibility macro for SDCard looping -[gcode_macro M808] -gcode: - {% if params.K is not defined and params.L is defined %}SDCARD_LOOP_BEGIN COUNT={params.L|int}{% endif %} - {% if params.K is not defined and params.L is not defined %}SDCARD_LOOP_END{% endif %} - {% if params.K is defined and params.L is not defined %}SDCARD_LOOP_DESIST{% endif %} - # Cancel object (aka Marlin/RRF M486 commands) support # # Enable object exclusion diff --git a/moonraker-sql.db b/moonraker-sql.db index 54fe20f..fc6e924 100644 Binary files a/moonraker-sql.db and b/moonraker-sql.db differ diff --git a/printer-20250215_184411.cfg b/printer-20250215_184411.cfg new file mode 100644 index 0000000..9286d5a --- /dev/null +++ b/printer-20250215_184411.cfg @@ -0,0 +1,284 @@ +[include mainsail.cfg] +[mcu] +serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 + +[virtual_sdcard] +path: /home/nixolas/printer_data/gcodes +on_error_gcode: CANCEL_PRINT + +#Klipper config for Bluer Direct Drive - Robin Nano v2, TMC2209 in UART Mode + +# [include adxlmcu.cfg] +[include config_backup.cfg] + +[include KAMP_Settings.cfg] + +[include macros.cfg] + + +# This file contains common pin mappings for MKS Robin Nano V2 +# boards. To use this config, the firmware should be compiled for the +# STM32F103. When running "make menuconfig", enable "extra low-level +# configuration setup", select the 28KiB bootloader, and serial (on +# USART3 PB11/PB10) communication. + +# Note that the "make flash" command does not work with MKS Robin +# boards. After running "make", run the following command: +# ./scripts/update_mks_robin.py out/klipper.bin out/Robin_nano35.bin +# Copy the file out/Robin_nano35.bin to an SD card and then restart the +# printer with that SD card. + +# ls /dev/serial/by-id/* + +# See docs/Config_Reference.md for a description of parameters. + + + + +[printer] +kinematics = cartesian +max_velocity = 500 +max_accel = 2500 +max_z_velocity = 25 #10 +max_z_accel = 100 + +[stepper_x] +step_pin = PE3 +dir_pin = PE2 +enable_pin = !PE4 +endstop_pin = !PA15 + +microsteps = 16 #32 +rotation_distance = 40 # rotation_distance = 400 * 32 / 160 +full_steps_per_rotation = 400 + +position_max = 300 +position_endstop = -5 +position_min = -5 +homing_speed = 50 + + + +[stepper_y] +step_pin = PE0 +dir_pin = !PB9 +enable_pin = !PE1 +endstop_pin = !PA12 + +microsteps = 16 # 16 #32 +rotation_distance = 40 # * / +full_steps_per_rotation = 400 # 0.9 degrees per step + +position_endstop = 0 +position_min = 0 +position_max = 300 +homing_speed = 50 + + + +[stepper_z] +step_pin = PB5 +dir_pin = !PB4 +enable_pin = !PB8 + +microsteps = 16 #16 +rotation_distance = 8 +full_steps_per_rotation = 200 + +position_max = 400 +position_min = -4 +endstop_pin = probe:z_virtual_endstop + + +[stepper_z1] +step_pin = PD15 +dir_pin = !PA1 +enable_pin = !PA3 +microsteps = 16 #16 +rotation_distance = 8 +full_steps_per_rotation = 200 + + +[extruder] +step_pin = PD6 +dir_pin = !PD3 +enable_pin = !PB3 +microsteps = 16 +rotation_distance = 7.93 +nozzle_diameter = 0.600 +filament_diameter = 1.750 +heater_pin = PC3 +sensor_type = EPCOS 100K B57560G104F +sensor_pin = PC1 +control = pid +pid_kp = 31.087 +pid_ki = 1.712 +pid_kd = 141.059 +min_temp = 0 +max_temp = 255 +max_extrude_only_distance = 240 +max_extrude_cross_section = 5 + #pressure_advance = 0.0953 + +# enables G10 to retract filament +[firmware_retraction] +retract_length = 4 +unretract_extra_length = 0 + +[heater_bed] +heater_pin = PA0 +sensor_type = EPCOS 100K B57560G104F +sensor_pin = PC0 +control = pid +pid_Kp = 58.992 +pid_Ki = 0.917 +pid_Kd = 949.030 +min_temp = 0 +max_temp = 120 + +[verify_heater extruder] +max_error = 150 + + +## FANS +[fan] # part colling fans +pin = PB1 + +[heater_fan HeatSink] +pin: PB0 +heater: extruder +heater_temp: 50.0 +fan_speed: 1.0 + + +[bltouch] +sensor_pin = ^PA11 +control_pin = PA8 +x_offset = 19.1 +y_offset = 31.1 +#z_offset = 2.425 +pin_move_time = 0.4 +speed = 10 #5 +stow_on_each_sample = FALSE +#position_min: -3 enable this for z-offset callibration + +[bed_mesh] +speed = 120 #120 +horizontal_move_z = 7 #8 +mesh_min = 42,42 +mesh_max = 290,270 +probe_count = 6,6 +# mesh_pps: 5,3 +algorithm = bicubic +# bicubic_tension: 0.2 + + +[safe_z_home] +home_xy_position = 160, 140 +speed = 50 +z_hop = 8 +z_hop_speed = 5 + +[input_shaper] +shaper_freq_y: 29.1 +shaper_type_y: mzv +shaper_freq_x: 71.4 +shaper_type_x: mzv + + +[screws_tilt_adjust] +screw1: 1.30,24.20 +screw1_name: Front Left +screw2: 166.30,24.20 +screw2_name: Front Right +screw3: 166.30,194.20 +screw3_name: Rear Right +screw4: 1.30,194.20 +screw4_name: Rear Left +horizontal_move_z: 10. +speed: 80 +screw_thread: CW-M4 + + + +[temperature_sensor pi] +sensor_type: temperature_host +min_temp: 10 +max_temp: 100 + +[temperature_sensor mcu] +sensor_type: temperature_mcu +min_temp: 0 +max_temp: 100 + + +[gcode_macro CALIBRATE_BED] +gcode: + G28 X0 Y0 + G28 Z0 + G90 + bed_mesh_calibrate profile=bluey method=automatic + + +[gcode_macro FILAMENT_LOAD] +gcode: + M83 + G92 E0.0 + G1 E480 F350 + G92 E0.0 + M82 + +[gcode_macro FILAMENT_UNLOAD] +gcode: + M83 + G92 E0.0 + G1 E-480 F350 + G92 E0.0 + M82 + + +[z_tilt] +z_positions: + 0,117.5 + 180,117.5 +points: + 5,117.5 + 180,117.5 +horizontal_move_z: 10 +retries: 10 +retry_tolerance: 0.02 + + +[exclude_object] + +[pause_resume] + +[display_status] + +[respond] + +#*# <---------------------- SAVE_CONFIG ----------------------> +#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. +#*# +#*# [bed_mesh default] +#*# version = 1 +#*# points = +#*# 0.160000, 0.150000, 0.130000, 0.207500, 0.177500, 0.202500 +#*# 0.070000, 0.020000, -0.015000, 0.015000, 0.015000, 0.055000 +#*# -0.005000, -0.032500, -0.042500, -0.025000, -0.035000, 0.067500 +#*# 0.037500, -0.057500, -0.007500, -0.032500, -0.012500, 0.025000 +#*# 0.090000, 0.080000, 0.052500, 0.002500, 0.025000, 0.110000 +#*# 0.272500, 0.197500, 0.162500, 0.175000, 0.147500, 0.150000 +#*# tension = 0.2 +#*# min_x = 42.0 +#*# algo = bicubic +#*# y_count = 6 +#*# mesh_y_pps = 2 +#*# min_y = 42.0 +#*# x_count = 6 +#*# max_y = 270.0 +#*# mesh_x_pps = 2 +#*# max_x = 290.0 +#*# +#*# [bltouch] +#*# z_offset = 2.910 diff --git a/printer-20250215_190110.cfg b/printer-20250215_190110.cfg new file mode 100644 index 0000000..cd19285 --- /dev/null +++ b/printer-20250215_190110.cfg @@ -0,0 +1,284 @@ +[include mainsail.cfg] +[mcu] +serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0 + +[virtual_sdcard] +path: /home/nixolas/printer_data/gcodes +on_error_gcode: CANCEL_PRINT + +#Klipper config for Bluer Direct Drive - Robin Nano v2, TMC2209 in UART Mode + +# [include adxlmcu.cfg] +[include config_backup.cfg] + +[include KAMP_Settings.cfg] + +[include macros.cfg] + + +# This file contains common pin mappings for MKS Robin Nano V2 +# boards. To use this config, the firmware should be compiled for the +# STM32F103. When running "make menuconfig", enable "extra low-level +# configuration setup", select the 28KiB bootloader, and serial (on +# USART3 PB11/PB10) communication. + +# Note that the "make flash" command does not work with MKS Robin +# boards. After running "make", run the following command: +# ./scripts/update_mks_robin.py out/klipper.bin out/Robin_nano35.bin +# Copy the file out/Robin_nano35.bin to an SD card and then restart the +# printer with that SD card. + +# ls /dev/serial/by-id/* + +# See docs/Config_Reference.md for a description of parameters. + + + + +[printer] +kinematics = cartesian +max_velocity = 500 +max_accel = 2500 +max_z_velocity = 25 #10 +max_z_accel = 100 + +[stepper_x] +step_pin = PE3 +dir_pin = PE2 +enable_pin = !PE4 +endstop_pin = !PA15 + +microsteps = 16 #32 +rotation_distance = 40 # rotation_distance = 400 * 32 / 160 +full_steps_per_rotation = 400 + +position_max = 300 +position_endstop = -5 +position_min = -5 +homing_speed = 50 + + + +[stepper_y] +step_pin = PE0 +dir_pin = !PB9 +enable_pin = !PE1 +endstop_pin = !PA12 + +microsteps = 16 # 16 #32 +rotation_distance = 40 # * / +full_steps_per_rotation = 400 # 0.9 degrees per step + +position_endstop = 0 +position_min = 0 +position_max = 300 +homing_speed = 50 + + + +[stepper_z] +step_pin = PB5 +dir_pin = !PB4 +enable_pin = !PB8 + +microsteps = 16 #16 +rotation_distance = 8 +full_steps_per_rotation = 200 + +position_max = 400 +position_min = -4 +endstop_pin = probe:z_virtual_endstop + + +[stepper_z1] +step_pin = PD15 +dir_pin = !PA1 +enable_pin = !PA3 +microsteps = 16 #16 +rotation_distance = 8 +full_steps_per_rotation = 200 + + +[extruder] +step_pin = PD6 +dir_pin = !PD3 +enable_pin = !PB3 +microsteps = 16 +rotation_distance = 7.93 +nozzle_diameter = 0.600 +filament_diameter = 1.750 +heater_pin = PC3 +sensor_type = EPCOS 100K B57560G104F +sensor_pin = PC1 +control = pid +pid_kp = 31.087 +pid_ki = 1.712 +pid_kd = 141.059 +min_temp = 0 +max_temp = 255 +max_extrude_only_distance = 240 +max_extrude_cross_section = 5 + #pressure_advance = 0.0953 + +# enables G10 to retract filament +[firmware_retraction] +retract_length = 4 +unretract_extra_length = 0 + +[heater_bed] +heater_pin = PA0 +sensor_type = EPCOS 100K B57560G104F +sensor_pin = PC0 +control = pid +pid_Kp = 58.992 +pid_Ki = 0.917 +pid_Kd = 949.030 +min_temp = 0 +max_temp = 120 + +[verify_heater extruder] +max_error = 150 + + +## FANS +[fan] # part colling fans +pin = PB1 + +[heater_fan HeatSink] +pin: PB0 +heater: extruder +heater_temp: 50.0 +fan_speed: 1.0 + + +[bltouch] +sensor_pin = ^PA11 +control_pin = PA8 +x_offset = 19.1 +y_offset = 31.1 +#z_offset = 2.425 +pin_move_time = 0.4 +speed = 10 #5 +stow_on_each_sample = FALSE +#position_min: -3 enable this for z-offset callibration + +[bed_mesh] +speed = 120 #120 +horizontal_move_z = 7 #8 +mesh_min = 42,42 +mesh_max = 290,270 +probe_count = 6,6 +# mesh_pps: 5,3 +algorithm = bicubic +# bicubic_tension: 0.2 + + +[safe_z_home] +home_xy_position = 160, 140 +speed = 50 +z_hop = 8 +z_hop_speed = 5 + +[input_shaper] +shaper_freq_y: 29.1 +shaper_type_y: mzv +shaper_freq_x: 71.4 +shaper_type_x: mzv + + +[screws_tilt_adjust] +screw1: 1.30,24.20 +screw1_name: Front Left +screw2: 166.30,24.20 +screw2_name: Front Right +screw3: 166.30,194.20 +screw3_name: Rear Right +screw4: 1.30,194.20 +screw4_name: Rear Left +horizontal_move_z: 10. +speed: 80 +screw_thread: CW-M4 + + + +[temperature_sensor pi] +sensor_type: temperature_host +min_temp: 10 +max_temp: 100 + +[temperature_sensor mcu] +sensor_type: temperature_mcu +min_temp: 0 +max_temp: 100 + + +[gcode_macro CALIBRATE_BED] +gcode: + G28 X0 Y0 + G28 Z0 + G90 + bed_mesh_calibrate profile=bluey method=automatic + + +[gcode_macro FILAMENT_LOAD] +gcode: + M83 + G92 E0.0 + G1 E480 F350 + G92 E0.0 + M82 + +[gcode_macro FILAMENT_UNLOAD] +gcode: + M83 + G92 E0.0 + G1 E-480 F350 + G92 E0.0 + M82 + + +[z_tilt] +z_positions: + 0,117.5 + 180,117.5 +points: + 5,117.5 + 180,117.5 +horizontal_move_z: 10 +retries: 10 +retry_tolerance: 0.02 + + +[exclude_object] + +[pause_resume] + +[display_status] + +[respond] + +#*# <---------------------- SAVE_CONFIG ----------------------> +#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated. +#*# +#*# [bed_mesh default] +#*# version = 1 +#*# points = +#*# 0.102500, 0.120000, 0.147500, 0.175000, 0.170000, 0.185000 +#*# 0.082500, -0.002500, 0.052500, 0.045000, 0.080000, 0.125000 +#*# -0.005000, -0.005000, -0.017500, -0.012500, -0.027500, 0.062500 +#*# -0.022500, -0.015000, -0.005000, 0.042500, 0.015000, 0.020000 +#*# 0.015000, 0.035000, -0.002500, -0.025000, 0.002500, 0.020000 +#*# 0.080000, 0.085000, 0.090000, 0.047500, 0.050000, 0.060000 +#*# tension = 0.2 +#*# min_x = 42.0 +#*# algo = lagrange +#*# y_count = 6 +#*# mesh_y_pps = 2 +#*# min_y = 42.0 +#*# x_count = 6 +#*# max_y = 262.7 +#*# mesh_x_pps = 2 +#*# max_x = 262.7 +#*# +#*# [bltouch] +#*# z_offset = 2.935 diff --git a/printer.cfg b/printer.cfg index 54779b5..f93b85d 100644 --- a/printer.cfg +++ b/printer.cfg @@ -117,11 +117,12 @@ pid_kd = 141.059 min_temp = 0 max_temp = 255 max_extrude_only_distance = 240 - #pressure_advance = 0.0953 +max_extrude_cross_section = 5 +pressure_advance = 0.536 # enables G10 to retract filament [firmware_retraction] -retract_length = 6 +retract_length = 4 unretract_extra_length = 0 [heater_bed] @@ -262,22 +263,22 @@ retry_tolerance: 0.02 #*# [bed_mesh default] #*# version = 1 #*# points = -#*# 0.160000, 0.150000, 0.130000, 0.207500, 0.177500, 0.202500 -#*# 0.070000, 0.020000, -0.015000, 0.015000, 0.015000, 0.055000 -#*# -0.005000, -0.032500, -0.042500, -0.025000, -0.035000, 0.067500 -#*# 0.037500, -0.057500, -0.007500, -0.032500, -0.012500, 0.025000 -#*# 0.090000, 0.080000, 0.052500, 0.002500, 0.025000, 0.110000 -#*# 0.272500, 0.197500, 0.162500, 0.175000, 0.147500, 0.150000 +#*# 0.115000, 0.112500, 0.160000, 0.155000, 0.150000, 0.195000 +#*# 0.025000, 0.047500, 0.047500, 0.057500, 0.080000, 0.112500 +#*# -0.030000, -0.035000, -0.017500, 0.017500, 0.025000, 0.035000 +#*# -0.025000, -0.092500, -0.072500, 0.002500, -0.010000, 0.030000 +#*# 0.010000, -0.075000, -0.057500, 0.027500, 0.010000, 0.087500 +#*# 0.075000, 0.065000, 0.062500, 0.037500, 0.255000, 0.057500 #*# tension = 0.2 #*# min_x = 42.0 -#*# algo = bicubic +#*# algo = lagrange #*# y_count = 6 #*# mesh_y_pps = 2 #*# min_y = 42.0 #*# x_count = 6 -#*# max_y = 270.0 +#*# max_y = 262.7 #*# mesh_x_pps = 2 -#*# max_x = 290.0 +#*# max_x = 262.7 #*# #*# [bltouch] -#*# z_offset = 2.910 +#*# z_offset = 2.975