Stepper motors for CoreXY
-
Perfect it's then safe until further notice.
That said, I tried to put 2.0 Amps as the max current in the equations. The result is that the step time is actually shortened. And the rotation speed is increased… Obviously because the current in the coil with same inductance is reached quicker.Intuitively, running a 2.8A engine with a 2.0A cap, I do expect a loss in torque but would the loss in max speed be proportional contrary to what the equations predict?
-
Stepper motor torque is pretty much proportional to current. As you say, at low current the max speed before torque drops off will increase - but this is because the torque is lower to start with.
-
Your spreadsheet has at least one error and all comparisons need to be the same current and voltage otherwise they become invalid.
Error; time Calc: =F5E52/$C$2 …. the top side should not have the additional *2
I did find an error in my own calculations for the 1.8 nema23, max speed at 2A comes out at 924mm/s in the spreadsheet i did up with the Nema17 calcs from dc42 as the control numbers.
What was interesting was how much the max speed numbers changed (went up) as current supplied went down and from there it was simple to take the torque is proportional to current DC42 said and calculate available holding torque (if thats valid) for any current hence speed.
Now to understand how to calculate acceleration
-
Thanks for noting that… you pointed out a dilemma I had. I didn't use this value in the rest of the table actually.
I actually noticed the difference between equation in column I
taken from here:
http://www.daycounter.com/Calculators/Stepper-Motor-Calculator.phtml
and column J which is from DC42 in this thread.the calculator states:
For one step the current must go from 0 to Imax and back to 0, or alternatively from -Imax to +Imax.
but to the level of what I understand from "Full step" operation, 1 transition on 1 coil = 1 step. So I used DC42 for all my calculations.
microstepping being the same with more levels in 1 transitions.I do get the same 924mm/s at 2 amps too so we agree on that
I modified the spreadsheet so that the actual torque is not based on the rated current from the datasheet but the actual current so 2A for the duet.
Based on that it reduces the acceleration. It will be interested to confirm these numbers are not too wrong based on some measurements too.
From what I tried yesterday it's quite audible when you start missing steps so I could try to validate this with the small motors I currently have installed (robotdigg nema17 44Ncm) with 12V and 1 Amp on a Ramps… -
@sga:
@Aussiephil,
the calculator states:
For one step the current must go from 0 to Imax and back to 0, or alternatively from -Imax to +Imax.I believe the second one of those is correct for one of the two phases when using full stepping, in which both phases are always fully energised. But when using microstepping, for one full step the current in both coils changes between zero and the peak current.
-
@Aussiephil.
yes I just checked it too.. in full step and in micro stepping 1 coil going from 0 to 1 or from 1 to 0 = 1 step. so the factor 2 has to go… -
Looking at this another way, it seems that the big constraint on print speed is how fast we can melt filament. Taking the best thing I can find which is the E3D volcano, and from stuff I've read on the interweb, it seems that it might be capable of melting 40 mm^3/sec but this is highly contentious. However, if we is assume it to be correct, and taking something like a 0.4mm diameter nozzle then the nozzle area would be 0.16mm^2 so the maximum speed we could extrude at would be 40/0.16 = 250mm/sec. I'm not sure how layer height comes into this but maybe we can assume that it's say 60% of nozzle diameter so we could push the maximum print speed up by 250/0.6 = 416mm/sec?? Of course, non print moves could be faster. There are an awful lot of assumptions in this but I'm wondering just how much of the potential speed we could actually use in real world printing situations unless we have really small layer heights and/or nozzle diameters and in this case, we would be printing something that is highly detailed so would probably want to set a slower speed in any case.
I'm also wondering if a larger nozzle would actually make for a lower print time. If we assume that we manage to hit the limit of how quickly filament can be extruded with a say 0.5mm nozzle, then if we switch to a larger nozzle, we would have to reduce the print speed accordingly. Doing the same maths as above, the area of a 0.9mm nozzle is 0.81 mm^2 and at 40mm^3/sec flow rate, we end up with a speed of 49mm/sec. Unless of course we then have a massive big heater and somehow manage to control it.
What have I missed?
-
Let's look at that another way. With a 0.9mm nozzle you will probably use an extrusion width of about 1.1mm and a layer height of 0.5 or 0.6mm. That's 2 to 3 times the layer height you would use with a 0.4mm nozzle. So printing perimeters will be 2 to 3 times faster. Additionally, using the same percentage infill, there will be a greater spacing between infill strokes because of their greater width and therefore few of them. So infill will be 4 to 6 times faster. This assumes the same printing speed, which depends partly on the achievable extrusion rate. If we assume your figure of 40mm^3 per second, then 0.6mm layer height and 1.1mm extrusion width allows a printing speed of 60mm/sec which isn't too bad.
-
Let's look at that another way. With a 0.9mm nozzle you will probably use an extrusion width of about 1.1mm and a layer height of 0.5 or 0.6mm. That's 2 to 3 times the layer height you would use with a 0.4mm nozzle. So printing perimeters will be 2 to 3 times faster. Additionally, using the same percentage infill, there will be a greater spacing between infill strokes because of their greater width and therefore few of them. So infill will be 4 to 6 times faster. This assumes the same printing speed, which depends partly on the achievable extrusion rate. If we assume your figure of 40mm^3 per second, then 0.6mm layer height and 1.1mm extrusion width allows a printing speed of 60mm/sec which isn't too bad.
All true but 60mm/sec is only a quarter to a sixth of the "theoretical" speed I could get with a 0.5mm nozzle. So say on average perimeters and infill will be 4 times faster due to the larger layer height and extrusion width, but the print speed is a quarter of that which is possible with a smaller nozzle, then the total time to print an object would be roughly the same because the limiting factor in both cases is the "melt rate" for the filament.
Anyway, I have a 0.5mm diamond assembled and ready to fit. I also have a 0.9mm version on order complete with all heat sinks etc so I can build another complete assembly. Then it'll be reasonably easy to switch between them and do some real life testing and evaluation.
As for stepper motors (which is how this thread started), I'll think I'll go with the smaller Nema 17s similar to, if not identical to, those you originally suggested. On balance, I don't think it worth the hassle of changing my design to suit the larger Nema 23s and it's looking like I would not be able to take advantage of their potential in this application. Another factor in my decision is that I'm not 100% convinced that CoreXY is the way to go - 90% but not 100%. The printer is all being built from Open Build V slot extrusion and accessories so it wouldn't be a major problem to convert it to a more simple Cartesian design if the CoreXY doesn't work out. In which case, at least one of the axis motors would need to be "mobile" rather than static so then weight and size would become a factor.
Thanks everyone for your help, patience and input. It's been a pleasure to have an adult, sensible discussion rather than some of the threads I have been reading on that other forum.
-
Sorry for not jumping in on this thread sooner, I can save you guys a crapload of effort and guesswork here. I have a very, very detailed motor/driver behavior simulator spreadsheet that you can use to find the top practical speed for your drivetrain, along with very roughly how much torque you'll lose at higher speeds. There are instructions and everything.
- Go here:
https://github.com/rcarlyle/StepperSim/tree/master/Sim%20sheets - Download the THB6128 stepper driver sheet. This is not the driver on the Duet Wifi, but the THB6128 has near-perfect current control, and the TMC2660 should also have near-perfect current control (to be confirmed!) so we can ignore the specific driver behavior here and use the 6128 sheet as a very accurate stand-in for the 2660.
- Follow the instructions in the sheet. You're going to need to plug in the motor specs, your PSU, and your basic drivetrain info.
3a) When the driver can no longer hit peak current, you're at the end of the "constant current" drive range. This is the conservative max speed for the printer: you always get full torque, full precision, and no risk of mid-band resonance. But it will happily run much faster than this.
3b) When the waveform looks like crap and/or the simulator can no longer converge, that's really about as fast as you should optimistically take the motor.
Note that CoreXY requires the motor/belt to move between 1 and sqrt(2) times faster than the nozzle, and deltas require the motor/belt to move between ~0 and 3 times faster than the nozzle. To be thorough, you should factor these into the speed ranges you check. The spreadsheet will not do that for you.
As far as the extruder limiting max motion speed, YES, that is almost always the case. Different extruder systems can push different volume flow rates of filament. This is primarily limited by how fast the hot end can melt the filament. (Extruder drive behavior is usually a secondary effect but can be the limit for very high gear ratios or weak motors.)
For PLA or PETG, a normal PTFE-lined hot end maxes out around 4-5 mm^3/sec, a normal all-metal hot end maxes out around 8-10 mm^3/sec, and a Volcano maxes out around 25-30 mm^3/sec. (Add ~50% to these for ABS.) Very small or very large hot ends will have different limits. The main determining factor for similar hardware (ie all-metal vs all-metal) is the residence time of the filament in the hot end, which in turn is proportional to the HEIGHT of the hot block.
In order to estimate your printer's flow rate to a very good approximation, simply multiply LayerHeight * ExtrusionWidth * Feedrate (all in mm and mm/s). This isn't perfectly exact because of extrusion volume calibration and different slicer behavior, but it's very much close enough for our purposes here.
If you want to "print fast" – meaning finish prints quicker -- you should set up your printer to print near the flow rate limits of your hot end. You can print big, fat strands at low feedrates, or thin strands at high feedrates.
Any loser with a RAMPS i3 can finish prints quickly if he uses a Volcano and big, coarse extrusion strands at low speed. Where "fast" printer hardware benefits you -- meaning rigid construction and high speed motors -- is in your ability to maintain high flow rates with low layer heights. You get speed AND resolution that way. The guy with the i3 can only get speed OR resolution.
- Go here:
-
Thank you so much. That was very informative and useful. It looks like the 0.9mm nozzle was a complete waste of money - never mind. Although, E3D reckon that big thick layers do seem to adhere to each other very well and result in very strong objects so I might yet find a use for it.
-
Hi deckingman
Its not necessarily a waste of time another use of large nozzles is to print transparent materials which benefit from higher layer heights:
http://taulman3d.com/t-glase-features.htmlfor example
-
Ahh, that's interesting about large nozzles and t-glass. Thanks.
The other thing I kind of wondered about was how the Diamond hot end would compare to an E3D volcano. It is a big old lump of brass. I hear what RCarlyle says about residency time in the hot end but with the Diamond, there are 3 melt zones (one for each filament). It'll be interesting to set the mix ratio to 33% for each filament then see how much can be extruded. Lot's to play with but this is going way off topic so I'll shut up now.
-
A mixing hot end with equal feed rates should let you print dramatically faster. It has been proposed on a few occasions to do this, although I haven't seen any public reports on how well it works in practice. (Stuff like retraction and heat creep jamming tends to be more problematic in mixing hot ends.)
-
A mixing hot end with equal feed rates should let you print dramatically faster. It has been proposed on a few occasions to do this, although I haven't seen any public reports on how well it works in practice. (Stuff like retraction and heat creep jamming tends to be more problematic in mixing hot ends.)
Yes, I've found that heat creep jamming can be a problem but only when I'm using the Diamond as a single filament hot end over a prolonged period of time and the unused inputs get affected. Even then, it only happened when I increased the temperature from 195 to 205 deg C. That's with PLA - I haven't tried any other filaments. You do need a seriously efficient cooling fan to blast air over the heat sinks. I've never had a problem when using it as a mixing hot end.
The trick to retraction is that you have to retract all 3 filaments, even if you have a mix ratio of 1:0:0. If you only retract one filament, it simply tries to draw filament from the other "unused" inputs and basically does nothing. DC42 very kindly incorporated firmware retraction into his firmware. Since I implemented that, it's been fine. I'm using about 5mm on 400mm long Bowden tubes but I've found that it needs to be varied depending on the size of the object being printed (or more specifically, the length of non-print moves). For non-print moves of about 100mm of more, 6mm retraction works better to reduce stringing. For smaller objects, 4mm works better.
-
Good to know on the retraction – I figured there would be "crosstalk" issues during retraction but didn't know how specifically to manage it.
-
I was a bit concerned initially that retracting and un-retracting all the filaments especially the "unused" ones would just grind away at the filament and cause problems when it came time to actually move the filament forward and extrude some. In practice, this hasn't been found to be an issue at all.
-
Thank you for the spreadsheet!!! the instructions are so clear, great job!
I played with it tonight and simulated this guy:
Nema 23 CNC Stepper Motor 2.8A 1.26Nm(178.5oz.in) 23HS22-2804S and with my 16 teeth pulleys went up to 260mm/s with 77% of the low speed torque still available.. So shall be plenty even for my preconstrained rails and and too heavy carriages.
Then I considered the distortion too large and stopped there, this seems pretty fair to me so thank you so much for the nice tool.I guess the next step is to validate those predictions through practice. Just waiting for some piece of electronics… to arrive in about 6 weeks...;)
-
Hi,
I read the above calculations with a lot of interest and have a question. I am busy building a large scale (wel, 325x325 buildplate is not considered large by a lot of people, but I am happy with it) coreXY printer.
For the X/Y I am considering 2 possible motors which are quite different from eachother
Model A is the very popular and widely used Kysan 1124090 Nema 17 1,8° stepper with 5,5Kg,cm holding torque
Model B is the Lin Engineering 5704M-03 Nema 23 0.45° stepper with 10,1Kg.cm holding torque
I did some calculations based on each motor using GT2 20tooth pulleys
Model A:
U = 24V
R = 2.8Ohm per phase
I = 1.5 Amps
Inductance = 4.8mH/PhaseTime to fully energize coil = 1.5 x 4.8 / (24 - 0.5 x 1.5 x 2.8) = 0.329ms
Max speed (5steps per mm) -> 1000 / (5 x 0.329) = 607 mm/sModel B :
U = 24V
R = 1.2Ohm per phase
I = 3 Amps
Inductance = 1.2mH/PhaseTime to fully energize coil = 3 x 1.2 / (24 - 0.5 x 3 x 1.2) = 0.162ms
Max speed (20steps per mm) -> 1000 / (20 x 0.162) = 308 mm/sModel B @ 36vDC:
U = 36V
R = 1.2Ohm per phase
I = 3 Amps
Inductance = 1.2mH/PhaseTime to fully energize coil = 3 x 1.2 / (36 - 0.5 x 3 x 1.2) = 0.105ms
Max speed (20steps per mm) -> 1000 / (20 x 0.105) = 476 mm/sI do know that duet board doesn't do more than 2 Amps, but I intend to somehow drive the motors using external drivers. I currently have these nema23 motors (yes, you read well, 800 steps per rotation, I also didn't know they existed before) hooked up to 35vDC on my self built lasercutter.
Now my question.
I read above that motors with more steps per rotation would not do a lot of difference in quality, but thats so hard for me to understand. A normal 200 steps motor normally can achieve its accuracy in positioning with an acceptable rate of 5% of the size of 1 step. So if 1 step is 1.8 degrees, 5% of it is 0,09° accuracy, which on a 20 teeth pulley results in 40 / (360 / 0,09) accuracy of 0.01mm . The nema 23 motor I would like to use is accurate up to 0.017° , which on a 20teeth pulley results in accuracy of 40 / (360 / 0,017) = 0,00188mm
So…. isn't in my case then the nema23 a better choice? It has plenty of power, can go 476mm/s with fully energized coils and accuracy of 0,00188mm
Also. it goes 476mm/s with fully energized coils, but I guess it can go faster than that with less energized coils ? With that amount of torque coils don't have to be fully energized to pull the load guess.
The nema17 motor only has 5,5Kg.cm torque and the nema23 has 10,1 , so I could theoretically run the nema23 at aproximately 5.5/10.1 x 3 = 1,63 Amps and get the same torque, but a lot more accuracy ? -
My twopence worth. Regarding accuracy, we are squirting hot filament out of a small nozzle whilst moving that nozzle too and fro (and around curves which aren't true curves but small segmented moves). There are just so many variable in that process that you are most unlikely to be able to produce an object that is dimensionally accurate to anything like 0.1mm in every axis. So 0.01mm is plenty good enough and anything else is overkill although you could use 0.9 degree steppers or 1:2 gearing to double it.
For info, my Y axis (which includes the X axis rails and a bulky Diamond hot end) weighs is in at around 1,900 gms driven by Nema 17s (2amp driven at 1800mA) with 0,59Nm torque (around 6kg.cm) and I regularly print at 90mm/sec with non-print moves off 320mm/sec on a 400 x 400 bed.
Personally, I'd stick with the Nema 17s driven by the excellent onboard stepper drivers using the default 16X microstepping with interpolation).