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

Connecting External Stepper Drivers

Scheduled Pinned Locked Moved
Duet Hardware and wiring
3
19
2.9k
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.
  • undefined
    iDevelo
    last edited by 21 Oct 2016, 08:58

    Can anyone confirm the wiring for DRV8825 to the expansion connector. For example E3

    And I'm correct in thinking these will work out of the box?

    1 Reply Last reply Reply Quote 0
    • undefined
      T3P3Tony administrators
      last edited by 21 Oct 2016, 09:16

      I have not tried a DRV8825 however standard stepstick work out the box. I connected to E2 on the expansion port, step,dir and enable, pins 5,6,7 as shown on this diagram:
      https://duet3d.com/wiki/Duet_WiFi_wiring_diagrams

      Also supply 3.3V and ground from the expansion header and VIN and ground from the power supply. I used a spare RAMPS 1.3pcb I had laying around and just populated 1 stepper driver and power in components however you could use strip board equally easily.

      www.duet3d.com

      1 Reply Last reply Reply Quote 0
      • undefined
        dc42 administrators
        last edited by 21 Oct 2016, 11:19

        Tony, you should supply 3.3V to the stepstick not 5V, because you are using 3.3V drive signals.

        iDevelo, you must also connect a 100uF capacitor across the 12V/24V supply close to the 12V and ground stepstick pins, to absorb the motor back emf during deceleration. You could solder it to the top of the stepstick.

        For DRV8825 you will need to increase the step pulse width in the M569 command for that driver. AFAIR, 2us is enough. Also bear in mind that DRV8825s can be problematic with low inductance motors, especially with 24V power. See http://cabristor.blogspot.co.uk/2015/02/drv8825-missing-steps.html. You may be better off using an A4988 stepstick. If you use it for one of the extruders, it shouldn't be too noisy.

        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
        • undefined
          iDevelo
          last edited by 21 Oct 2016, 12:52

          Ok I'll use 4988's

          I still need the capacitor right?

          1 Reply Last reply Reply Quote 0
          • undefined
            T3P3Tony administrators
            last edited by 21 Oct 2016, 13:01

            I meant 3.3V - edited the post

            www.duet3d.com

            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators
              last edited by 21 Oct 2016, 13:21

              @iDevelo:

              Ok I'll use 4988's

              I still need the capacitor right?

              Yes, the capacitor is essential with any plug-in driver.

              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
              • undefined
                iDevelo
                last edited by 26 Oct 2016, 13:51

                What drive number is E2, E3 etc..?

                1 Reply Last reply Reply Quote 0
                • undefined
                  T3P3Tony administrators
                  last edited by 26 Oct 2016, 15:47

                  The expansion header has E2 to E5 as shown in the wiring diagram:
                  https://duet3d.com/wiki/Duet_WiFi_wiring_diagrams

                  When setting up axis etc these are Drive number 5- 9

                  So as David shows in the IDEX documentation E2 is drive 5
                  https://duet3d.com/wiki/Configuring_multiple_independent_X-carriages_on_a_Cartesian_printer

                  E.g.

                  M584 X0 Y1 Z2 U3 E4:5

                  Where the second extruder is assigned to drive 5, ie E2 on expansion header

                  www.duet3d.com

                  1 Reply Last reply Reply Quote 0
                  • undefined
                    dc42 administrators
                    last edited by 26 Oct 2016, 15:48

                    The E2 pins on the expansion connector will be driver number 5, E3 will be 6, and so on.

                    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
                    • undefined
                      iDevelo
                      last edited by 26 Oct 2016, 15:51

                      Thanks i should have guessed.

                      My last issue is no matter what i connect to the 4988 it ignores everything. Steps/mm etc..

                      I added U to it and X moves normally but U moves really rapid.

                      1 Reply Last reply Reply Quote 0
                      • undefined
                        T3P3Tony administrators
                        last edited by 26 Oct 2016, 15:55

                        Well barring an issue with the A4988 itself have you checked that your enable line is low? Also if it is enabled then the motor should be powered and thus held.

                        www.duet3d.com

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          iDevelo
                          last edited by 26 Oct 2016, 16:02

                          @T3P3Tony:

                          Well barring an issue with the A4988 itself have you checked that your enable line is low? Also if it is enabled then the motor should be powered and thus held.

                          Not sure what you mean.

                          Also i should jumper RESET and SLEEP right?

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            dc42 administrators
                            last edited by 26 Oct 2016, 16:04

                            Have you configured the microstepping control inputs to the driver? To get x16 microstepping you need to connect the MS1, MS2 and MS3 inputs to +3.3V.

                            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
                            • undefined
                              iDevelo
                              last edited by 26 Oct 2016, 16:12

                              @dc42:

                              Have you configured the microstepping control inputs to the driver? To get x16 microstepping you need to connect the MS1, MS2 and MS3 inputs to +3.3V.

                              Nope! I was thinking this is simple! So I just connect those pins to the 3.3v pin?

                              This is so not my strong point!

                              1 Reply Last reply Reply Quote 0
                              • undefined
                                T3P3Tony administrators
                                last edited by 26 Oct 2016, 16:25

                                Sorry, This diagram is helpfull:
                                https://www.pololu.com/product/1182

                                Checkout the minimum wiring diagram but add that you need to connect MS1-3 to 3.3V as David has already said.

                                www.duet3d.com

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  iDevelo
                                  last edited by 26 Oct 2016, 16:35

                                  Yeah i got everything correct apart from supplying 3.3v to the MS* pins.

                                  All working thanks! 🙂

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    T3P3Tony administrators
                                    last edited by 26 Oct 2016, 16:39

                                    Great!

                                    www.duet3d.com

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      dc42 administrators
                                      last edited by 26 Oct 2016, 16:51

                                      Glad it's working. With 1.15e and 1.16 series firmware, you no longer need to tie the Enable line to ground, you can connect it to the correct Enable line on the expansion connector instead.

                                      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
                                      • undefined
                                        iDevelo
                                        last edited by 26 Oct 2016, 17:00

                                        Awesome. I'll run up a page on the wiki when I get chance. If your wiring up a stepper from scratch on a PCB then it not so easy if it's a first time job!

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