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

Closed Loop Motor Setup

Scheduled Pinned Locked Moved
Duet Hardware and wiring
13
61
6.5k
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
    3DPMicro
    last edited by 4 Apr 2021, 05:40

    Seems like the "boing" could be tuned out or maybe it is tuned and the lack of load is causing it to do that because of current settings (I didnt catch if it is tunable)

    Duet controlled Lathe, micro mill, 3d printer and 1992 Haas VF2 VMC

    undefined 1 Reply Last reply 5 Apr 2021, 16:33 Reply Quote 0
    • undefined
      alankilian @3DPMicro
      last edited by alankilian 4 May 2021, 16:34 5 Apr 2021, 16:33

      @Toastinator

      I connected your motor to the Duet2/Ethernet this morning and made some moves at different speeds and everything went as expected.

      ; Drives
      M569 P0 S1 ; physical drive 0 goes forwards
      M569 P1 S1 ; physical drive 1 goes forwards
      M569 P2 S1 ; physical drive 2 goes forwards
      M569 P3 S1 ; physical drive 3 goes forwards
      M569 P5 S1 T4:4:4:4 ; physical drive 5 goes forwards
      M584 X0 Y1 Z2 E3 U5 ; set drive mapping
      M350 X16 Y16 Z16 E16 U16 I1 ; configure microstepping with interpolation
      M92 X100.00 Y100.00 Z100.00 U100.00 E91.00 ; set steps per mm
      M566 X1200.00 Y1200.00 Z1200.00 U1200 E1200.00 ; set maximum instantaneous speed changes (mm/min)
      M203 X18000.00 Y18000.00 Z18000.00 U18000E1200.00 ; set maximum speeds (mm/min)
      M201 X1000.00 Y1000.00 Z1000.00 U1000E1000.00 ; set accelerations (mm/s^2)
      M906 X1000 Y1000 Z1000 E800 U1000I30 ; set motor currents (mA) and motor idle factor in per cent
      g91
      g1 u100 H2 f12000
      g1 u100 H2 f6000
      g1 u100 H2 f3000
      g1 u100 H2 f1500
      g1 u50 H2 f800
      g1 u50 H2 f400
      g1 u25 H2 f200

      You mentioned that you were unable to "control the speed" and I have no problem moving at different speeds, so I think we should look at that. It might be the core of your problems with getting two axis synchronized.

      YouTube video

      I haven't compared my config.g with yours yet.
      I'll take a look at that later today.

      The thing I don't know about is the toolboard stuff.
      @dc42 Wasn't there something that limited the step-rate across the CAN bus? Could that have caused his inability to change the speed of the motor?

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

      undefined 1 Reply Last reply 8 Apr 2021, 00:54 Reply Quote 0
      • undefined
        Toastinator @alankilian
        last edited by 8 Apr 2021, 00:54

        @alankilian

        Yes, The Speed Did Not Change, Could it have something to do with the Duet 3 Expansion 1XD Board Drivers Or The Step Rate Across The CAN Like you mentioned.

        Also, Did you see any Delays Between 2 Different Axis Movements? To See if Triggers are required to Continue only after moves are completed?

        undefined 1 Reply Last reply 8 Apr 2021, 14:48 Reply Quote 0
        • undefined
          alankilian @Toastinator
          last edited by 8 Apr 2021, 14:48

          @toastinator I only hooked up one motor for this test.

          I'll hook another and try some different moves and let you know.

          After that, I'll send them back to you along with a logic analyzer so we can monitor the exact step signals coming from your Duet to the motors and see if we can determine what the problem is for you.

          Are you interested in hooking up the logic analyzer and doing experiments using your Duet?

          As far as I can tell, these motors should "just work" when connected to a Duet.

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

          undefined 1 Reply Last reply 9 Apr 2021, 00:07 Reply Quote 0
          • undefined
            Toastinator @alankilian
            last edited by Toastinator 4 Sept 2021, 00:09 9 Apr 2021, 00:07

            @alankilian Ok Sounds Good!

            I Don't Mind Doing Experiments, I Should Let you know that Im in the Middle of using this Printer with Normal Steppers to Print out parts to Build a Voron V2.4 3D Printer. Will Slap those Motors back on when Finished with the ABS Parts. Ill Be Printing for At least another Week

            While Also Experimenting with a Filastruder to Make my Own PEEK and PEI Filament. Im Buried in Projects!

            undefined undefined 2 Replies Last reply 11 Apr 2021, 16:52 Reply Quote 0
            • undefined
              alankilian @Toastinator
              last edited by 11 Apr 2021, 16:52

              @toastinator I couldn't get my super-old USBee logic probe to work with Windows 10 (No big surprise) so I'm going to send you my Saleae Logic16 probe instead.

              When it gets there you should be able to hook the two motors up to unused axes (like U and V) and then do some G1 U10 V10 F600 (or whatever) moves and look at the pulleys and see if they start and stop at about the same time for various moves. Adding a bit of tape with a line on it will tell us you've got the steps-per-mm and microstepping right.

              You can also capture the step signals coming out of your board to see if THEY start and stop at the expected times.

              Driving these from both an Ardiono and a Duet2 expension connector made them work as I expect and they should be perfectly usable on a 3D printer.

              (I'm still unconvinced that a 3D printer benefits from slosed-loop stepper motors, but I'm not the one trying this, so I'm willing to get you going if I can.)

              I'll send the stuff back next week. You can return the logic16 when we've exhausted our experiments.

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

              undefined 1 Reply Last reply 11 Apr 2021, 23:25 Reply Quote 2
              • undefined
                moe.adams9093 @alankilian
                last edited by 11 Apr 2021, 23:25

                @alankilian

                @toastinator & @alankilian thank you so much for bringing this topic to its max and @alankilian thank you for investing your time analyzing theses motors. I have exact same motors for a Corexy printer setup and unfortunately the print quality is awful I’m using duet Ethernet and duex 5 the motors are connected via ConnLCD mapped to driver #10 and 11. T parameter set at 5.0 for all pulses which is the max of 200khz. The motors moves correctly and very accurate in terms of steps=Distance homes correctly sometimes I get errors when I’m homing where the X-axis stops few mm before touching the endStop here’s some pics of the print quality.
                D0797CC7-15EE-4DA3-8020-5F9EA4083FF3.jpeg 5CAF519F-B51B-477B-9018-8AB751131AA9.jpeg F99D52DC-49D2-465B-BD88-90B4EE0B063A.jpeg FAE1E1B7-462F-4E95-9F36-EF99BA3F201D.jpeg

                I’m not sure why it’s causing this inconsistency with print maybe because conn lcd only provide 3.3v and the motor driver requires 5V minimum. Or maybe timing not very responsive. I’m not sure. Sorry I didn’t mean to jump in to your conversation but I thought it might help share it. Thank you

                undefined 1 Reply Last reply 11 Apr 2021, 23:52 Reply Quote 0
                • undefined
                  alankilian @moe.adams9093
                  last edited by 11 Apr 2021, 23:52

                  @moe-adams9093 Oh man, that really is horrible.

                  • What do you have your switches set to?
                  • Have you adjusted any of the settings via the serial-port interface and the Windows software?

                  As I said before, for this kind of 3D printing I don't see where a closed-loop stepper motor would improve print quality.

                  I get that if the head bangs into something that you won't layer-shift like an open-loop system, but it seems like closing the loop the way they are doing is more for high-speed speed-control improvements and not low-speed position-control improvements.

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

                  undefined 1 Reply Last reply 12 Apr 2021, 02:34 Reply Quote 0
                  • undefined
                    moe.adams9093 @alankilian
                    last edited by 12 Apr 2021, 02:34

                    @alankilian so I have them set on 6400 plus/rev 160steps assigned in config.g set on 25ms for better noise quality. I didn’t use the computer software to change settings so I did my research and kept everything on default. I got these motors because I want a high speed print something to reach 400mm per second. I don’t have whole lot of knowledge yet on testing closed loop so I’m still learning. So right now I’m modifying my motion system is heavy and I’m trying to make it very light so I can achieve a better and smoother motion. Also I ordered a logic level shifter to make signal 5V from conn lcd 3.3 v that might help and I’m not sure yet. But I think these motors are overkill for a 3d printer because let’s assume the nozzle hits the print while it’s printing the belt will 80% likely to skip the pulley teeth before the encoder realize it skipped a steps they are very strong. So I’m still doing my research. What software did you use to connect them via pc? I contacted the seller to see if they can provide the software and never got any response.

                    undefined 1 Reply Last reply 12 Apr 2021, 14:31 Reply Quote 0
                    • undefined
                      alankilian @moe.adams9093
                      last edited by 12 Apr 2021, 14:31

                      @moe-adams9093 I got the software from @Toastinator I'm not sure I can share it, so contact him and see if he'll send you a link.

                      I just connected the Duet to the motor and it worked fine. Level translators shold be even better and remove any doubt about signalling.

                      (Actually, I connected the Duet to one end of a 2-meter VGA cable and the motor to the other end because I couldn't find and decent multistrand wire.)

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

                      undefined 1 Reply Last reply 12 Apr 2021, 18:50 Reply Quote 0
                      • undefined
                        moe.adams9093 @alankilian
                        last edited by 12 Apr 2021, 18:50

                        @alankilian I contacted jss motors last night and they just sent me the zipfile for the software. Did you use any RS232 breakout board to connect via USB and man there’s lots of settings in here to play with. So let’s say if I change anything what will I set the dip switch I’m assuming all set to default because it’s going to over write the default settings maybe?. Thank you

                        undefined 1 Reply Last reply 12 Apr 2021, 19:07 Reply Quote 0
                        • undefined
                          alankilian @moe.adams9093
                          last edited by 12 Apr 2021, 19:07

                          @moe-adams9093 This motor uses "real" RS232 signal levels, so you do need a USB-to RS232 adapter. Most any will work.

                          https://www.amazon.com/Serial-Adapter-Prolific-Chipset-Windows/dp/B0753HBT12/ref=sr_1_9?dchild=1&keywords=usb+rs232&qid=1618254328&sr=8-9

                          You use the DIP switches to set some of the settings and the software to set others. So the DIP switch settings are still important.

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

                          undefined 1 Reply Last reply 13 Apr 2021, 01:53 Reply Quote 0
                          • undefined
                            3DPMicro @Toastinator
                            last edited by 13 Apr 2021, 01:13

                            @toastinator said in Closed Loop Motor Setup:

                            While Also Experimenting with a Filastruder to Make my Own PEEK and PEI Filament. Im Buried in Projects!

                            Try PEKK instead of PEEK. Better than PEEK in some respects and waaaay easier to print

                            Duet controlled Lathe, micro mill, 3d printer and 1992 Haas VF2 VMC

                            undefined 1 Reply Last reply 13 Apr 2021, 21:55 Reply Quote 1
                            • undefined
                              moe.adams9093 @alankilian
                              last edited by moe.adams9093 13 Apr 2021, 01:53

                              @alankilian ok understood thank you for all your help. Do you mind if I came cross a problem or if I have a question regarding motor programming I can reach back to you

                              undefined 1 Reply Last reply 13 Apr 2021, 13:27 Reply Quote 0
                              • undefined
                                alankilian @moe.adams9093
                                last edited by 13 Apr 2021, 13:27

                                @moe-adams9093 For sure. I'll send you my email address in a message.

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

                                undefined 1 Reply Last reply 13 Apr 2021, 21:50 Reply Quote 0
                                • undefined
                                  Toastinator @alankilian
                                  last edited by 13 Apr 2021, 21:50

                                  @alankilian @moe-adams9093 Just Read all your messages since my Last message.

                                  @moe-adams9093 That is exactly what i have been seeing, Its a continuous Layer shift through the layers. Some Worse then others. Im hoping We can Resolve this. But Its not the end of the world. Just the end of $200.

                                  @alankilian I sort of agree with you about Closed Loop Not Really adding any benefit, To me, Its more of a "Lets do everything we can to prevent a layer shift" (Although I can see as the motor increases the Torque, It just pops the print off the bed)

                                  Im still in it for the rest of the People. This is a popular Motor for people to have. Getting it working should help quite a few.

                                  1 Reply Last reply Reply Quote 0
                                  • undefined
                                    Toastinator @3DPMicro
                                    last edited by 13 Apr 2021, 21:55

                                    @3dpmicro That's what I Heard! But Its really Expensive. Im Buying PEEK Pellets for Roughly $45/Kg, Then The Power costs to produce the Filament when I get everything Set up.

                                    Ill give it a shot when My Voron Gets Built. I Got CNC Aluminum Parts for the Voron Gantry So it can Handle the High Temperatures

                                    PEKK is Something like $800/Kg I think PEEK is Slightly Cheaper Around $700/Kg. Only went with PEEK Because For Some Reason, Its $45/Kg for Pellets.

                                    Know a Place to get Reasonably Price PEKK Pellets?

                                    undefined 1 Reply Last reply 14 Apr 2021, 16:08 Reply Quote 0
                                    • undefined
                                      taylo708
                                      last edited by 14 Apr 2021, 11:20

                                      I run these same motors on my printers, took me a long time to get them working correctly but I think I am close. I was getting inconsistent layer shifting until I started going crazy with the T parameters.

                                      1 Reply Last reply Reply Quote 0
                                      • undefined
                                        mendenmh @Toastinator
                                        last edited by 14 Apr 2021, 16:08

                                        @toastinator I was generally of the opinion that printing with something cheap, like solid gold, was easier than going for high-end PEKK and PEEK. 🙂

                                        1 Reply Last reply Reply Quote 0
                                        • undefined
                                          3DPMicro
                                          last edited by 14 Apr 2021, 17:44

                                          @toastinator he's only showing pekk/cf pellets
                                          https://www.3dxtech.com/products/pellets-colorants/ but you could inquire about unmodified Pekk although pekk/cf is my favorite by far. Second in modulus only to peek/Cf but is easy (relative) to print, makes good looking parts and can use all the way up to 260c.20210120_192926.jpg

                                          Duet controlled Lathe, micro mill, 3d printer and 1992 Haas VF2 VMC

                                          undefined 1 Reply Last reply 14 Apr 2021, 19:38 Reply Quote 1
                                          43 out of 61
                                          • First post
                                            43/61
                                            Last post
                                          Unless otherwise noted, all forum content is licensed under CC-BY-SA