<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Testing the effects of microstepping and segmentation on print quality</title>
        <description>Following a discussion in another forum, I decided to do some tests to see what effect varying microstepping and segmentation has on the print quality produced by a delta printer. I printed the same gcode file with four different settings so that the results can be compared. Brief details:

- The machine is the 1m high delta with 300mm build diameter described at at https://miscsolutions.wordpress.com/dc42s-large-kossel-build/
- The print is a spiral vase 50mm cube with 3 solid layers at the bottom, and the gcode file is here https://dl.dropboxusercontent.com/u/19369680/cube5050501.gcode.
- Layer height is 0.1mm after the first layer
- The printer uses 0.9deg motors and 16 tooth pulleys, so the steps/mm @ x16 microstepping is 200
- Controller electronics is Duet Wifi, with TMC2660 drivers supporting up to 256x microstepping
- Firmware revision was 1.18RC1
- The extruder drive is a Titan with a 1.8deg motor and about 420 steps/mm. The extruder driver was set to x16 microstepping with interpolation to x256 for all prints.

Click on the images for a full-size version.

First a reference print using x16 microstepping with interpolation to x256 enabled, which is the default firmware configuration:

[img]https://dl.dropboxusercontent.com/u/19369680/50-0.1-x16-on.jpg[/img]

Next, still using x16 microstepping but with interpolation disabled (this is much noisier when printing):

[img]https://dl.dropboxusercontent.com/u/19369680/50-0.1-x16-off.jpg[/img]

Most firmwares divide any delta printer move other than a short one into short segments, calculate the endpoints of each segment, and generate motor steps at equal intervals within each segment, on the grounds that when a segment is small enough the difference between this approximated motion and true straight-line motion is small. Apart from the error within each segment, this forces each segment boundary to be quantised to the nearest microstep for each motor. RepRapFirmware is unique in that it calculates the precise step times for all the tower motors when driving a delta printer. The only time RRF normally uses segmentation is when using mesh bed levelling and a move is longer than the grid spacing. For this next test, I modified the firmware to force each move to be split into 0.5mm segments, still using x16 microstepping with interpolation off. Within each 0.5mm segment, each move is still executed precisely instead of using the approximation, so this doesn&#039;t fully simulate the way other firmwares behave:

[img]https://dl.dropboxusercontent.com/u/19369680/50-0.1-x16-off-seg-0.5.jpg[/img]

Finally, because it was suggested in another forum that high microstepping might result in a reduction in precision, I ran a test with x256 microstepping, not interpolated. To remain within the maximum step pulse rate of around 180000 steps/second per motor supported by RRF on the Duet WiFi I had to reduce the travel speed; but the print speed was still 50mm/sec.

[img]https://dl.dropboxusercontent.com/u/19369680/50-0.1-x256.jpg[/img]

