From 66a7c69a8603bbc1f1695db6bf03141f3aa9ef22 Mon Sep 17 00:00:00 2001 From: Ender3 venya Date: Wed, 28 Jan 2026 20:58:53 +0300 Subject: [PATCH] drivers, servos and endstops --- printer.cfg | 78 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 44 insertions(+), 34 deletions(-) diff --git a/printer.cfg b/printer.cfg index 1996b4d..a4b18be 100644 --- a/printer.cfg +++ b/printer.cfg @@ -8,29 +8,29 @@ [stepper_x] step_pin: P2.2 -dir_pin: P2.6 +dir_pin: !P2.6 enable_pin: !P2.1 microsteps: 16 rotation_distance: 40 -endstop_pin: !P1.29 +endstop_pin: ^P1.29 position_endstop: 0 position_max: 235 homing_speed: 50 [stepper_y] step_pin: P0.19 -dir_pin: P0.20 +dir_pin: !P0.20 enable_pin: !P2.8 microsteps: 16 rotation_distance: 40 -endstop_pin: !P1.28 +endstop_pin: ^P1.28 position_endstop: 0 position_max: 235 homing_speed: 50 [stepper_z] step_pin: P0.22 -dir_pin: !P2.11 +dir_pin: P2.11 enable_pin: !P0.21 microsteps: 16 rotation_distance: 8 @@ -47,13 +47,13 @@ rotation_distance: 33.500 nozzle_diameter: 0.400 filament_diameter: 1.750 heater_pin: P2.7 -sensor_type: EPCOS 100K B57560G104F +sensor_type: Generic 3950 # wild guess based on https://www.facebook.com/groups/voroncorexy/posts/2164489710646250/ sensor_pin: P0.24 control: pid -pid_Kp: 22.2 -pid_Ki: 1.08 -pid_Kd: 114 -min_temp: 0 +pid_Kp: 21.73 +pid_Ki: 1.54 +pid_Kd: 76.55 +min_temp: 5 max_temp: 260 #[extruder1] @@ -88,35 +88,45 @@ max_accel: 500 max_z_velocity: 10 max_z_accel: 100 +[display] +lcd_type: st7920 +cs_pin: EXP1_7 +sclk_pin: EXP1_6 +sid_pin: EXP1_8 +encoder_pins: ^EXP1_5, ^EXP1_3 +click_pin: ^!EXP1_2 + +[output_pin beeper] +pin: EXP1_1 ######################################## # TMC2208 configuration ######################################## -#[tmc2208 stepper_x] -#uart_pin: P1.10 -#run_current: 0.800 -#stealthchop_threshold: 999999 -# -#[tmc2208 stepper_y] -#uart_pin: P1.9 -#run_current: 0.800 -#stealthchop_threshold: 999999 -# -#[tmc2208 stepper_z] -#uart_pin: P1.8 -#run_current: 0.650 -#stealthchop_threshold: 999999 -# -#[tmc2208 extruder] -#uart_pin: P1.4 -#run_current: 0.800 -#stealthchop_threshold: 999999 -# -#[tmc2208 extruder1] -#uart_pin: P1.1 -#run_current: 0.800 -#stealthchop_threshold: 999999 +[tmc2208 stepper_x] +uart_pin: P1.10 +run_current: 0.670 +stealthchop_threshold: 999999 + +[tmc2208 stepper_y] +uart_pin: P1.9 +run_current: 0.670 +stealthchop_threshold: 999999 + +[tmc2208 stepper_z] +uart_pin: P1.8 +run_current: 0.670 +stealthchop_threshold: 999999 + +[tmc2208 extruder] +uart_pin: P1.4 +run_current: 0.940 +stealthchop_threshold: 999999 + +# [tmc2208 extruder1] +# uart_pin: P1.1 +# run_current: 0.800 +# stealthchop_threshold: 999999 ########################################