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

    Big pellet extruder; How to configure the servo motor?

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    4
    20
    698
    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.
    • droftartsundefined
      droftarts administrators @sbNielsen
      last edited by

      @sbNielsen have another look at how it is enabled. It may be that it doesn’t need an enable signal to be moved manually by the driver. Most stepper drivers are ‘active disable’ ie expect 0V to enable, 5V to disable.

      Ian

      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

      sbNielsenundefined 1 Reply Last reply Reply Quote 0
      • sbNielsenundefined
        sbNielsen @droftarts
        last edited by

        @droftarts
        I just tried to put a multimeter between the step+ and step-, and I measured a constant 5V.

        5V when not cold extruding, and 5V when pressing extrude.

        Then I tried to measure the Hz frequency between the step+ and step-, and I could not register any - also not when pressing extrude.

        I don't know if any of that ^ is as expected?

        I thought I should be able to see the Hz on the meter when hitting extrude?

        droftartsundefined 1 Reply Last reply Reply Quote 0
        • droftartsundefined
          droftarts administrators @sbNielsen
          last edited by

          @sbNielsen said in Big pellet extruder; How to configure the servo motor?:

          @droftarts
          I just tried to put a multimeter between the step+ and step-, and I measured a constant 5V.
          5V when not cold extruding, and 5V when pressing extrude.

          That is expected, I think. See https://docs.duet3d.com/Duet3D_hardware/Duet_3_family/Duet_3_Mainboard_6XD_Hardware_Overview#connecting-external-motor-drivers

          The Step and Dir outputs from the 6XD are either low (when "on") or floating/high-impedance when "off".
          The Enable output is either low when "on" and high impedance when "off", or vice versa, depending on the position of the 'Driver Enable Polarity' (En_Pol) jumper.

          So it may be that the driver just need to be configured for this signal. Same for enable, depending on how you have set the jumper.

          Then I tried to measure the Hz frequency between the step+ and step-, and I could not register any - also not when pressing extrude.
          I thought I should be able to see the Hz on the meter when hitting extrude?

          That may be down to your multimeter, which may be expecting a sine wave rather than a PWM signal. Usually an oscilloscope is used to see the signal.

          Ian

          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

          sbNielsenundefined 1 Reply Last reply Reply Quote 0
          • sbNielsenundefined
            sbNielsen @droftarts
            last edited by

            @droftarts
            Ok, so far so good then.

            I have sent an email to Lichuan tech support now, hopefully they can find the issue.

            sbNielsenundefined 1 Reply Last reply Reply Quote 0
            • sbNielsenundefined
              sbNielsen @sbNielsen
              last edited by

              @droftarts
              I spoke with the store who sold me the motor/driver, and they test each one before selling and usually the issue is on the control/Arduino/Duet side.

              I get a reading when sending M115 B122, so there is a connection to the 1XD.

              All my config.g numbers are within a reasonable/expected value, so that an extrude command from the Duet WC should cause some kind of motion.

              Could this be a fault on the 1XD board, failing to send the frequency? Does that ever happen?

              sbNielsenundefined 1 Reply Last reply Reply Quote 0
              • sbNielsenundefined
                sbNielsen @sbNielsen
                last edited by

                @sbNielsen
                Another sign that there is activity on the CAN bus, is that when i press extrude I get a brief flash of green on the 1XD.

                So a signal is definitely sent from the 6HC and received by the 1XD

                droftartsundefined 1 Reply Last reply Reply Quote 0
                • droftartsundefined
                  droftarts administrators @sbNielsen
                  last edited by

                  @sbNielsen Have you tested both 1XD boards? I can imagine a fault on one board, but not on both. If you don't have an oscilloscope, you could wire an LED on each output (as the signalling is 5V), and see if they light up during the move (you may have to adjust the frequency to do this).

                  Ian

                  Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

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

                    @sbNielsen did you wire the servo inputs like this from page 11 of the manual, with 1XD STEP+ and STEP- acting as PUL+ and PUL- respectively? If not, how did you connect them?

                    821f26fb-341a-4666-9da1-a975c9cf000c-image.png

                    Have you set valid parameters in this table from section 6.1.2 on page 19?

                    95edb1b4-2428-40d2-ab0d-1630787587b8-image.png

                    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
                    • sbNielsenundefined
                      sbNielsen @droftarts
                      last edited by sbNielsen

                      @dc42

                      • did you wire the servo inputs like this from page 11 of the manual, with 1XD STEP+ and STEP- acting as PUL+ and PUL- respectively? If not, how did you connect them?

                      Yes, thats how I wired it.

                      • Have you set valid parameters in this table from section 6.1.2 on page 19?

                      Yes. I had it in Position mode (external pulse control) P02-00:1 and P05-00:0. I also tried to change various other params to see if they were blocking - no luck.

                      I spoke with the store I bought the motor from. They have not heard about this before, and puts the fault likelihood on the Duet.

                      I just tested another external driver + stepper motor on the same 1XD board - this also failed.

                      So it starts to look like an error with the 1XD.

                      I have just ordered another one, and will test the new one as soon as it arrives.

                      droftartsundefined 1 Reply Last reply Reply Quote 0
                      • droftartsundefined
                        droftarts administrators @sbNielsen
                        last edited by

                        @sbNielsen I know you updated the firmware on your 1XD, but looking back through the thread I can't see what version your 6HC is on. Can you send M122 and M122 B122 and post the results, just in case?

                        Ian

                        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                        sbNielsenundefined 1 Reply Last reply Reply Quote 0
                        • sbNielsenundefined
                          sbNielsen @droftarts
                          last edited by

                          @droftarts
                          Screenshot 2023-12-08 at 11.19.18.png

                          Yeah sure. They're both are up to date.

                          droftartsundefined 1 Reply Last reply Reply Quote 0
                          • droftartsundefined
                            droftarts administrators @sbNielsen
                            last edited by

                            @sbNielsen Actually, they are not. Your main board 6HC is on a older beta release of 3.5, and your 1XD is on 3.4.6. Please either downgrade your 6HC to 3.4.6, or update both boards with the 6HC and 1XD firmware here, which is 3.5.0-rc.1++: https://www.dropbox.com/scl/fo/gaxzegafmnmagaefo9mgc/h?rlkey=hk4wpttdje76oews8zkuh86q3&dl=0

                            Ian

                            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                            sbNielsenundefined 2 Replies Last reply Reply Quote 0
                            • sbNielsenundefined
                              sbNielsen @droftarts
                              last edited by

                              @droftarts
                              Fs_UIs1WwAAZH5V.JPEG

                              My god... I updated both boards and now at least the external stepper driver/motor is responding!

                              Can't believe it, I had updated the 1XD to - what I tought was - the latest version exactly to avoid this.

                              Will try and plug in the servo and hopefully that will work too!

                              Haha great friday gift so far!

                              1 Reply Last reply Reply Quote 0
                              • sbNielsenundefined
                                sbNielsen @droftarts
                                last edited by

                                @droftarts
                                I just plugged the servo, and it works!

                                Thank you for the support!

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