# Stepper motors for CoreXY

• Thanks David,

I stand corrected on the CC drive calculations, appreciate it honestly, learning is good.

So punching the numbers in for my Nema23's at 4.5mH - 0.9 Ohm - 0.9 degree I end up at 250mm/s still at max torque before torque starts to fall using 20 tooth pulleys.

Now take the 1.8 degree version of that Nema23 http://www.omc-stepperonline.com/nema-23-cnc-stepper-motor-28a-126nm1785ozin-23hs222804s-p-108.html
0.9Ohm - 2.5Mh - 1.8 degree we end up at 0.19ms and good up to 1050mm/s

Seems like the key criteria are
Inductance
Resistance
Voltage
Step angle
with the lower the Inductance and Resistance the higher the max speed at max torque.

Nema23's then with a higher starting torque value should reach ultimately higher speeds before running out of torque when all other specifications are the same.

This all gives me a great insight into calculating my max travel speeds for my Delta and I hope it hasn't confused Ian even more and has actually made my mind up on the steppers I am going to use for the MPCNC i'm going to build.

Cheers

• ….....................and I hope it hasn't confused Ian even more .......................

Guys, you lost me way back. I think you are both saying that those big Nema 23s are not the best, and for this application the Nema 17s that DC linked to originally would be better. Also that 0.9 degree vs 1.8 degree would have no real benefit for this Cartesian type printer.

• 0.9 deg X and Y motors would give you less motion lag than 1.8deg motors for the same torque, but only if the inductance is low enough so that the torque doesn't drop off before the highest speed you want to use. So pick that speed in mm/sec and multiply by the number of full steps per mm, which for GT2 belts is 100 divided by the number.of pulley teeth for 1.8 deg motors, and 200 divided by the number of teeth for 0.9 deg motors. Now divide that into 1000 to get the maximum value of L * I / (V - 0.5 * R * I) that you can tolerate.

However, the highest torque 0.9 deg Nema 17 motors I found on stepperonline were 46Ncm compared to 65Ncm for 1.8 deg motors.

• CoreXY could well benefit from a mixed installation as it is my understanding that screw based systems (Z for you) ultimate need a much higher stepper rotational value.

I wonder if the correct answer is 1.8deg Nema17 (low Inductance and Resistance) for Extruders and Z with the Nema23's for your XY considering the "mass" you have quoted to move around.

I know you were looking for part numbers and i'd personally just use the Nema23's for XYZ with the only coin toss being 1.8 or 0.9 for xy but i've already proved myself a little unconventional

The thing DC42 and I absolutely agree on is that Steppers should be sized appropriately and that your initial choice is not appropriate and we may have finally bashed out some criteria around speed torque calcs to make it easier.
Choose Max speed and work backwards seems to be a good way, This is particularly important for belt driven lead screws - a factor we had not figured in to the discussion.

• Ok so I got interested in this thread and wanted to calculate it for my delta. So reading all this, I made a spreadsheet for it here:
Thank you so much for all your inputs btw.

well I was contemplating a NEMA 23 with 0.9° steps, the oriental motor PKP264MD28 NEMA 23 0.9° seems to reach 300 mm/s with a descent acceleration.

Also I was trying to evalute the friction on my quite sturdy Hiwin rail and when I try to move at constant slow speed the carriage weighs 750g ouch…. so it's about 450 g of friction....

• CoreXY could well benefit from a mixed installation as it is my understanding that screw based systems (Z for you) ultimate need a much higher stepper rotational value.

I wonder if the correct answer is 1.8deg Nema17 (low Inductance and Resistance) for Extruders and Z with the Nema23's for your XY considering the "mass" you have quoted to move around.

I know you were looking for part numbers and i'd personally just use the Nema23's for XYZ with the only coin toss being 1.8 or 0.9 for xy but i've already proved myself a little unconventional

The thing DC42 and I absolutely agree on is that Steppers should be sized appropriately and that your initial choice is not appropriate and we may have finally bashed out some criteria around speed torque calcs to make it easier.
Choose Max speed and work backwards seems to be a good way, This is particularly important for belt driven lead screws - a factor we had not figured in to the discussion.

Yes, for now I'm just thinking about XY steppers only. My first stab was based purely on the assumption that more torque = greater speed. I now know that that is not necessarily the case (although the technical reasons mostly go over my head).

