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

Connecting stepper motor encoders to closed loop drivers

Scheduled Pinned Locked Moved Solved
Duet Hardware and wiring
3
47
3.1k
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
    V.A.M.P printing snproj @V.A.M.P printing snproj
    last edited by 14 Feb 2022, 20:52

    @v-a-m-p-printing-snproj I purchased the v4.0

    1 Reply Last reply Reply Quote 0
    • undefined
      alankilian @V.A.M.P printing snproj
      last edited by 14 Feb 2022, 20:54

      @v-a-m-p-printing-snproj OK, so SW6 controls the mode open-loop or closed-loop.

      Connect it and go.

      You will almost certainly need to download the correct tuning software from the link you posted and build or buy a communications cable.

      You can hook it up and do some testing and if it doesn't perform the way you like you can get the communications software and start there.

      SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

      1 Reply Last reply Reply Quote 0
      • undefined
        alankilian @V.A.M.P printing snproj
        last edited by 14 Feb 2022, 20:58

        @v-a-m-p-printing-snproj said in Connecting stepper motor encoders to closed loop drivers:

        Also my old drivers do not have a connection slot for the Alarm, Brake, or Com-

        You can leave those disconnected.

        Can you post a diagram showing how you intend to wire the STEP and DIRECTION connections?

        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

        undefined 1 Reply Last reply 14 Feb 2022, 21:36 Reply Quote 0
        • undefined
          V.A.M.P printing snproj @alankilian
          last edited by 14 Feb 2022, 21:36

          @alankilian ![alt text](IMG-2397.jpg image url)

          This is my current driver set up. My plan was to connect the encoders and then connect everything from this driver to the new one.

          undefined 1 Reply Last reply 14 Feb 2022, 22:32 Reply Quote 0
          • undefined
            alankilian @V.A.M.P printing snproj
            last edited by 14 Feb 2022, 22:32

            @v-a-m-p-printing-snproj OK, I didn't know you had external drivers working already and were just moving to closed-loop drivers.

            Let us know how they perform PLEASE!

            SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

            1 Reply Last reply Reply Quote 0
            • undefined
              baird1fa @V.A.M.P printing snproj
              last edited by 15 Feb 2022, 02:22

              @v-a-m-p-printing-snproj The alarm and Brake will just be outputs that you can use to monitor for an error in the drive (like out of position) or to apply an external brake. The com will be for those outputs.

              in my setup I have the alarm status being monitored to stop my controller from tying to continue when one drive has stalled out.

              1 Reply Last reply Reply Quote 0
              • undefined
                V.A.M.P printing snproj
                last edited by 16 Feb 2022, 21:25

                Thanks for the help! Ill let you know how they are working. Also what is the connection signal on the duet 2 ethernet? I have the option of setting the drivers to either 5v or 12v.

                undefined 1 Reply Last reply 16 Feb 2022, 22:10 Reply Quote 0
                • undefined
                  alankilian @V.A.M.P printing snproj
                  last edited by 16 Feb 2022, 22:10

                  @v-a-m-p-printing-snproj Use 5v setting.

                  The Duet's 3.3 Volt output might work and if not, you should get the expansion board as described HERE.

                  SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                  undefined 1 Reply Last reply 16 Feb 2022, 22:16 Reply Quote 0
                  • undefined
                    V.A.M.P printing snproj @alankilian
                    last edited by 16 Feb 2022, 22:16

                    @alankilian I got it figured out I already have the expansion board. I got the new drivers all connected along with the encoders, but when I try and home the print head it shoots off in the wrong direction and requires me to emergency stop the printer. Any idea why this could be?

                    undefined 1 Reply Last reply 16 Feb 2022, 22:43 Reply Quote 0
                    • undefined
                      alankilian @V.A.M.P printing snproj
                      last edited by 16 Feb 2022, 22:43

                      @v-a-m-p-printing-snproj Your direction signal is the wrong-way around.

                      In the M569 configuration change the "S" value to say the motor goes the other way.

                      SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                      undefined 1 Reply Last reply 16 Feb 2022, 22:45 Reply Quote 0
                      • undefined
                        alankilian @alankilian
                        last edited by 16 Feb 2022, 22:45

                        @alankilian

                        ALSO, first get everything workong in OPEN-LOOP mode by setting SW6 CLOSED.

                        After you get everything moving in the right directions, you can change to closed-loop mode and see if your encoder is wired backwards.

                        SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          V.A.M.P printing snproj
                          last edited by 16 Feb 2022, 22:57

                          @alankilian Where will I find SW6?

                          undefined 1 Reply Last reply 16 Feb 2022, 22:59 Reply Quote 0
                          • undefined
                            alankilian @V.A.M.P printing snproj
                            last edited by alankilian 16 Feb 2022, 22:59

                            @v-a-m-p-printing-snproj
                            Capture.PNG

                            SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                            undefined 1 Reply Last reply 16 Feb 2022, 23:00 Reply Quote 0
                            • undefined
                              V.A.M.P printing snproj @alankilian
                              last edited by 16 Feb 2022, 23:00

                              @alankilian Oh okay what do i want the rest of them to be set to?

                              undefined 1 Reply Last reply 16 Feb 2022, 23:05 Reply Quote 0
                              • undefined
                                alankilian @V.A.M.P printing snproj
                                last edited by 16 Feb 2022, 23:05

                                @v-a-m-p-printing-snproj Set SW1-4 to how ever many pulses-per-rev you want.

                                What did you have your microstepping set to? 16x? with a 1.8-degree motor that would be 200 * 16 = 3200 steps-per-rev which is SE1-4 Off Off On On Or I bet you could see what your old driver was set to and copy that.

                                Oh HEY!!! SW5 changes the direction so you don't have to change the "S" setting in your configuration.

                                And SW6 should be ON to set open-loop control.

                                They are all described on the front of your driver.

                                SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                                undefined undefined 2 Replies Last reply 16 Feb 2022, 23:10 Reply Quote 1
                                • undefined
                                  V.A.M.P printing snproj @alankilian
                                  last edited by 16 Feb 2022, 23:10

                                  @alankilian Okay I copied the settings from my other drivers already so ill changing the direction and see how it goes. Thanks!

                                  undefined 1 Reply Last reply 16 Feb 2022, 23:13 Reply Quote 0
                                  • undefined
                                    alankilian @alankilian
                                    last edited by alankilian 16 Feb 2022, 23:10

                                    @V-A-M-P-printing-snproj

                                    Yes, I can read the switches on your old driver and it was set to 3200 steps-per-rev

                                    Also set the rotary switch to 0 so when you start your closed-loop experiments it will be "weak". You can make it stronger once you get things working.

                                    All the switches are described in the manual available HERE.

                                    SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                                    1 Reply Last reply Reply Quote 0
                                    • undefined
                                      alankilian @V.A.M.P printing snproj
                                      last edited by 16 Feb 2022, 23:13

                                      @v-a-m-p-printing-snproj

                                      SW7 should be OFF to select step/direction mode.

                                      SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

                                      undefined 1 Reply Last reply 17 Feb 2022, 16:14 Reply Quote 0
                                      • undefined
                                        V.A.M.P printing snproj @alankilian
                                        last edited by 17 Feb 2022, 16:14

                                        @alankilian I got it moving in the right direction and it hits the x y limit switches but continues trying to drive through the x limit switch. What could be causing this?

                                        undefined 1 Reply Last reply 17 Feb 2022, 16:55 Reply Quote 0
                                        • undefined
                                          alankilian @V.A.M.P printing snproj
                                          last edited by 17 Feb 2022, 16:55

                                          @v-a-m-p-printing-snproj

                                          Post your config.g, homex.g, homey.g homez.g homeall.g homedelta.g config-override.g and all that and we'll take a look. (You might not have all those files)

                                          • Did you change the direction using the "S" parameter or did you change using the switch on the driver?
                                          • Did your printer work well with the old drivers?

                                          SeemeCNC Rostock Max V3 converted to V3.2 with a Duet2 Ethernet Firmware 3.2 and SE300

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