Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Duet3: TMC driver current setting after power cycle

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    3
    5
    271
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 0xde4dbeefundefined
      0xde4dbeef
      last edited by

      I have a quick question regarding how the Duet3 handles a power cycle on the main Vin rail (as in for example turn the main power supply off with the MCU still powered via USB and then back on)?
      Specifically I have the experience with a different board running Klipper that after a power cycle you need to call a TMC_INIT command manually in order to reset settings like RMS current of the TMC drivers, as they would reset when the main power rail is cycle. This did cost me a rather hard to get small motor as it burned out in a very short amount of time (only handles like 0.4A RMS). I'd like to avoid this mistake from the start 🙂

      So with the duet3, will I need to call any commands after power cycle or does the firmware handle this gracefullly, as in automatically detects Vin power cycle and configures drivers automatically?

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by Phaedrux

        If the Duet is still powered it would still have the configuration from config.g loaded. When vin is reapplied the motors would likely be in an unhomed state from being deenergized, so you would need to home them again any way and the current setting from config.g would still be in effect. At least that's what I think is going to happen.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • 0xde4dbeefundefined
          0xde4dbeef
          last edited by

          Well, the problem I ran into with Klipper, was that while klipper still knew about the current setting, but the TMC driver forgot about it. Since klipper had no means to know if Vin is present, it also had no means to know it had to instruct the driver again about the current settings. I am aware that the Duet3 monitors the input voltage.

          @Phaedrux said in Duet3: TMC driver current setting after power cycle:

          At least that's what I think is going to happen.

          Thats exactly what cost me a not exactly cheap and especially hard to source Nema8 motor 😉 Hence I figured it's best to ask before I go to just find out by trial and error ...

          1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators
            last edited by dc42

            All Duets from the Duet WiFi onwards monitor the VIN voltage, and RRF re-initialises the TMC drivers whenever it goes above about 10.5V. As @Phaedrux says, all axes will be in an un-homed state.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • 0xde4dbeefundefined
              0xde4dbeef
              last edited by

              Nice, thank you @dc42!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA