Hi PeterTheWolf,
Oops. My bad. I forgot to tell you to increase the max Integrator from 200 to ~2500. Limited to 200 means the Integrator can't to what it needs to do.
Dynomotion.
Otherwise you are doing the correct process, but don't get any positive results because the Integrator is not being allowed to do what it needs to do.
Please repeat the test with max Integrator set at 2500.
Here are some comments regarding your videos.
The idea is to get the red to follow the blue and equivalently the blue error plot to be minimum. Right now the max error peaks at ~1200 encoder counts. We should be able to get that much smaller.
It doesn't make sense to try to match the error to the output. They are using different scales (the left and right) and the software is auto scaling so the plots jump around relative to each other. Don't concern yourself with this.
Dithering 1 encoder count (or even a few is normal) and good! That is only 1/20480th of an inch. You might read this article on dithering:
Dynomotion
Notice that even though the Integrator was limited to 200 DAC counts it was able to drive steady state errors to zero. While at rest, instead of always being off target by 5 or 12 counts as before because of some offsets, it is now off by 1 or less! However while moving the Integrator needs to be allowed to do way more (1600+ DAC counts) to be able to pull the error to zero.
Regards