TMC5160 not working on 24V conversion form 12V

Basic Information:

Printer Model: Self build printer
MCU / Printerboard:bigtree tech SKR 1.4

Klipper reports: SHUTDOWN TMC ‘stepper_y’ reports error: GSTAT: 00000004 uv_cp=1(Undervoltage!) Once the underlying issue is corrected, use the “FIRMWARE_RESTART” command to reset the firmware, reload the config, and restart the host software. Printer is shutdown

Describe your issue:

I have converted my 3D printer which runs TMC5160 stepper drivers from 12V to 24V and I am getting this error. I have swapped in some old DRV8825 drivers and with them everything is working fine. Does anyone has experience with this issue?

Raoul

Hello @raoul596 and welcome to the forum!

Please attach the requested klippy.log to your next post.

Welcome raoul596,

which power supply (or power supplies) do you use. Could you post the exact model names?

Is it completely 24 volt now, or some 12 volt and some 24 volt? If the latter, are your grounds tied together? The power supplies need to agree on ground, or you’ll get squirrelly behavior.

klippy.log (1.2 MB)
Just put the TMC5160 back in to get the log. Hope you can see something.

The printer is completely 24V. Using a power supply I had laying around of 24V 20A.

Which exact TMC5160 are you using? It might require 24V to additionally be connected. Does it give you the error immediately, or after working for a bit?

They are the TMC5160 V1.2 which I bought back in February 2021.

The error comes after working for a bit, but the homing sequence can not be completed without getting the undervoltage error.

I don’t have 3d printer experience, so I’m not the best source of information. I built a motion control system with a single linear actuator. I wasn’t sure how much force I’d need, so used a BTT TMC5160 Plus module. My system uses mixed 12V/24V with a Manta M8P V2. Sounds like we’re comparing apples and oranges to some degree, but my module has separate 24V supply lines in addition to the spi interface and phase lines. This has me wondering if perhaps the design of your module requires additional wires or jumpers (that the ones that work do not require). Picture of mine below. Is yours a BTT module? Can you point us to a data sheet for it? Sounds like you are so close!

Well I am using a BTT SKR 1.3 mainboard and use the ‘push in’ TMC5160 drivers. Only thing you need to do is place 4 jumpers for SPI communication.

Any chance you can put a scope on VM to ground while it’s homing?

Also, does lower run current help?

Thanks it! I had it on 0.8A. Now on 0.6A and just completed a 20min print. Thanks for the help!

Oh, just started a print of 1 hour and 20 minutes in I get the error again. Now changing the run current does nothing when trying to home the printer does not even move and already gets this undervoltage error. Really strange that it worked in the beginning and now it does not want to move a tiny bit.

That gives us another data point. Everything is wired and configured properly, it can work. The fact that you’re able to get further with lower run current is an indication that the ability to supply power to the driver is marginal for some reason.

Perhaps there is an overheating issue that’s locking out the driver. What does DUMP_TMC show when it doesn’t want to move? Turn the system off and let it cool for a while before trying again and see if that helps.

Do you have any ability to monitor the voltage on the Vm pin of the driver while it is homing? A scope is the right tool for the job, but if the voltage is marginal, even a multimeter might show it.

I have not done this myself, but I have seen suggestions of wiring directly from the 24 volt power supply to the Vm pin of the driver. The idea being that the trace on the board is having trouble carrying enough current for the driver. Your other drivers might work fine because they draw less current. Do your own research on this and draw your own conclusions before trying anything.

I forgot to mention in my first post (before the klippy.log was posted) TMC5160 not working on 24V conversion form 12V - #3 by hcet14 , that I guessed a lack of power. Sorry for missing that.
You klippy.log shows a lack of power.

That’s why I asked my question. Another question would be, which up-converter are you using to convert from 12V to 24V?

I forgot, please post your latest klippy.log.