Can't reverse stock e stepper for ender 5 plus. homemade direct drive mod

Basic Information:

Printer Model: Ender 5 plus
MCU / Printerboard: btt skr mini e3 v3
klippy.log

Describe your issue:

I made a homemade direct drive mod with the stock motor of my Ender 5 plus. In the firmware I understand that I need to add an ! Like so (!PB1)
And it doesn’t reverse, so I removed it to see if that’ll work. It still doesn’t.

[extruder]
step_pin: PB3

dir_pin: PB4 # Bowden style

dir_pin: !PB4 # Direct drive (reverse the motor)
enable_pin: !PD1
microsteps: 16
rotation_distance: 33.500
nozzle_diameter: 0.400
filament_diameter: 1.750

max_power: 1.0

heater_pin: PC8
sensor_type: EPCOS 100K B57560G104F # Creality hotend thermistor
sensor_pin: PA0
min_temp: 0
max_temp: 260
min_extrude_temp: 180
max_extrude_only_velocity: 100.0
max_extrude_only_accel: 40.0
#control: pid
#pid_Kp: 22.2
#pid_Ki: 1.08
#pid_Kd: 114

klippy(3).txt (955.5 KB)

did I miss seeing it but where in your config is

[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
run_current: 0.650
stealthchop_threshold: 999999

Wait I need to ! There?

[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 3
run_current: 0.40 # 0.49
stealthchop_threshold: 999999

Here, why?

@Lord_Vader :

Please make regular use of Preformatted Text when you post code snippets:

Format

3 Likes

As @Blackstump indicated: You need the [tmc2209 ....] section to properly control the driver. Reversing the direction is done on the dir_pin

1 Like

I did look at your whole log file and everywhere in configuration I did see only “!PB4” as dir_pin for extruder - I didn’t see any attempt to change it.
Just maybe you was editing the wrong file ?
your current config location is here: /home/harrison/printer_data/config/printer.cfg

2 Likes

klippy(4).txt (109.1 KB)

Here’s a fresh copy. I don’t completely understand what you mean. I’m wanting to understand though. I should’ve added earlier that I moved from marlin and I understand that, just not this.

I thought I did that and I fixed what was previously mentioned. I don’t know what I’m supposed to be looking for completely. Still very new to klipper but I want to learn

Usually (by default) klippy.log file is storing everything what was happening not only in last session but the whole day including what exact configuration was there in each session.

You did state that changing dir_pin value doesn’t reverse your motor.

So I did look at your log file and did see there last 10 sessions thru March 10
in each session I did look at Extruder configuration at dir_pin value, and in each session I did see just this setup

dir_pin = !PB4

I didn’t see any session with reverse settings (with removed ! which is making pin reverse)

From that I can assume that maybe you was changing pin value, but was not saving printer configuration and doing full restart of system, or you was doing that in a file which don’t have any relation to klipper execution.

1 Like

OK, hold on. Just so I understand

!PB4 = Normal rotation

PB4 = Reverse rotation

Is that correct? Or ami I confusing something?
Now about the config file not changing, I am saving but that might be mainsail at it again. Not sure if it’s a bug but what happens is mainsail makes a copy of my config file but after the first initial version it never updates. I figured that out after deleting the mainsail.cfg file.

Yes- correct, more about pin configuration options you can read here: Configuration reference - Klipper documentation

P.S. Just clarification: it’s correct in your case, reversing a pin - is just changing it’s behavior in reverse, so if you did get “normal” with ! then to reverse it just remove !

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.