From 4fa19a5e28bd5b53255722bff95d9f19aa5845e4 Mon Sep 17 00:00:00 2001 From: Frederik Hertzum Date: Sat, 16 Aug 2025 07:30:39 +0200 Subject: [PATCH] eh --- KlipperScreen.conf | 5 +-- hardware/manta.cfg | 25 +++++++------ misc/bed_mesh.cfg | 6 +-- misc/homing-override.cfg | 13 ++++--- misc/misc.cfg | 2 +- misc/tmc-autotune.cfg | 15 ++------ printer.cfg | 4 +- toolhead/t0.cfg | 29 ++++++++------ toolhead/t1.cfg | 81 ++++++++++++++++++++++++++++++++++++++++ 9 files changed, 131 insertions(+), 49 deletions(-) create mode 100644 toolhead/t1.cfg diff --git a/KlipperScreen.conf b/KlipperScreen.conf index 0b121ee..1119436 100644 --- a/KlipperScreen.conf +++ b/KlipperScreen.conf @@ -12,17 +12,14 @@ #~# show_heater_power = True #~# move_speed_xy = 491 #~# move_speed_z = 300 -#~# print_view = list #~# #~# [graph Printer] #~# temperature_fan ebay_fans = False -#~# extruder = False #~# temperature_sensor frame-front-right = False #~# temperature_sensor frame-rear-left = False #~# temperature_sensor mcu = False -#~# temperature_sensor cb2 = False #~# heater_bed = False #~# temperature_sensor t0 = False #~# temperature_sensor t0_motor = False -#~# temperature_sensor stepper_x = False +#~# extruder = False #~# diff --git a/hardware/manta.cfg b/hardware/manta.cfg index 449c50c..b92ec86 100644 --- a/hardware/manta.cfg +++ b/hardware/manta.cfg @@ -4,13 +4,6 @@ sensor_type: temperature_mcu [temperature_sensor CB2] sensor_type: temperature_host -[temperature_sensor chamber] -sensor_type: Generic 3950 -sensor_pin: PB0 -min_temp: 0 -max_temp: 100 -gcode_id: chamber - ##################################################################### # Bed Heater ##################################################################### @@ -38,12 +31,9 @@ pid_kd: 431.393 # Fan Control ##################################################################### -[multi_pin ebay_fans_pin] -pins: PF7, PF8 - [temperature_fan ebay_fans] # Print Cooling Fan - CNC_FAN0 -pin: multi_pin:ebay_fans_pin +pin: PF7 hardware_pwm: false control: watermark max_delta: 5 @@ -61,6 +51,19 @@ shutdown_speed: 0 pin: PF6 hardware_pwm: false + +[temperature_fan nevermore] +pin: PF8 +hardware_pwm: false +control: watermark +target_temp: 50 +max_power: 0.5 +sensor_type: Generic 3950 +sensor_pin: PB0 +min_temp: 0 +max_temp: 100 +shutdown_speed: 0 + [fan_generic exhaust] pin: PF9 hardware_pwm: false diff --git a/misc/bed_mesh.cfg b/misc/bed_mesh.cfg index e7003ce..31f3548 100644 --- a/misc/bed_mesh.cfg +++ b/misc/bed_mesh.cfg @@ -1,8 +1,8 @@ [bed_mesh] speed: 600 horizontal_move_z: 2 -mesh_min: 20,20 -mesh_max: 330,330 -probe_count: 7,7 +mesh_min: 10,10 +mesh_max: 340,340 +probe_count:9,9 algorithm: bicubic adaptive_margin: 5 \ No newline at end of file diff --git a/misc/homing-override.cfg b/misc/homing-override.cfg index e2f9ee2..4c4d422 100644 --- a/misc/homing-override.cfg +++ b/misc/homing-override.cfg @@ -3,18 +3,19 @@ axes: xyz set_position_z: 0 gcode: - G0 Z15 + G0 Z15 F600 {% set home_all = 'X' not in params and 'Y' not in params and 'Z' not in params %} - {% if home_all or 'X' in params %} - _HOME_X - {% endif %} - {% if home_all or 'Y' in params %} _HOME_Y {% endif %} + {% if home_all or 'X' in params %} + _HOME_X + {% endif %} + {% if home_all or 'Z' in params %} - G28 Z + G1 X175 Y175 F36000 + G28 Z F600 G1 Z10 {% endif %} diff --git a/misc/misc.cfg b/misc/misc.cfg index 48fa90e..5322739 100644 --- a/misc/misc.cfg +++ b/misc/misc.cfg @@ -5,4 +5,4 @@ [include homing-override.cfg] [include arcs.cfg] [include skew.cfg] -[include tmc-autotune.cfg] +#[include tmc-autotune.cfg] diff --git a/misc/tmc-autotune.cfg b/misc/tmc-autotune.cfg index a39f67d..3ef01c8 100644 --- a/misc/tmc-autotune.cfg +++ b/misc/tmc-autotune.cfg @@ -13,27 +13,20 @@ max_current: 2.00 steps_per_revolution: 200 [autotune_tmc stepper_x] -motor: 17hs19-2004s-ab -sg4_thrs: 150 +motor: ldo-42sth48-2804ah +sg4_thrs: 60 tuning_goal: performance [autotune_tmc stepper_y] -motor: 17hs19-2004s-ab -sg4_thrs: 100 +motor: ldo-42sth48-2804ah +sg4_thrs: 60 tuning_goal: performance [autotune_tmc stepper_z] motor: 17hs19-2004s-c -tuning_goal: performance - [autotune_tmc stepper_z1] motor: 17hs19-2004s-c -tuning_goal: performance - [autotune_tmc stepper_z2] motor: 17hs19-2004s-c -tuning_goal: performance - [autotune_tmc stepper_z3] motor: 17hs19-2004s-c -tuning_goal: performance diff --git a/printer.cfg b/printer.cfg index 23a3507..5d93e8a 100644 --- a/printer.cfg +++ b/printer.cfg @@ -7,10 +7,10 @@ [printer] -max_velocity: 500 +max_velocity: 300 max_accel: 4000 kinematics: corexy -max_z_velocity: 50 #Max 15 for 12V TMC Drivers, can increase for 24V +max_z_velocity: 30 #Max 15 for 12V TMC Drivers, can increase for 24V max_z_accel: 500 square_corner_velocity: 12.0 diff --git a/toolhead/t0.cfg b/toolhead/t0.cfg index 300ce11..96ae528 100644 --- a/toolhead/t0.cfg +++ b/toolhead/t0.cfg @@ -6,7 +6,7 @@ # See docs/Config_Reference.md for a description of parameters. [mcu t0] -canbus_uuid: 09006bc75877 +canbus_uuid: 336f4a59eb4e [temperature_sensor t0] sensor_type: temperature_mcu @@ -25,9 +25,9 @@ accel_chip: adxl345 probe_points: 175, 175, 20 -[temperature_sensor t0_motor] -sensor_type: Generic 3950 -sensor_pin: t0: PA3 +# [temperature_sensor t0_motor] +# sensor_type: Generic 3950 +# sensor_pin: t0: PA3 [extruder] step_pin: t0: PD0 @@ -41,12 +41,13 @@ control: pid pid_kp: 19.512 pid_ki: 0.798 pid_kd: 119.265 -rotation_distance: 5.53014 +rotation_distance: 4.637 filament_diameter: 1.75 nozzle_diameter: 0.6 max_extrude_cross_section: 10 -max_extrude_only_distance: 101 -pressure_advance: 0.018 +max_extrude_only_distance: 500 +pressure_advance: 0.025 +pressure_advance_smooth_time: 0.03 sensor_type:MAX31865 sensor_pin: t0: PA4 @@ -60,17 +61,23 @@ rtd_num_of_wires: 2 ## Probe Port [probe] pin: t0:PB6 -z_offset: -1.5 +z_offset: -0.625 [tmc2209 extruder] uart_pin: t0: PA15 -run_current: 0.9 +interpolate: true +run_current: 0.85 +stealthchop_threshold: 0 +driver_TBL: 0 +driver_HEND: 6 +driver_HSTRT: 7 +driver_TOFF: 4 [fan] -pin: t0: PA0 +pin: t0: PA1 [heater_fan hotend_fan] -pin: t0: PA1 +pin: t0: PA0 heater: extruder heater_temp: 50.0 diff --git a/toolhead/t1.cfg b/toolhead/t1.cfg new file mode 100644 index 0000000..0a8debd --- /dev/null +++ b/toolhead/t1.cfg @@ -0,0 +1,81 @@ +# This file contains common pin mappings for the BIGTREETECH t0 +# Canbus board. To use this config, the firmware should be compiled for the +# STM32G0B1 with "8 MHz crystal" and "USB (on PA11/PA12)" or "CAN bus (on PB0/PB1)". +# The "EBB Can" micro-controller will be used to control the components on the nozzle. + +# See docs/Config_Reference.md for a description of parameters. + +[mcu t1] +canbus_uuid: 96ef5bff5739 + +[temperature_sensor t1] +sensor_type: temperature_mcu +sensor_mcu: t1 +max_temp: 100 + +[adxl345] +cs_pin: t1: PB12 +spi_software_sclk_pin: t1: PB10 +spi_software_mosi_pin: t1: PB11 +spi_software_miso_pin: t1: PB2 +axes_map: x,y,z + +[resonance_tester] +accel_chip: adxl345 +probe_points: + 175, 175, 20 + +[extruder] +step_pin: t1: PD0 +dir_pin: !t1:PD1 +enable_pin: !t1: PD2 +heater_pin: t1: PB13 +min_temp: 0 +max_temp: 300 +microsteps: 16 +control: pid +pid_kp: 32.859 +pid_ki: 12.170 +pid_kd: 22.180 +rotation_distance: 4.3135092 +filament_diameter: 1.75 +nozzle_diameter: 0.4 +max_extrude_cross_section: 10 +max_extrude_only_distance: 101 +pressure_advance: 0.018 +#sensor_type: NTC 100K MGB18-104F39050L32 +sensor_type: Generic 3950 +sensor_pin: t1: PA3 +smooth_time: 0.50 + +# Probe +##################################################################### +## Probe Port +[probe] +pin: t1:PB6 +z_offset: -0.85 + +[tmc2209 extruder] +uart_pin: t1: PA15 +run_current: 0.6 + +[fan] +pin: t1: PA1 + +[heater_fan hotend_fan] +pin: t1: PA0 +heater: extruder +heater_temp: 50.0 + +#[neopixel hotend_rgb] +#pin: t1:PD3 + +#[bltouch] +#sensor_pin: ^t1:PB8 +#control_pin: t1:PB9 + +#[filament_switch_sensor switch_sensor] +#switch_pin: t1:PB4 + +#[filament_motion_sensor motion_sensor] +#switch_pin: ^t1:PB3