The Z axis and extruders will almost certainly be different steppers because they have different criteria to meet. I think David suggested something like 20Nm for the extruders so that they can be set up such that they won't chew the filament to pieces in case of a blockage. I haven't yet made a final decision about extruders but they are likely to 1:3 geared and probably E3D titan because I like the fully guided filament path and other design aspects. We'll come back to extruder steppers later.

My Z also is a bit unconventional in that I'll be using 8mm diameter single start 1mm pitch lead screws instead of the more common 4 start 2 mm (effectively 8mm pitch) lead screws. IMO, these are OK for speed in linear actuators but I don't need speed on the Z. It's only going to move a fraction of a mm on layer change and then sit there until the next layer change. O course, with 1mm pitch instead of the more usual 8mm, I've already reduced the torque requirement very significantly. Longer term, I'll likely end up with 3 steppers for Z (one per screw) if and when David gets chance to do the auto bed levelling firmware thing. My 10mm thick aluminium bed plate is on order, as is the silicone heater. I though I'd wait until I've built the bed, then weigh it, then I'll have an idea of what mass I need to shift. I'm also thinking about interchangeable Diamond Hot ends with different nozzle diameters and I'm in discussion with RepRap.Me about a 0.9mm diameter nozzle instead of the default 0.4mm. So, potentially my layer height could 0.6m rather than 0,3mm in which case, Z speed might become more significant. I could also play around with pulley sizes to get different gearing so again, it's different criteria to XY so will probably end up with different stepper(s).

Maybe I didn't express myself well in my OP but basically I was trying to get a handle on what motors would give me the fastest speed for XY, so saying choose a maximum speed and work backwards kind of turns my original question back on itself. Please don't take that the wrong way. I really do appreciate your help and advice and I understand that it must be difficult and frustrating to try and explain some of these technical things in terms that a 63 year old carpenter can understand.

• Maybe I didn't express myself well in my OP but basically I was trying to get a handle on what motors would give me the fastest speed for XY, so saying choose a maximum speed and work backwards kind of turns my original question back on itself. Please don't take that the wrong way. I really do appreciate your help and advice and I understand that it must be difficult and frustrating to try and explain some of these technical things in terms that a 63 year old carpenter can understand.

Hey no dramas, nothing taken the wrong way, working my way through all the text and numbers here's the current speed winner at 1050mm/s
The 1.8 degree version of that Nema23 http://www.omc-stepperonline.com/nema-2 … p-108.html
0.9Ohm - 2.5Mh - 1.8 degree we end up at 0.19ms and good up to 1050mm/s

33% faster than the Nema17 with double the holding torque.

This has actually been a good learning experience

• Maybe I didn't express myself well in my OP but basically I was trying to get a handle on what motors would give me the fastest speed for XY, so saying choose a maximum speed and work backwards kind of turns my original question back on itself. Please don't take that the wrong way. I really do appreciate your help and advice and I understand that it must be difficult and frustrating to try and explain some of these technical things in terms that a 63 year old carpenter can understand.

Hey no dramas, nothing taken the wrong way, working my way through all the text and numbers here's the current speed winner at 1050mm/s
The 1.8 degree version of that Nema23 http://www.omc-stepperonline.com/nema-2 … p-108.html
0.9Ohm - 2.5Mh - 1.8 degree we end up at 0.19ms and good up to 1050mm/s

33% faster than the Nema17 with double the holding torque.

This has actually been a good learning experience

Hello
and sorry to add to this but seems the link is broken … anyway I think I got the right one here:
http://www.omc-stepperonline.com/nema-23-cnc-stepper-motor-28a-126nm1785ozin-23hs222804s-p-108.html

Thing is that, I got to different values too if you check the 3rd line of the table below, it's almost exactly double time and half the speed.

Is it because of the CoreXY geometry to which I am not very familliar… still shouldn't affect the minimum step time....

• The 2.5mH Nema 23 stepper motor you linked to has a rated current of 2.8A. Have you allowed for the fact that you will have to run it at 2A maximum, unless/until we increase the current limit in the firmware at some stage?

• I am convinced you/ the community will find a way to get there ;).
In the meanwhile is there a firmware parameter to cap the current?

• The current cap of 2A is hard coded into the firmware source code. IMO it's unsafe to increase it until we have implemented some additional firmware features to control the driver temperatures.

• 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.

• @SGA

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.