Acceleration as a function of speed
-
I agree that changing acceleration in the middle of a move is unlikely to cause any particular problems, because as you say the acceleration is changing frequently anyway.
Seriously? Velocity changes during a move but the last time I looked, I have only one acceleration value per axis and extruder. My understanding is that for any given given move, the acceleration is derived from whichever axis or extruder has the lowest value and that the same acceleration rate will be applied until the maximum speed is reached or it is time to decelerate (but at the same rate). I say again that the first derivative of position with respect to time is velocity, the second derivate (the rate of change of velocity) is acceleration and the third derivative (the rate of change of the the rate of change of velocity) is referred to as jerk because it results in a near instantaneous change of velocity.
What I mean is that the acceleration within some moves already changes abruptly from positive maximum configured, to zero, to negative maximum configured - for example when doing rectilinear infill. I doubt whether making the transition from maximum allowed acceleration to zero via an intermediate acceleration (and vice versa) would make anything worse.
-
I can't seem to get my point across so we'll have to agree to disagree then.
-
I can't seem to get my point across so we'll have to agree to disagree then.
I should also have said that I only see this feature being useful (if at all) during fast travel moves. So the extruder behaviour to the extra acceleration change would not matter, because it would only be used in non-extruding moves.
-
This biggest thing in all of this is how do you propose to get the filament to follow the behaviour of the print head? Given that it starts as a semi rigid filament, which then has to be melted and turned into a viscous liquid, then forced through a tiny hole. How are you going to melt is fast enough for the speeds you propose and how are you going to accelerate and decelerate it at the speed you propose?
I don´t see any problems at all with extrusion capacity (in case you mean this problem).
1. i don´t say that i want to print at e.g. 2500 mm/s with 5g.
2. A 5 USD E3D clone has a real life extrusion capacity of about 8-10 mm³/s. Real life means not with constant flow/speed, it means with all the stop & go which happens because the printing speed does stop & go. Try how much an E3D can extrude at constant flow rate, it is with PLA reasonable > 10 mm³/s. Use filaments like extudr BDP with a full metal hot end and it is much more higher.At 8 mm³/s; 0.4 nozzle and 0.1 layer height the E3D extrusion capacity is enough for > 200 mm/s. The reason why some people say they get under extrusion at 50 mm/s, is not the extrusion capacity, it is the varying speed and often much too high retraction values, which is a very big disturbance of the constant flow.
Take a volcano with 20-30 mm³/s and you are in the 200-300 mm/s speed region also with bigger nozzles. It doesn´t need a in comparison super heavy diamond hot end to get the needed extrusion capacity. The diamond hot end is nice to mix filaments and if you have one, why not use the extrusion capacity with the same filament - but an E3D V6/volcano is in principle "enough" - at constant speed !The fact that it is a "semi rigid filament which then has to be melted" is not a bug, it is a feature in this purpose. The filament/hot end is just a spring damper (visco elastic) combination. By that it is able to store energy and to smooth the motion, it is like a low path filter. As long as your speed changes are fast and short, the low pass filter just smooths them out. The problems occur when the changes are not short and fast, they occur when the speed changes are slow and big ! If the moves stay at higher frequencies than the "natural frequency", they are just wiped away and averaged. Not to forget our "beloved" jerk is also available for extrudes.
If you drive a car and a modern ABS starts to work, you don´t notice that because the brakes are opening and closing very quickly. 20 years ago at much slower cycle times you could feel the stuttering. If you drive your car you don´t notice all the small and fast deviations on the road, they even don´t come to your springs and dampers, they are filtered by the tire rubber. What you notice are the big and slow bumps.
Using a much higher acceleration at the same speed leads to a much more constant printing speed, so the absolute deviations in printing speed and extrusion over time are much less and not more - this improves print quality and doesn´t make it worse (as long as mass/stiffness is sufficient).
I should also have said that I only see this feature being useful (if at all) during fast travel moves. So the extruder behaviour to the extra acceleration change would not matter, because it would only be used in non-extruding moves.
For extruder issues see above. The extruder will be very likely the last problem, it will work "better than now" in terms of a more constant extrusion rate. With bowden probably better than with direct drives. Retraction can be reduced a lot if you are able to travel fast. Direct drives have retractions of << 1mm, bowden e.g. < 5 mm. But the 5mm don´t happen in the hot end, they are happening in the tube which just works as a spring. With my E3D titan combination (direct) i need 0.3 mm retraction - that means the real retraction which happens in the hot end is between 0 and 0.3 mm. With a bowden there is plenty of buffer in between to compensate extrusion "jerks". With direct drive i will maybe have to reduce retraction to 0.1 mm or whatever - we will see. Anyhow with fast travel moves you "don´t need retraction" (or much much less), it has no to time to ooze.
DC42 has put lot of effort in to tune PID loops - why ? Because the disturbances are big. The biggest disturbance is varying printing speed…. worst case are retractions.
The hard limit or problem when printing is mass/stiffness, but there firmware changes can push the limit far away in comparison to now. My plan is also to get rid of or at least reduce retraction a lot, that is the only way to print flexible filaments with higher quality.
It seems to me that you all maybe don´t consider that printing (as well as travel) moves don´t start at zero speed in general.
At 12 V the torque drops start at more or less 0 mm/s. When printing with e.g. max 80 mm/s, the moves don´t start with 0 mm/s in average… they will start at about below the average printing speed (which is with low acceleration far below 80 mm/s, but as soon as you increase acceleration the average printing speed is also increased and by that you need more torque compared to low acceleration). If a print of a round shape in vase mode happens at 150 mm/s (= max printing speed), the average speed i guess should be > 100 mm/s.
On fast travel moves the benefit is most easy to see. I think if you change your thinking from"what is state of the art now" to "what will be state of the art in future" you will see the benefits. I fully agree that in the low speed region the stiffness issues will bottleneck 99.9 % of most users much earlier than the possible acceleration - but again also this limit can and will be shifted.
And as written in posts above, there are multiple advantages and if the improvement is not doubling the printing speed, if it is just a 20 % imporvement of speed or better quality, why not ? For me the question is not if a more constant printing speed improves speed and quality, the question is how much. On travel moves it is just easier to see.
-
If the torque drops at 0mm/sec with a 12V supply, you have chosen unsuitable motors for that supply voltage. The voltage drop of the motors should be no more than 4V, leaving 8V leeway for back emf as the speed rises.
-
Based upon various posted torque curves, at design current the torque starts to drop not far way from 0 rps at e.g. 12V. I "don´t care" if it starts from 30, 50 or 70 mm/s if i am heading for > average 100 mm/s printing speed. And again, moves don´t start from 0 mm/s in general. The higher the acceleration the higher the average speed and the bigger the demand for more torque. If somebody thinks he should operate a NEMA17 at 50 % current, he should just buy a NEMA14 and don´t waste resources.
I am sorry but this rps discussion is getting frustrating/useless. Torque drops with speed. At lot when traveling and also when printing unless one doesn´t remain in the low speed region. When the firmware change is done for travel moves, the feature is also available for printing moves for free. If somebody thinks, when printing it will never work for him, it is ok, nobody is forced to use it.
According to my tests i have no missing steps at all up to 1000 mm/s at 5g, and it seems not to be the limit at max. 1000 mm/s. At 5g it takes 10 mm to reach 1000 mm/s. If i open the max speed to 1500 mm/s i get missing steps. Therefore i have to reduce the acceleration - but now this also limits the part < 1000 mm/s, so in total right now increasing and using high max speeds increases (for sure it depends on the print) the total time, because i have to reduce the acceleration and most moves happens in the low speed region. For sure acceleration as a function of speed won´t double the average speed, i never claimed that, but it is only a software change, it doesn´t hurt anybody who thinks it doesn´t help him.
-
Torque only drops with speed if the back emf due to inductance and motion exceed the ability of the stepper driver and power supply to provide sufficient voltage. For most 3D printer users choosing Nema 17 motors of modest size, I don't think this is the case. For example, using a typical XY acceleration of 3000 mm/sec^2 and a 300mm long bed, from v^2 = u^2 - 2as (s = 150mm for acceleration and 150mm for deceleration), the peak speed is sqrt(2 * 3000 * 150) = 300mm/sec. Plugging this into https://duet3d.com/wiki/Choosing_stepper_motors#How_to_work_out_the_power_supply_voltage_you_need with a 17HS19-1684S motor (not the best choice for the series 2 Duets - the -2004S would be better), we find that at 1.4A current the peak back emf due to inductance is 13.5V and the peak back emf due to rotation is 8.72V. As these are not in phase when high torque is demanded, a 24V supply is sufficient for this case with negligible loss of torque at the target speed.
If you build a very large printer and/or use much higher acceleration and/or use motors with higher rated current and/or higher inductance and/or you use 0.9deg motors for the axes, then I can see that variable acceleration could be useful. But for typical users, it doesn't appear to be. Also the benefit of very fast travel moves is doubtful IMO, because travel moves that cover such large distances are rare.
Also I repeat my earlier point. During printing moves, it is important to have a large excess of torque to ensure precise microstep placement. In which case, during high speed travel moves, it doesn't matter if the torque drops by 50% or even more, because you have such a large reserve anyway. It's difficult to print above 150mm/sec.
By all means put this feature on the firmware wishlist. The only implementation that I could do quickly would be use constant acceleration for every move, but choose the acceleration according to the peak speed for the move. You might care to work out whether e.g. halving the acceleration to achieve a top speed of 600mm/sec instead of using full acceleration to achieve a top speed of 300mm/sec is likely to be worth while for you.
-
@vp:
Based upon various posted torque curves, at design current the torque starts to drop not far way from 0 rps at e.g. 12V. I "don´t care" if it starts from 30, 50 or 70 mm/s if i am heading for > average 100 mm/s printing speed. And again, moves don´t start from 0 mm/s in general. The higher the acceleration the higher the average speed and the bigger the demand for more torque. If somebody thinks he should operate a NEMA17 at 50 % current, he should just buy a NEMA14 and don´t waste resources.
I am sorry but this rps discussion is getting frustrating/useless. Torque drops with speed. At lot when traveling and also when printing unless one doesn´t remain in the low speed region. When the firmware change is done for travel moves, the feature is also available for printing moves for free. If somebody thinks, when printing it will never work for him, it is ok, nobody is forced to use it.
According to my tests i have no missing steps at all up to 1000 mm/s at 5g, and it seems not to be the limit at max. 1000 mm/s. At 5g it takes 10 mm to reach 1000 mm/s. If i open the max speed to 1500 mm/s i get missing steps. Therefore i have to reduce the acceleration - but now this also limits the part < 1000 mm/s, so in total right now increasing and using high max speeds increases (for sure it depends on the print) the total time, because i have to reduce the acceleration and most moves happens in the low speed region. For sure acceleration as a function of speed won´t double the average speed, i never claimed that, but it is only a software change, it doesn´t hurt anybody who thinks it doesn´t help him.
Can you post a video showing that you can actually print reasonable quality parts at 1,000mm/sec using 5g acceleration please? Up until now, I thought that everything you were saying was based on some sort of theoretical scenario and conjecture. I didn't realise that you have actually done tests printing at 1,000mm/sec using 5g acceleration. So if you can actually prove that it works under real life conditions then that adds a whole new dimension to this discussion. I think all the makers of hot ends and extruders would love to see how their items can be used to print at far higher speeds than anyone else has been able to achieve. In fact, this would completely revolutionise the entire world of 3D printing and you will be hailed a hero. All you have to do is prove it in a rational scientific way, rather than quote theoretical. possibilities.
-
Yes, thanks and i will add it to the wish list. maybe Christmas is coming sooner or later.
In between, i can process gcode to do a proof (or fail) of concept. How many paths segments (or lines) can the Duet handle per second ?I still think it is not clear how this should help. dc42 you are still thinking and comparing "state of the art".
I repeated already several times, that most benefit comes when traveling not when printing - on this point we agree, but if "acceleration as a function of speed" is there because of travel moves, it would be stupid not to use it when printing.
I also think that because of missing stiffness, only some users will benefit.
The reason why i use 24 V, 2 steppers per axis and 1 one driver per stepper (it would be easy to connect 2 steppers in series to one driver at 24 V) is that i see no need at all to bottleneck my possibilities. I don´t build this printer to print at 50 mm/s, I bought such a printer long ago.The only way not to loose torque at 12 V is to waste resources by reducing the current to e.g. 50 % of design - like in your example. In this case, i could be proud that the torque doesn´t drop until maybe 5-10 rps, but only because i lost already 50 % of the initial torque. My target is not to keep the torque as much as possible constant by reducing it artificially, i am hunting for e.g. super fast travel moves.
I used the same calculation as you to choose my steppers, but we should never forget the difference between theory and real life.
check the torque curves -> http://www.electrocraft.com/products/stepper/TPP17/
TPP1729-A20 TPE17-45A15 TPE17-45A20
5 rps 18 Ncm 21 Ncm 26 Ncm
10 rps 15 Ncm 9 Ncm 16 Ncm
20 rps 7 Ncm 0 Ncm 5 Ncm
L mH 1,0 3,4 1,9
R Ohm 1,2 2,0 1,1
L/R 0,8 1,7 1,7
current 1,0 A 1,5 A 2,0 A1. It is wrong that torque doesn´t drop significantly with speed, just look above. Running at 80 % current doesn´t change these curves a lot. The faster you run in average the more the current is limiting itself, so you could increase the current to maybe 100 % because in average you don´t reach it anyhow - but the 100% torque at low speed would be there.
2. It is wrong to choose the smallest "possible stepper" IF somebody wants performance in terms of speed. The smallest one above TPP1729-A20 with 1 A has the highest torque at 20 rps - but i am not interested in the highest high-speed torque, i am interested in high torque from beginning to end, most moves are"slow" and therefore the biggest (TPE17-45A20 2 A) one is the winner in this example. The mass of inertia is missing here, so the winner of the netto high speed torque is still the smallest one, but it doesn´t change anything that until very high speed, the smallest (as well as the mid sized) is the "loser". In terms of price is the smallest not more or less expensive than the biggest (maybe 1-2 EUR…).
With a 16 T GT2 pulley at 1.8° 5 rps are 160 mm/s, 20 640 mm/s. With 0.9° 5 rps is about in the printing range.
In case of the TPE17-45A20 the torque drops from 26 to 5 Ncm from 5 to 20 rps (640 mm/s) - these values are not unreachable, in my case 1000 mm/s and above are usable. In other words, when i would hunt for 1000 mm/s, i would also have to reduce the low speed acceleration to about 1/10 of what would be possible..... this is just not necessary.
-
Can you post a video showing that you can actually print reasonable quality parts at 1,000mm/sec using 5g acceleration please? Up until now, I thought that everything you were saying was based on some sort of theoretical scenario and conjecture. I didn't realise that you have actually done tests printing at 1,000mm/sec using 5g acceleration. So if you can actually prove that it works under real life conditions then that adds a whole new dimension to this discussion. I think all the makers of hot ends and extruders would love to see how their items can be used to print at far higher speeds than anyone else has been able to achieve. In fact, this would completely revolutionise the entire world of 3D printing and you will be hailed a hero. All you have to do is prove it in a rational scientific way, rather than quote theoretical. possibilities.
As mentioned earlier above, my complete z-axis "power train" is missing, i am waiting for parts, but in between, i am doing test.
So until now i didn´t print a single piece and i don´t think i will use 5g for printing because the deflections are too big (at least in theory, but jerk should also not work as good as it does in theory).Right now > 10g at up to 500 mm/s are no problem (no missing steps). I am now on/going to vacation and afterwards the postman should ring the bell.
In principle, if you use the full available torque when traveling and you don´t have z-deflections (that means you don´t hit the print, bad luck for deltas…), in my case 20 g could be possible in the low speed region.5g when printing could be maybe interesting to get rid of jerk, that means instead of bumping it, "gentle" accelerating it, for the 1st 0.0... mms.
-
Ah, sorry. I thought when you said you were testing at 1,000mm /sec you were actually testing under real printing conditions.
By the way, you still don't understand how instantaneous speed change (what has become known as Jerk) works in 3d printers but hey, it's easy enough to set it to zero to test your theory that you can do away with it. Looking forward to seeing a video of your 1,000mm/sec 5g (or as you say in your case 20g) accelerations.