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

    Wiring of stepper motors

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    10
    727
    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.
    • Heideundefined
      Heide
      last edited by

      Hello

      I have a fairly question I would like to ask. Just so that I am in sync with reality. 🙂

      Moons Stepper MS17HD6P4200 Color wiring:
      1 = Black
      3 = Green
      4 = Red
      6 = Blue
      There are 2 pairs 1 and 3, 4 and 6.

      Duet3 board
      A2 = Black
      A1 = Green
      B2 = Blue
      B1 = Red
      There are also 2 pairs A2 and A1, B2 and B1.

      I think I have problems with pairs maybe, or it could also be the coding. But I have to exclude the fail. I will start with the wiring.

      On the board the wiring I have is like this.
      A2 = Black
      A1 = Green
      B2 = Red
      B1 = Blue

      The wiring is twisted on the Blue and the Red because of the way the Moons are structured.

      What will happen if that kind of wiring is wrong?

      My poorly experience with this, tells me that if I would take the wires like this and chance the Blue with the Red - the coils will work against each other. Am I right or have I just misunderstand the whole thing.
      A2 = Black
      A1 = Green
      B2 = Blue
      B1 = Red

      Voron CoreXY with Duet 3 + expansion + PanelDue 7i - 300 * 300 * 300 and Hemera Revo

      jay_s_ukundefined mrehorstdmdundefined zaptaundefined 3 Replies Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @Heide
        last edited by

        @heide the order of the wires in the pair doesn't matter. you could have green then black or black then green and it would still work the same way

        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

        Heideundefined 1 Reply Last reply Reply Quote 0
        • Heideundefined
          Heide @jay_s_uk
          last edited by

          @jay_s_uk can you elaborate on that?
          Are you saying that I can place them like I want, and the polarity won't change. As long as I keep the pairs together?

          Voron CoreXY with Duet 3 + expansion + PanelDue 7i - 300 * 300 * 300 and Hemera Revo

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

            @heide yes, the main thing is keeping the pairs together. the order of the cables within that pair doesn't matter.

            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

            Heideundefined 1 Reply Last reply Reply Quote 0
            • Heideundefined
              Heide @jay_s_uk
              last edited by

              @jay_s_uk Okey I am confused about that, but I will be focusing on the coding then.

              Voron CoreXY with Duet 3 + expansion + PanelDue 7i - 300 * 300 * 300 and Hemera Revo

              Heideundefined 1 Reply Last reply Reply Quote 0
              • Heideundefined
                Heide @Heide
                last edited by

                @jay_s_uk by the way, thanks

                Voron CoreXY with Duet 3 + expansion + PanelDue 7i - 300 * 300 * 300 and Hemera Revo

                1 Reply Last reply Reply Quote 1
                • mrehorstdmdundefined
                  mrehorstdmd @Heide
                  last edited by mrehorstdmd

                  @heide Do not, under any circumstances, connect or disconnect the motor cable or any of its wires while the driver is trying to spin the motor! It is safest for the driver to have the power off when doing anything with motor wire connections.

                  The relative phases of the windings matter. If you connect one backwards the motor will just vibrate and won't turn. If that happens, just reverse one coil's connections to the driver and the motor should turn. You can set forward/reverse in the config file.

                  https://drmrehorst.blogspot.com/

                  Heideundefined 1 Reply Last reply Reply Quote 1
                  • Heideundefined
                    Heide @mrehorstdmd
                    last edited by

                    @mrehorstdmd I will never do anything with the power on :).

                    In regards to the polarity. If I can't get it to work in regards of the coding, I will look at the wires. I think I have to revers the Red with the Blue. I recall it to vibrate, and that was also the thoughts I had. I will look into this when I get home from work

                    Voron CoreXY with Duet 3 + expansion + PanelDue 7i - 300 * 300 * 300 and Hemera Revo

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

                      @heide, do you have a multimeter that can measure ohms? If so, you can ignore all the coloring stuff, which is often inconsistent, and just measure it. This should work with any stepper and driver.

                      A stepper motor have two coils with a wire on each end of each coil (total of 4 wires).

                      With an ohmmeter you can identify the two pairs of wires (having connectivity between them). Once you identify the two pairs, connect one pair to A1, A2 and the other to B1, B2. If the motor turns in the opposite direction you want it to turn, swap between A1, A2 (or between B1, B2) and it will reverse the direction, or you can tell the Duet firmware to reverse the direction.

                      If you want to twist the wires (I don't), twist each pair of wires independently.

                      Heideundefined 1 Reply Last reply Reply Quote 0
                      • Heideundefined
                        Heide @zapta
                        last edited by

                        @zapta Thanks I have now change them all, Blue on Red vice versa. And it seems to do the trick.
                        I'm using:
                        G91
                        G1 H2 Y10 F3000
                        G1 H2 X10 F3000
                        G1 H2 Z200 F3000
                        And it works.

                        But know I have problems with Homing.

                        Anyway thanks

                        I have to start a new tread, for the Coding, but before I do that, I'll give it one more go

                        Voron CoreXY with Duet 3 + expansion + PanelDue 7i - 300 * 300 * 300 and Hemera Revo

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