Closed Loop Motor Setup
-
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.
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? -
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?
-
@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.
-
@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!
-
@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.
-
@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.
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
-
@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.
-
@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.
-
@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.)
-
@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
-
@moe-adams9093 This motor uses "real" RS232 signal levels, so you do need a USB-to RS232 adapter. Most any will work.
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.
-
@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
-
@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
-
@moe-adams9093 For sure. I'll send you my email address in a message.
-
@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.
-
@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?
-
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.
-
@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.
-
@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. -
@3dpmicro Looks Really Good, Do you use a ruby Nozzle for that? Or Just a Plain Hardened Steel Nozzle? Thanks for the advice, Ill look into it
@mendenmh You could be Right, But I love a challange!
@taylo708 Are you Using a Duet 3 With Duet 3 Expansion 1XD Boards for these Motors? I went Crazy on the T Parameters with no Luck