I am aware that all the prints display ringing at the left hand edge, and I should reduce acceleration and/or jerk to reduce it. Other than that, I will leave readers of this post to comment on the print quality and how it differs between the prints.</description>
        <link>https://reprap.org/forum/read.php?178,759228,759228#msg-759228</link>
        <lastBuildDate>Tue, 08 Sep 2026 04:55:06 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,763893#msg-763893</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,763893#msg-763893</link>
            <description><![CDATA[ I've posted my findings in this thread:<br />
<br />
[<a href="http://forums.reprap.org/read.php?178,763881" target="_blank"  rel="nofollow">forums.reprap.org</a>]<br />
<br />
Hopefully it helps someone.]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Sun, 23 Apr 2017 09:12:38 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,762143#msg-762143</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,762143#msg-762143</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>hercek</strong><br />
A4982 driver do not have fast decay mode. Only slow or mixed decay. The default mixed decay does not kick in when the current is raising. But it can be set so that mixed decay is active all the time (I guess that is what you meant by "always configured in fast decay mode").</div></blockquote>
<br />
You are right of course, I was getting confused with the DRV8825. From the A4982 datasheet:<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br /><b>Low Current Microstepping</b>. Intended for applications where the minimum on-time prevents the output current from regulating to the programmed current level at low current steps. To prevent this, the device can be set to operate in Mixed decay mode on both rising and falling portions of the current waveform. This feature is implemented by shorting the ROSC pin to ground. In this state, the off-time is internally set to 30 μs.</div></blockquote>
<br />
The older Duets have a 0 ohm resistor between ROSC and ground to use this feature by default.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Thu, 13 Apr 2017 14:51:12 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,762142#msg-762142</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,762142#msg-762142</link>
            <description><![CDATA[ dc42: I did not notice in the TMC2660 data sheet how one can set microstepping and maximum current without SPI.<br />
Their (patent filled) spreadCycle mode looks interesting but I do not understand how it is better than e.g. THB6128 mixed decay mode.<br />
SpreadCycle mode creates a nice small wave in the PWM signal by inserting the fast decay segment into the middle. That means that the first harmonic of the PWM will be significant. THB6128 inserts its 1 µs fast decay segment at the end of the PWM cycle after which there is immediately the ON phase. This results in smaller first harmonic ... which sounds better to me.<br />
Of course THB6128 has a significant disadvantage compared to TMC2660. It cannot offset the whole PWM cycle trigger level properly. Therefore its average value will have slight error (somewhere in the range of 0.6% for my steppers - mostly negligible). It looks to me that if THB6128 would have some way to offset the threshold current where compactor (connected to the sense resistor) triggers then it could be as good as TMC2660. And if the offset would be settable using some analog voltage input pin, then it could be even be used without some serial configuration interface (i.e. on our small stepper driver PCBs and compatible with old controllers).<br />
<br />
Of course, it is typically better when one can configure stepper driver from software.<br />
<br />
A4982 driver do not have fast decay mode. Only slow or mixed decay. The default mixed decay does not kick in when the current is raising. But it can be set so that mixed decay is active all the time (I guess that is what you meant by "always configured in fast decay mode").]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Thu, 13 Apr 2017 14:41:04 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,762051#msg-762051</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,762051#msg-762051</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>hercek</strong><br />
The TMC2660 drivers on the Duet board seem to be pretty good. Unfortunately they cannot be put on a separate driver board for e.g. RAMPS since they need to be configured via SPI.</div></blockquote>
<br />
The configuration via SPI means that you can change the decay mode in software. See the TMC2660 data sheet for details. The spreadCycle mode with the parameters that we set by default in RRF works well for almost everyone. According to the datasheet, it automatically determines the optimum length for the fast decay phase.<br />
<br />
On the older Duets that used A4982 drivers, the drivers have always been configured in fast decay mode (right from the first Duets shipped in 2013) because of the known problems with mixed decay in some situations.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Thu, 13 Apr 2017 07:35:20 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,762026#msg-762026</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,762026#msg-762026</link>
            <description><![CDATA[ SD6128 should work well in mixed decay mode based on <a href="http://www.cuteminds.com/images/download/files/datasheets/THB6128%20IC%20Instructions.pdf" target="_blank"  rel="nofollow">this document</a>.<br />
The chip has 1 µs blanking time and it always inserts 1 µs fast decay segment at the end of the PWM cycle when current is rising. And it inserts one full PWM cycle of fast decay when current is decreased. That looks like the best option for simple driver which does not require special configuration through some serial interface (SPI, I2C, ...).<br />
<br />
The mixed decay mode looks like the best option for SD6128. Can people who have SD6128 confirm this?]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Thu, 13 Apr 2017 06:32:00 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761972#msg-761972</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761972#msg-761972</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>GroupB</strong><br />
<br />
you have to mod them  ? dont you just have to turn the decay pot to go fast or mix ... Got a decay pot on my thb6128</div></blockquote>
<br />
Mine had solder jumper pads.  A pot might be easier, but the pads are pretty easy to understand and use.  Same same I think.  If you've turned the pot to fast, then I think we're both in the same mode :)]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 12 Apr 2017 23:37:18 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761969#msg-761969</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761969#msg-761969</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>nebbian</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>o_lampe</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />
I'm starting to really wonder why no drivers ever seem to be in the best mode by default. Why should we always have to mod them???</div></blockquote>
<br />
The best mode is a quiet stepper for some of us ( running and/or holding), others prefer the best torque. <br />
Mixed decay is a compromise.</div></blockquote>
<br />
My SD6128's were quieter, and more accurate after modding.</div></blockquote>
<br />
you have to mod them  ? dont you just have to turn the decay pot to go fast or mix ... Got a decay pot on my thb6128]]></description>
            <dc:creator>GroupB</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 12 Apr 2017 21:02:36 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761963#msg-761963</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761963#msg-761963</link>
            <description><![CDATA[ Well, he should fix first his platform adhesion problems. There he has about 2 mm error which will dwarf any surface errors. Just teasing :-)<br />
<br />
The TMC2660 drivers on the Duet board seem to be pretty good. Unfortunately they cannot be put on a separate driver board for e.g. RAMPS since they need to be configured via SPI.<br />
<br />
Community designed A4982 do not need any modification. Well, I'm not sure whether all boards using this driver use also the right parts. But for example this driver is set up properly for a 3D printer by default: [<a href="http://www.reprap.cc/shop/de/content/schrittmotortreiber-a4982" target="_blank"  rel="nofollow">www.reprap.cc</a>]<br />
I have one piece and I checked it out. It was done right.<br />
<br />
My guess is that the drivers we use were designed for stepper motors with significantly higher inductance and resistance. Or they were not really intended to properly hold the position for slow movement.<br />
<br />
Despite all the simplicity A4988 (or A4982) are quite good. The mixed decay mode will use the fast decay part only when the current decreases the first PWM cycle. If the spec is not lying. I did not check this with oscilloscope. This is better than mixed decay mode of DRV8825 which will use the fast decay part in all PWM cycles when the current is decreasing. Again only info based on the docs. Anyway all low inductance/resistance motors will have problems because of blanking time. The driver chip designers could mitigate this quite easily by simply always inserting a fast decay segment of the same length than the blanking time just after the on time. This would prevent the error accumulation over PWM cycles when current is rising. It is simple to do and to use and the PWM ripple would be small.<br />
<br />
As for as the increased PWM noise in fast decay mode. It does not bother me. The difference is well noticeable when the printer is not running but as soon as it is running then the other noises dwarf the PWM noise. Young people who hear high frequency better may differ in their opinion.<br />
The fast decay PWM error bother me a bit more when calibrating. But error of about 1/16 of a step is not such a big deal.]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 12 Apr 2017 19:29:22 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761961#msg-761961</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761961#msg-761961</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>o_lampe</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />
I'm starting to really wonder why no drivers ever seem to be in the best mode by default. Why should we always have to mod them???</div></blockquote>
<br />
The best mode is a quiet stepper for some of us ( running and/or holding), others prefer the best torque. <br />
Mixed decay is a compromise.</div></blockquote>
<br />
My SD6128's were quieter, and more accurate after modding.]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 12 Apr 2017 19:06:57 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761901#msg-761901</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761901#msg-761901</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />
I'm starting to really wonder why no drivers ever seem to be in the best mode by default. Why should we always have to mod them???</div></blockquote>
<br />
The best mode is a quiet stepper for some of us ( running and/or holding), others prefer the best torque. <br />
Mixed decay is a compromise.]]></description>
            <dc:creator>o_lampe</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 12 Apr 2017 11:42:15 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761888#msg-761888</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761888#msg-761888</link>
            <description><![CDATA[ Good stuff Hercek.<br />
<br />
Here's some more data from a user on facebook with an MKS SBase (32 bit board, 8825 drivers)<br />
<br />
Left print is printed at 0.202 layer height, right print is at 0.161.<br />
<br />
<br />
[attachment 92907 161vs202_layer_height_8825_Andrew.jpg]<br />
<br />
From this I can see:<br />
1) That he's using 20 tooth pulleys, so his steps/mm value is 80 or 160<br />
2) That his drivers are not in the best decay mode<br />
<br />
For him to get better prints, he should print at one of the following layer heights:<br />
0.081, 0.161, or 0.243 mm.<br />
<br />
After doing some research, his drivers are in mixed decay mode by default.<br />
<br />
<br />
I'm starting to really wonder why no drivers ever seem to be in the best mode by default. Why should we always have to mod them???]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 12 Apr 2017 10:50:18 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761263#msg-761263</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761263#msg-761263</link>
            <description><![CDATA[ Ok; I have a4988 drivers too. I removed the resistor and connected ROSC pin directly to ground. I also replaced the resistor to the right of the potentiometer(*) which defines the stepper current. The original value was 20 kΩ and I repladced it with 51 kΩ. This makes the potentiometer much less sensitive and it is much easier to set the stepper current precisely.<br />
(*) As you can see on the picture, the new resistor has number 513 on its package.<br />
[attachment 92808 a4988.jpg]<br />
<br />
The results are as expected. The wall is significantly smoother. It is not visible well on the picture. Incredibly small details can be seen with good lighting. But the difference is very well felt when moving finger over the surfaces. And, as expected, the steppers are noisier now since the PWM frequency changed from about 35 kHz to about 22 kHz.<br />
[attachment 92809 cmp.jpg]]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Sat, 08 Apr 2017 18:14:48 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761032#msg-761032</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761032#msg-761032</link>
            <description><![CDATA[ dc42: I obviously did not know about that article :)]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Fri, 07 Apr 2017 12:41:12 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761030#msg-761030</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761030#msg-761030</link>
            <description><![CDATA[ The charts are computed based on model not measured experimentally.<br />
<br />
The charts actually indicate that 8825 should be worse even for the motors I used if the driving current is less than about 1 A. Anyways the difference should not be big. If you are getting a big difference then your motor parameters are significantly different, or my model is wrong/tooSimplified, or something else is fishy.<br />
<br />
At first look the charts actually make good sense. Notice that PWM frequency is fixed for 8825. Therefore the error slightly falls down when higher currents are used. The PWM frequency is variable for A4988 - it is falling with bigger currents(*), therefore the PWM error is raising with bigger currents.<br />
<br />
(*) Because A4988 has fixed OFF time and variable ON time. The ON time is raising with higher currents. It takes longer time to rise current to higher values.<br />
<br />
How the PWM error looks like for different motors depends especially on Tau = L/R of your motors, ... and the power source voltage.<br />
<br />
The smaller the Tau (and the bigger the voltage) the higher the PWM error.<br />
<br />
But with bigger Tau and smaller voltage (i.e. the combination which lowers PWM error) also drops the maximum motor speed you can precisely achieve. If you cross the maximum precise RPM then you will get much bigger errors than the errors from the PWM current control. This is because the errors are propagating from one PWM cycle to the next one and accumulating per one quadrant (electrical phase angle of 90°).]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Fri, 07 Apr 2017 12:35:36 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761019#msg-761019</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761019#msg-761019</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>hercek</strong><br />
<br />
Edit: Based on this schematic: [<a href="https://a.pololu-files.com/picture/0J3359.600.jpg?bafae85a9d4ff4a7837ec16a322748fe" target="_blank"  rel="nofollow">a.pololu-files.com</a>]<br />
The resistor you removed should have been 10 kΩ which corresponds to OFF time 12 µs, fast decay time 3.8 µs, blanking time always constant at 1 µs.</div></blockquote>
<br />
I just found that resistor on my bench (not easy, let me tell you!!) and measured it.  Voila, 9.96k.  <br />
<br />
Those graphs are interesting.  I haven't tested this directly, but I had the feeling that 8825's were worse (a lot worse) than A4988's, if you were comparing either  unmodded to unmodded, or modded to modded.  The graphs suggest otherwise.<br />
<br />
Looks like I'll have to pull my mini apart again.  I'm getting pretty good at it by now.  My desk is being swamped with cubes.]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Fri, 07 Apr 2017 11:16:20 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761018#msg-761018</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761018#msg-761018</link>
            <description><![CDATA[ This issue with A4988s and A4982s has been known for several years. See [<a href="http://hydraraptor.blogspot.co.uk/2012/04/stepstuck.html" target="_blank"  rel="nofollow">hydraraptor.blogspot.co.uk</a>]. It's why the older Duet boards that use A4982 drivers have always had the Rosc pin shorted to ground.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Fri, 07 Apr 2017 11:14:26 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,761003#msg-761003</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,761003#msg-761003</link>
            <description><![CDATA[ I was pointed to the microstepping problem on A4988 and DVR8825. Well, I did know that DVR8825 (which I did not use yet) has this problem but I did not know about A4988. A4988 must be switched to mixed decay mode for all the time. DVR8825 must be switched to fast decay all the time. If this is not done then you can expect microstepping errors in the range just below stepLength/2. For the stepper motors like I use: R ≅2 Ω, L ≅  3 mH, U = 24 V, I ≅ 1.6 A. I would not really care about these errors for the smoothness of the walls. But I think they will make numerical calibration worse. Therefore it is worth to fix it. If you do it then the kind of errors you can expect are in the charts below (if you are using motors abut the same as I do - this depends on the stepper motor parameters):<br />
[attachment 92753 A4988.png]<br />
[attachment 92754 DRV8825.png]<br />
The interesting part are the red lines. When you multiply them by 100 then you get the percentage which you can look up in the stepper driver microstepping tables and look how many microsteps you can be wrong because of current control using PWM (with mixed/fast decay) in the stepper driver. The tables will tell you that it is somewhere just below one microstep at 16 microstepping. Notice, these errors are valid after you switch the driver to the best decay mode. The drivers are not in the best mode by default. They do much much worse in the default mode ... as nebbian kindly figured out and let us all know :)<br />
<br />
If you thing you see segmentation errors on your walls (as I did), well there is good chance you actually see the result of bad decay mode of your drivers.]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Fri, 07 Apr 2017 09:51:57 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760797#msg-760797</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760797#msg-760797</link>
            <description><![CDATA[ You switched your A4988 to mixed-decay mode on both raising current and falling current quadrant (PWM period 30 µs). You achieved it by shorting ROSC pin to ground.<br />
<br />
When your pin was connected to the ground through resistor then the A4988 chip used slow decay in the raising current quadrant and mixed decay in the falling current quadrant. Provided that the removed resistor had resistance of 1 Ω, then the OFF time should have been 1/825 µs ... which does not make sense since it is less than the blanking time of 1 µs. 1Ω definitely looks like a wrong value for that resistor. I would expect either 0 Ω (i.e. shorted to ground) or at least 1650 Ω.<br />
<br />
Thanks for posting the results. I think I have the same driver and if so then I will try this too.<br />
<br />
Edit: Based on this schematic: [<a href="https://a.pololu-files.com/picture/0J3359.600.jpg?bafae85a9d4ff4a7837ec16a322748fe" target="_blank"  rel="nofollow">a.pololu-files.com</a>]<br />
The resistor you removed should have been 10 kΩ which corresponds to OFF time 12 µs, fast decay time 3.8 µs, blanking time always constant at 1 µs.]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Thu, 06 Apr 2017 11:16:50 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760778#msg-760778</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760778#msg-760778</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>o_lampe</strong><br />
<span style="color:#FF0000">edit: The ROSC pin is already connected to the pad and <i>grounded</i> through the 010 resistor ( maybe not in full fast decay mode though )</span><br />
[attachment 92712 A4988_ROSC.jpg]</div></blockquote>
<br />
O_lampe, you are a gentleman and a scholar.  Many thanks for this info.  Mine turned out to be the first variant.  I've no idea how the firmware can measure the difference between 1 ohm and 0 ohms, but it sure seems to have made a difference.  I used a wire so that I could connect it to +v if required, but just grounding it seems to have worked.<br />
<br />
[attachment 92736 IMG_6689.jpeg]<br />
<br />
The cube on the bottom right is with a normal A4988 driver, the one on the top left has been hacked to ground the ROSC pin.  It's quite a substantial difference.<br />
<br />
[attachment 92737 IMG_6690.jpeg]<br />
<br />
The hacked A4988 driver is about as good as an unhacked SD6128 (both at 1/16).  If the moire pattern wasn't there then you'd never notice the stripes.<br />
<br />
[attachment 92738 IMG_6693.jpeg]<br />
<br />
So for the drivers A4988, DRV8825, SD6128, it's worth modding them to go into fast decay* if you can.  The TMC2100 is good right out of the box, but has issues with torque.<br />
<br />
<br />
* I don't know what you call grounding the ROSC pin on the A4988, but it gives better results, whatever it is.]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Thu, 06 Apr 2017 10:03:41 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760752#msg-760752</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760752#msg-760752</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>dc42</strong><br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong>hercek</strong><br />
dc42, was your last picture printed at 50 mm/s? What acceleration? What kind of belts do you use?<br />
The reason I'm asking: I do not care much about the patterns on the walls; I would like to get more info about the "ringing" on the left corner.<br />
<br />
I did not experience this myself but I read that regular patterns on prints can be also caused by belts either not fitting the pulleys precisely or running the teeth side of a belt over a smooth idler (which happens when belt is not twisted before running it around idler). But I guess almost nobody has this problem.</div></blockquote>
<br />
Print speed 50mm/sec<br />
XY acceleration 3000mm/sec^2<br />
Jerk 600mm/min<br />
GT2 belts on 16t drive pulleys and 16t toothed idler pulleys<br />
1.68A motors running at 1.0A<br />
<br />
I'll try repeating the print with different acceleration/jerk/motor current.</div></blockquote>
<br />
I tried reducing printing acceleration to 1000mm/sec^2 and the ringing is much less:<br />
<br />
<div id="div_1a9b73ce3fa0dc0d2cdbc95f0b836533"
     class="mod_embed_images"
     >

  

    
      
    

    <div id="imagediv_1a9b73ce3fa0dc0d2cdbc95f0b836533" class="mod_embed_images_image"
         >

    
      

      

      

      

      

      

      <noscript>
      <div>
    

    <a href="https://dl.dropboxusercontent.com/u/19369680/cube505001-x16-on-m204p1000.jpg">
        <img src="https://reprap.org/forum/addon.php?178,module=embed_images,url=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F19369680%2Fcube505001-x16-on-m204p1000.jpg"
             
             
             id="image_1a9b73ce3fa0dc0d2cdbc95f0b836533"
             alt="cube505001-x16-on-m204p1000.jpg"
             title="cube505001-x16-on-m204p1000.jpg"/>
    </a>

    
      </div>
      </noscript>
    

    </div>

    <div class="mod_embed_images_info " id="info_1a9b73ce3fa0dc0d2cdbc95f0b836533"
      >
      <a id="link_1a9b73ce3fa0dc0d2cdbc95f0b836533" href="https://dl.dropboxusercontent.com/u/19369680/cube505001-x16-on-m204p1000.jpg">cube505001-x16-on-m204p1000.jpg</a>
    </div>

  

 </div>


<script type="text/javascript">
mod_embed_images_loadimage('1a9b73ce3fa0dc0d2cdbc95f0b836533', 'https://reprap.org/forum/addon.php?178,module=embed_images,url=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F19369680%2Fcube505001-x16-on-m204p1000.jpg', 'https://dl.dropboxusercontent.com/u/19369680/cube505001-x16-on-m204p1000.jpg', 'https://reprap.org/forum/addon.php?178,module=embed_images,check_scaling=1,url=https%3A%2F%2Fdl.dropboxusercontent.com%2Fu%2F19369680%2Fcube505001-x16-on-m204p1000.jpg', '', 760752, 800, 400, 'Loading image ...', false);
</script>
<br />
<br />
The corners bulge slightly at both edges - looks like I may need to increase the pressure advance.<br />
<br />
Belts are 6mm glass core GT2.<br/>]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Thu, 06 Apr 2017 07:44:36 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760738#msg-760738</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760738#msg-760738</link>
            <description><![CDATA[ nebbian, based on this <a href="https://www.pololu.com/file/0J450/a4988_DMOS_microstepping_driver_with_translator.pdf" target="_blank"  rel="nofollow">data sheet</a>, you cannot set fast decay mode. You can set only mixed decay and in such a case you cannot control how much of the PWM period is fast decay and how much is slow decay. 31.25% of the period is always fast decay. Moreover the raising current quadrant is always in slow decay mode. That sucks. The blanking time (i.e. also the minimum on time) is 1 µs. If this time results in a too high current (which cannot be dissipated in the rest of PWM cycle) then you get "missed" micro steps. You need to slower the current rise (in the critical 1 µs peirod) or speed up the current decay.<br />
The options you have are:<ul><li> Decreasing the voltage (used to power steppers) will make current rise slower.</li><li> Steppers with higher inductance will make current rise slower. But it will also fall slower which can make problems at the falling current quadrant at higher speeds.</li><li> Steppers with higher resistance will make the current decay faster.</li><li> You can increase Toff time (therefore decrease the time percentage the driver spends in the forced-on 1 µs period). This will increase the audible high pitch noise because the PWM frequency will decrease. You would need to check the resistor connected to ROSC pin and increase its value ... at first maybe by about 2 times and try again. More precise value (to increase it to) can be find out using oscilloscope or even approximately computed if you know all the parameters (voltage, resistance, inductance).</li></ul>
<br />
Edit: Shorting ROSC to GND can be a good idea too. It should force Mixed mode for both rising and falling current quadrants with 30 µs period. Maybe it will be enough. It would be good if one can force mixed mode everywhere and also control the PWM period with ROSC. But this does not seem possible.]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Thu, 06 Apr 2017 06:08:53 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760709#msg-760709</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760709#msg-760709</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />If you know how to easily change these drivers to fast decay, then I'd love to be able to do this test.<br />
[www.ebay.com.au]</div></blockquote>
<br />
IIRC there is a resistor close to the reset and sleep pins that can be bridged to get fast decay.<br />
But don't quote me until you get confirmation.... :/<br />
<br />
I checked my old stock of a4988 and there are two versions.<br />
<br />
1: Not exactly sure, if there is a track to be cut, before connecting the throughhole with the pad.<br />
<span style="color:#FF0000">edit: The ROSC pin is already connected to the pad and <i>grounded</i> through the 010 resistor ( maybe not in full fast decay mode though )</span><br />
[attachment 92712 A4988_ROSC.jpg]<br />
<br />
2: Unsolder the 101 resistor and bridge the pads.<br />
[attachment 92713 a4988_decay_mod_R4.jpg]<br />
<br />
Use at your own risk...]]></description>
            <dc:creator>o_lampe</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Thu, 06 Apr 2017 02:38:05 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760688#msg-760688</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760688#msg-760688</link>
            <description><![CDATA[ DC42, is there any chance that you could try a cube at 0.161 layer height, 1/16 microstepping, no interpolation (if you're not sick of making cubes by now).  Or if anyone else has a delta with 200 steps/mm, this would be a good test to do.<br />
<br />
The reason mine was making patterns at 0.202 was that full steps happen on my machine every 0.1mm in Z height (my steps/mm at 1/16 is 160).  So 0.2mm layer height means a perfect alignment of steps, 0.202 means a slight drift.<br />
<br />
On your machine with steps/mm of 200, full steps happen every 0.08mm.  So printing at layer heights of 0.1 will spread any artefacts out over 5 layers.  Printing at 0.08 or 0.16 will line up the full steps.  Printing at 0.161 should make the steps drift in and out of phase with the layer height, possibly resulting in a moire pattern.<br />
<br />
I'd be very interested to see your results.]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 05 Apr 2017 20:57:36 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760686#msg-760686</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760686#msg-760686</link>
            <description><![CDATA[ I haven't changed these A4988 drivers to fast decay mode (hard to find info on how to modify my particular driver boards), but I did a similar test with SD6128's which are easier to modify.  By default the SD6128's have much less of a problem with decay, but they still show a faint version of the same pattern (that doesn't change size with different microstepping).  When I changed them to fast decay they became a lot quieter, and the pattern disappeared.  So it's well worth doing.<br />
<br />
If you know how to easily change these drivers to fast decay, then I'd love to be able to do this test.<br />
[<a href="http://www.ebay.com.au/itm/132103229317" target="_blank"  rel="nofollow">www.ebay.com.au</a>]]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 05 Apr 2017 20:32:21 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760684#msg-760684</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760684#msg-760684</link>
            <description><![CDATA[ Hmm, interesting. I did not know that A4988 had problems with mixed decay mode ... or better its slow decay part on the raising edge (from zero to peak) of the driving current.<br />
If it is a decay related problem then:<ul><li>It should disappear when you switch it to fast decay. Did you try it?</li><li>It should be speed dependent. The error should be smaller when you print quickly. Well, even segmentation error will be smaller at faster prints. But slow decay related problems should be more influenced by speed. Well, depends on the resistance and inductance of your motors. </li></ul>
It can be computed whether slow decay is a problem. I should check this on my printer. Maybe my lines are not related to segmentation but to the decay mode too. It makes sense. Decay mode problem on my printer should be in the range of about 0.1 mm. Segmentation error should be in the range of 0.0125 mm.<br />
<br />
DRV8825 are known to have slow decay problem: [<a href="http://www.engineerination.com/2015/02/drv8825-missing-steps.html" target="_blank"  rel="nofollow">www.engineerination.com</a>]<br />
Fast decay is an easy solution for people who do not mind noise.<br />
<br />
Decay related problems will degrade numerical based calibration too.]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 05 Apr 2017 20:05:35 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760678#msg-760678</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760678#msg-760678</link>
            <description><![CDATA[ Hercek wins 1000 internet points!<br />
<br />
Layer heights were 0.2, 0.202, and 0.1618 (multiple of golden ratio to spread the peaks).<br />
<br />
All prints were with A4988 drivers to accentuate the step issue.<br />
<br />
Btw, this has absolutely nothing to do with segments, and everything to do with stepper drivers that are in mixed decay mode.]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 05 Apr 2017 18:57:40 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760667#msg-760667</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760667#msg-760667</link>
            <description><![CDATA[ I guess it is GT2 glass core belt 6mm wide, right? (these are very common)<br />
<br />
There is tiny bit of "ringing" visible on my test print I posted before(*). I did it too at 50 mm/s (so that is comparable to your prints). But other parameters were different. Acceleration was 8000 mm/s², jerk 20 mm/s.<br />
<br />
I use steel core T2 belt. I guess the same kind of belt some people reported problems with. Allegedly the steel core is failing on small diameter pulleys. Although I did not see this problem yet. My pulleys have diameter of about 12.7 mm (stepper) and 14 mm (idler).<br />
<br />
"Ringing" is well visible on my setup when I print at 120 mm/s (everything else the same).<br />
<br />
As far as I'm concerned, you do not need to do more tests relating to "ringing". I was just curious what were the parameters related to the picture you posted.<br />
<br />
(*) Here is the best visible "ringing" from all 4 corners. On two corners it is not recognizable from the segmentation lines. On other two corners it is visible when lit properly.<br />
[attachment 92704 ring.jpg]<br />
<br />
nebbian: Well, based on you previous posts it should be layer height xor steps per mm changing on a firmware with delta segmentation. The bottom has layer height as a nice multiply of the micro step length. The middle has very small difference (something like layerHeight = (k+ε) * microStepLength. Where k is positive integer and ε is a very small rational number; let's say somewhere in the range of 1/1000. The top picture has ε much bigger, probably somewhere around 1/k.]]></description>
            <dc:creator>hercek</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 05 Apr 2017 17:33:10 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760624#msg-760624</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760624#msg-760624</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>hercek</strong><br />
dc42, was your last picture printed at 50 mm/s? What acceleration? What kind of belts do you use?<br />
The reason I'm asking: I do not care much about the patterns on the walls; I would like to get more info about the "ringing" on the left corner.<br />
<br />
I did not experience this myself but I read that regular patterns on prints can be also caused by belts either not fitting the pulleys precisely or running the teeth side of a belt over a smooth idler (which happens when belt is not twisted before running it around idler). But I guess almost nobody has this problem.</div></blockquote>
<br />
Print speed 50mm/sec<br />
XY acceleration 3000mm/sec^2<br />
Jerk 600mm/min<br />
GT2 belts on 16t drive pulleys and 16t toothed idler pulleys<br />
1.68A motors running at 1.0A<br />
<br />
I'll try repeating the print with different acceleration/jerk/motor current.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 05 Apr 2017 14:42:01 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760574#msg-760574</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760574#msg-760574</link>
            <description><![CDATA[ Pop quiz:<br />
<br />
Which one setting was changed between these three cubes?<br />
<br />
[attachment 92692 IMG_6688.jpeg]<br />
<br />
Bonus points for guessing the actual setting values.]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 05 Apr 2017 10:37:31 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?178,759228,760542#msg-760542</guid>
            <title>Re: Testing the effects of microstepping and segmentation on print quality</title>
            <link>https://reprap.org/forum/read.php?178,759228,760542#msg-760542</link>
            <description><![CDATA[ Also, if using the robotdigg carriages and 16 tooth pulleys, the teeth rub on the carriage as they go past.  20 tooth pulleys don't have this problem.]]></description>
            <dc:creator>nebbian</dc:creator>
            <category>Delta Machines</category>
            <pubDate>Wed, 05 Apr 2017 06:40:24 -0400</pubDate>
        </item>
    </channel>
</rss>
