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

    How to check the real current of the stepper motor

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    37
    2.8k
    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.
    • zaptaundefined
      zapta @moth4017
      last edited by zapta

      @moth4017 said in How to check the real current of the stepper motor:

      but it is still continuously running , where would it be hiding so i can stop it

      It should stop after a minute or two. What I do is pressing on the red STOP button on PanelDue or DWC to reset the machine. This also resets any configuration changes the script may do.

      1 Reply Last reply Reply Quote 0
      • zaptaundefined
        zapta @moth4017
        last edited by

        @moth4017 said in How to check the real current of the stepper motor:

        M1000 requested measures 0.8379A with you new script

        I guess it's now a question to the Duet team, is this a reliable measurement and is the result within the expected range.

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

          @zapta I would expect it to be closer than that, it should be less than 10% out.

          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

          moth4017undefined 1 Reply Last reply Reply Quote 0
          • moth4017undefined
            moth4017 @dc42
            last edited by

            @dc42 so where does this leave us? is it lower that it should be or within acceptable parameter's
            🙂

            <

            moth4017undefined 1 Reply Last reply Reply Quote 0
            • moth4017undefined
              moth4017 @moth4017
              last edited by

              @moth4017 i tried the current measure on the extruder not using the script but setting the extrude speed to 0.001mm/s the highest reading i got was 0.1347A
              m906
              Motor current (mA) - X:1000, Y:1000, Z:600, E:1200, idle factor 30%
              PM M913
              Motor current % of normal - X:100, Y:100, Z:100, E:100

              <

              zaptaundefined 1 Reply Last reply Reply Quote 0
              • zaptaundefined
                zapta @moth4017
                last edited by

                @moth4017, as reported in a previous post, I got X current that seems to be in range so I am trying to identify differences from your configuration.

                1. I was measuring an X current on a motor that is connected to the daughter board. [theoretically it should behave exactly like a main board driver since it has direct connection]

                2. This is by firmware configuration. It's an older firmware version than yours.

                RepRapFirmware for Duet 3 Mini 5+ version 3.4.0beta5 (2021-10-12 13:53:24) running on Duet 3 Mini5plus WiFi (standalone mode)
                Board ID: A0L0Y-5296U-D65J0-40KMN-0W03Z-HBTQS

                1. [long shot in the dark] The Mini 5 uses on board current sense resistors so theoretically if the value is in connect or a connection is not good, it may increase the actual current without the drive being aware of it.

                Not sure if it helps. 😉

                moth4017undefined 1 Reply Last reply Reply Quote 0
                • moth4017undefined
                  moth4017 @zapta
                  last edited by

                  @zapta i notie there is a vref on the tmc do you know if this value changes when controlled by the miro ,

                  <

                  zaptaundefined 1 Reply Last reply Reply Quote 0
                  • zaptaundefined
                    zapta @moth4017
                    last edited by

                    @moth4017, I am not an expert, but you can try searching the driver's datasheet for 'vref' and 'sense' and see if it helps. It's a smart chip so there are all kind of programming options for the RRF firmware to use.

                    https://www.trinamic.com/fileadmin/assets/Products/ICs_Documents/TMC2209_Datasheet_V103.pdf

                    The schematic of the Mini 5 suggests that it uses 56 milliohms resistors for sensing the coil currents.

                    d749e6ca-f9fa-4e4b-bb3e-b0002a18196f-2022-02-22_16-09-41.png

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

                      @zapta correct, the sense resistor is 0.056 ohms.

                      There are a few factors that may cause the current to be inaccurate:

                      • The internal resistance of the BRA and BRB pins needs to be taken into account. We assume this is 0.02 ohms, as specified on the datasheet.
                      • The driver reference voltage has a tolerance of +/- 5%
                      • The current will be rounded to the nearest multiple of approx. 74mA, usually down (up only if the next multiple is really close). This means that if you set 1000mA then the current setting requested from the driver will be 962mA.

                      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

                      moth4017undefined 1 Reply Last reply Reply Quote 0
                      • moth4017undefined
                        moth4017 @dc42
                        last edited by

                        @dc42 My BRA andBRB are 0.056ohms

                        <

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