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

    Connection issues to external Closed Loop Stepper Driver

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    4
    16
    744
    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.
    • Kruixundefined
      Kruix
      last edited by

      Hello, I am having problems with connecting an external Stepper motor driver to the Duet
      It seems that the motor driver can't find a signal

      Mainboard: Duet3 6XD
      Steppermotor driver: Step/Dir/Enable Interface, with maximum Connection rate up to 10kHz
      Stepper motor: NEMA17

      f33f301b-1f3b-4a3e-a103-1c5241feb964-grafik.png

      Connection
      Stepper driver<->Duet3 6XD Driver_0
      DIR<->DIR
      STEP<->STEP
      ENABLE<->ENABLE
      GROUND<->GROUND

      1. Are Pull-ups for the Signals needed?
      2. Is it sufficient for the config file to specify
        for the external Driver to work?

      M569 P0 S1; drive 0 goes forward
      M584 X0 ; drive mapping
      M350 X16 ;microstepping
      M569 P0 R0 T167:167:167:0 //low enable, time set to approx 6 kHz
      //
      M92 X20.0
      M566 X1000
      M203 X6000
      M906 X1000
      M84 S200


      Thanks in advance

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

        @Kruix please share a link to the manual for your external stepper driver. That will help us to answer your questions. Most external drivers have optically isolated inputs so that do not require pullup resistors; however the input voltage you listed above suggests that your drivers may have non-isolated inputs, in which case you will need to add pullup resistors and you may need to invert the step signal.

        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

        Kruixundefined 1 Reply Last reply Reply Quote 0
        • Kruixundefined
          Kruix @dc42
          last edited by Kruix

          @dc42
          Thank you for the reply.
          Datasheet:
          https://henschel-robotics.ch/wp-content/uploads/2022/04/Manual_HDrive.pdf
          Model: 17ETH-i
          Configuration:
          3f146398-4347-491b-afa2-67af97b83f3e-grafik.png

          I have tried to use the Motor in the active high and active low configuration before.
          I have found that the Signal voltage when the Motors where connected was pretty low (Amplitude of 0.8V)even when I have set the setting in the duet active high and also tried using 10k pullups to 5V
          For me it looks as if it wasn't optically isolated as there are only 4 ESDG wires
          I have also tried to crosswire like in the image:
          e7444b37-f58e-43ce-977c-a4e313fa9ec0-grafik.png
          as in https://docs.duet3d.com/User_manual/Connecting_hardware/Motors_connecting_external
          The Firmware is Reprap the latest stable version for Duet and
          The Board is run over a Raspberry Pi 3B connected with an external 5V power supply and connected over the Serial cables.
          The USB is not connected.

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

            @Kruix I think you are correct, the inputs are not isolated. Try using 1K pullup resistors to +5V.

            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

            Kruixundefined 2 Replies Last reply Reply Quote 0
            • Kruixundefined
              Kruix @dc42
              last edited by

              @dc42
              I will try that out, thank you.
              Is the wiring correct with?
              EN -EN
              STEP - STEP
              DIR -DIR
              GROUND -GROUND
              or should it be connected like the polulu in the image above?

              T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
              • Kruixundefined
                Kruix @dc42
                last edited by

                @dc42 It didnt work with 1k or 500ohms pullup resistors

                1 Reply Last reply Reply Quote 0
                • T3P3Tonyundefined
                  T3P3Tony administrators @Kruix
                  last edited by

                  @Kruix said in Connection issues to external Closed Loop Stepper Driver:

                  or should it be connected like the polulu in the image above?

                  why would the image show the enable, step, direction pins swapped around so they are not connecting to the correct pins? where did that image come from?

                  www.duet3d.com

                  Kruixundefined 1 Reply Last reply Reply Quote 0
                  • Kruixundefined
                    Kruix @T3P3Tony
                    last edited by

                    @T3P3Tony

                    https://docs.duet3d.com/User_manual/Connecting_hardware/Motors_connecting_external

                    Yes it didn't make sense to me too at least

                    T3P3Tonyundefined dc42undefined 2 Replies Last reply Reply Quote 0
                    • T3P3Tonyundefined
                      T3P3Tony administrators @Kruix
                      last edited by

                      @Kruix ahh right, that example adaptor board must swap pins over or something. If you are not suing that then step-step, dir-dir etc is correct.

                      www.duet3d.com

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

                        @Kruix have you tried changing the enable polarity jumper on the 6XD ?

                        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
                        • Kruixundefined
                          Kruix @T3P3Tony
                          last edited by

                          @T3P3Tony
                          Firstly thanks for the support!
                          changing the Polarity didn't work. But one more question, if there is no error signal of a motor, nothing needs to be connected there, right?
                          What Polarity does the jumper change? Is the standard active high or low?

                          T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                          • T3P3Tonyundefined
                            T3P3Tony administrators @Kruix
                            last edited by

                            @Kruix the polity for the enable jumper changes active high/low

                            The error pull up/down relates only to an error input if you are using it.

                            from the documentation:

                            A jumper in the "left" position is used for external drivers which are enabled when a voltage is applied to the enable connection (Active Enable). A jumper in the "right" position is used for external drivers which are disabled when a voltage is applied to the enable connection (Active Disable) (Note the v0.1 boards have the silkscreen reversed).

                            https://docs.duet3d.com/Duet3D_hardware/Duet_3_family/Duet_3_Mainboard_6XD_Hardware_Overview#description-of-connections

                            www.duet3d.com

                            Kruixundefined 1 Reply Last reply Reply Quote 0
                            • Kruixundefined
                              Kruix @T3P3Tony
                              last edited by

                              @T3P3Tony
                              Is it possible to set the STEP/DIR Signal itself active High instead of pulling it to ground?

                              jay_s_ukundefined 1 Reply Last reply Reply Quote 0
                              • jay_s_ukundefined
                                jay_s_uk @Kruix
                                last edited by

                                @Kruix the R value in M569
                                https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m569-set-motor-driver-direction-enable-polarity-mode-and-step-pulse-timing

                                Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

                                Kruixundefined 2 Replies Last reply Reply Quote 0
                                • Kruixundefined
                                  Kruix @jay_s_uk
                                  last edited by

                                  @jay_s_uk
                                  The question was because of the article in https://docs.duet3d.com/User_manual/Overview/Getting_started_Duet_3_MB6XD
                                  that states at the bottom that
                                  "The Step, Dir and Enable outputs from the 6XD are either low (when "on") or floating/high impedence when "off". "
                                  thats why I assumed the R command would only refer to the Polarity of the Enable Pin

                                  1 Reply Last reply Reply Quote 0
                                  • Kruixundefined
                                    Kruix @jay_s_uk
                                    last edited by

                                    @jay_s_uk You are totally right, I was questioning my sanity but I tried the same with a different driver and it worked now. I guess that my driver was broken. There were also some software issues.Thanks everyone for your help!

                                    1 Reply Last reply Reply Quote 1
                                    • T3P3Tonyundefined T3P3Tony marked this topic as a question
                                    • T3P3Tonyundefined T3P3Tony has marked this topic as solved
                                    • First post
                                      Last post
                                    Unless otherwise noted, all forum content is licensed under CC-BY-SA