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

    weird signal from duet to motor

    Scheduled Pinned Locked Moved Solved
    Duet Hardware and wiring
    8
    32
    1.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.
    • Paytonundefined
      Payton @T3P3Tony
      last edited by

      @t3p3tony we are using servos as i have been told, would that have the same problems of running in full step?

      as to the feedrate this is a 2 in 1 out extruder, so F16000 for the extruder as a whole should be F8000 per motor.

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

        @payton ahh ok, so how are you getting the step/direction signals out of the 6HC?

        But yes if you are using servos then the distinction between steps and microsteps does not matter as such you just sent the servo a certain number of step pulses and it moves the amount it is configured to move.

        So you have the correct pulse timing set for the connections to the servos?

        www.duet3d.com

        Paytonundefined 1 Reply Last reply Reply Quote 0
        • Paytonundefined
          Payton @T3P3Tony
          last edited by

          @t3p3tony to get signals out of the 6HC we wire two of the four leads to the A2 and B1 sides of the servo pins (middle 2) on the board. then we wire the other two to power and neutral 24v. this is the same setup as the duex5 I believe.

          i do not know what the pulse timing is supposed to be, but here is the M569 of the servo pin

          m569 p0.5
          Drive 5 runs forwards, active low enable, timing fast, mode spreadCycle, ccr 0x08053, toff 3, tblank 1, thigh 200 (1.1 mm/sec), hstart/hend/hdec 5/0/0, pos 896

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

            @payton can you provide a schematic of how you are connecting the 6HC to the servo and the servo datasheet please. I have not seen this method of controlling a servo controller before.

            www.duet3d.com

            Paytonundefined 1 Reply Last reply Reply Quote 0
            • Paytonundefined
              Payton @T3P3Tony
              last edited by

              @t3p3tony here is the schematic of the servo. this is servo pin 0 and a power in parallel to the board power, let me know if this is to simple.

              Slide1.PNG

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

                @payton what's the servo part number?

                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

                Paytonundefined 1 Reply Last reply Reply Quote 0
                • Paytonundefined
                  Payton @jay_s_uk
                  last edited by

                  @jay_s_uk I have been made aware that they are indeed stepper motors and not servos. and my supervisor is contacting the company we got them from to find the part number.

                  jay_s_ukundefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
                  • jay_s_ukundefined
                    jay_s_uk @Payton
                    last edited by

                    @payton that clears a lot up then.
                    the part number should be printed on them, but if not, that information would definitely help

                    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

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

                      @payton that is a very odd way to drive a stepper motor. the driver on the 6HC is designed to drive a bi polar stepper motor up to 6.3A. would be interesting to understand why this connection scheme is used and not connect both coils to the drivers (assuming it is a bi polar stepper)

                      www.duet3d.com

                      Paytonundefined 1 Reply Last reply Reply Quote 0
                      • Paytonundefined
                        Payton @T3P3Tony
                        last edited by

                        @t3p3tony
                        so when we asked for the motor specs it was revealed it is a servo with an internal driver that reads a stepper driver input. in the instructional video they plug it into a duet the same way, so it comes back to the weird signal from the board.

                        looking back at the scope it doesn't look like noise per say, but more like signals combineing/ cutting out at weird times.

                        T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          Do they also provide settings for the Duet?

                          Z-Bot CoreXY Build | Thingiverse Profile

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

                            @payton please post the data sheet.

                            www.duet3d.com

                            T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                            • Paytonundefined
                              Payton
                              last edited by

                              @phaedrux so I think I have solved the problem

                              I looked at the motor config recommendations, and found that we had interpolation on for the M350 command. I turned it off and I could spin the motor at 13000 with the full 8.25 expected rotations.

                              now I want to verify I am understanding the problem fully and why this worked. because the duex still works and still has interpolation on. how could this be?

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

                                @t3p3tony said in weird signal from duet to motor:

                                @payton please post the data sheet.

                                www.duet3d.com

                                Paytonundefined 2 Replies Last reply Reply Quote 0
                                • Paytonundefined
                                  Payton @T3P3Tony
                                  last edited by

                                  @t3p3tony I am having trouble finding the datasheet, it is a different company that makes it so it may not be available.

                                  1 Reply Last reply Reply Quote 0
                                  • cosengundefined
                                    coseng
                                    last edited by

                                    I'm using a 6HC with Tecnik Clearpath SDSK stepper/servos and ended up tapping the step and direction signals from test points on the backside of the 6HC and running them through a Duet2 BoB to get them to the 5V levels inputs the Clearpath wants. It was a bunch of tedious hand work but the result has been rock solid. I agree with T3P3Tony that tapping one end of each motor coil is a weird setup.

                                    Chris
                                    Cosentino Engineering

                                    SignPostManundefined 1 Reply Last reply Reply Quote 0
                                    • Paytonundefined
                                      Payton @T3P3Tony
                                      last edited by Payton

                                      @t3p3tony Thank you for all your help, I do not think I can get the datasheet, if I ever do I will post it here.

                                      to summarize the problem and solution for future readers:

                                      I had an extruder motor for the printers at work that did not spin the correct amount at high speeds on all printers but one. it was a servo that took stepper motor signals from the servo pins to command the driver. it needs a full step signal to work.

                                      although in the config we had turned micro stepping to full step, we had interpolation on, witch does a minor bit of micro stepping even if that motor is set to full step. the reason the one printer did not have this issue was because it was the only one running with the duet 2, which does not support interpolation unless the drive is set to x16 micro stepping. so with the same config it would run the motor properly

                                      thanks for all the help everyone

                                      T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                                      • Paytonundefined Payton has marked this topic as solved
                                      • T3P3Tonyundefined
                                        T3P3Tony administrators @Payton
                                        last edited by

                                        @payton thanks for the explanation. I am still intrigued to see this method of driving a servo from the full step output of a stepper driver.

                                        www.duet3d.com

                                        1 Reply Last reply Reply Quote 0
                                        • SignPostManundefined
                                          SignPostMan @coseng
                                          last edited by

                                          @coseng I am using a 6HC with duet 3 Expansion 1XD board for step and direction connected with the Can Connectors. Originally to steppers but now to (2) ClearPath SD driving the X axis. When the motors are running at high speeds, they will appear to loose steps. Could you give more detail on how you are getting your step and direction signals? I saw other posts have had this issue but I haven't found anyone with a solution.

                                          cosengundefined 1 Reply Last reply Reply Quote 0
                                          • cosengundefined
                                            coseng @SignPostMan
                                            last edited by coseng

                                            @signpostman I was a little leery about trying to run all of my SDSK motors on the CANBUS because of concerns about max bus throughput/latency and high speed step loss, so I hand wired a step and direction output from the 6HC's backside test points. Because these signals are at 3.3V, they had to be jumped up to 5V, so instead of making my own breadboard level shifter, I used Duet's EBOB (used for Duet 2's) as a level shifter. My printer build thread (https://forum.duet3d.com/topic/22858/new-heated-enclosure-printer) has all the details needed and the tech help was provided by a couple of moderators, so though the soldering will void your warranty, it is an 'official' hack. FYI, Duet3D is coming out with a 6XD that has S+D outputs. Not sure of the timeline.

                                            What I did was to tap into the 6HC's step and direction test points on the back of the board: https://forum.duet3d.com/post/231335, ran these to a ribbon cable connector glued to the back of the board, that then plugged in to the EBOB's 50 pin connector. The modifications to the EBOB are at https://forum.duet3d.com/post/279132, including some rewiring of the clearpath signal connector to get the (3) +5VDC lines to each motor. The mods to the back of the 6HC are shown at: https://forum.duet3d.com/assets/uploads/files/1649284036942-6hc-ext-stepper-mod.jpg.

                                            All the wiring was correct but I needed to tweak the stepper timing signals using a M569 T2 line in the config file.

                                            With a CoreXY setup and complete overkill CPM-SDSK-3421S-ELN motors, I have been able to run at 2000mm/sec rapid speeds with no step loss or any other weirdness. The SDSK motors are super quiet. Print speeds are around 200mm/sec with a 0.8mm nozzle with rapids limited to 600mm/sec. Above that speed the top bellows starts to behave erratically.

                                            I've done about 400hrs of printing so far with no issues, so it seems to be a reliable solution.

                                            Once you get them working, I think you will be very happy with their performance. I had Tom Tullar tom_tullar@teknic.com help me with some remote online servo parameter tuning, which gave a decent improvement (less noise, reduced follower error) over the default settings.

                                            Hope this helps!

                                            Chris
                                            Cosentino Engineering

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