Stepper motors for CoreXY
-
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.
-
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.