8i20
15 Mar 2022 13:18 #237325
by andypugh
One not-very-scientific way to get the encoder offset is to just guess it until the motor runs at the same speed in both directions with a low drive current.
The u+ VW- method is the best way, but it's not so easy to do that with an 8i20 as it adds in a phase angle.
If you can connect the servo to a power supply on the bench, then your idea will work. Set the "index-enable" of the encoder counter, turn it by hand through the reset, and then look at the encoder counts and take the modulus, as you suggest.
It is likely to be zero, or very close to zero.
The u+ VW- method is the best way, but it's not so easy to do that with an 8i20 as it adds in a phase angle.
If you can connect the servo to a power supply on the bench, then your idea will work. Set the "index-enable" of the encoder counter, turn it by hand through the reset, and then look at the encoder counts and take the modulus, as you suggest.
It is likely to be zero, or very close to zero.
The following user(s) said Thank You: dkraft
Please Log in or Create an account to join the conversation.
18 Mar 2022 17:55 - 18 Mar 2022 18:01 #237659
by dkraft
So I reduced the encoder counts from 8192 (which were clean - not spikey) to 1536 ppr, because I doubt 8192 x 3000rpm on three axis is gonna be kept up with anyway...
Still getting a non-smooth motion in two dimensions - tiny reactions to encoder inputs and some kind of long sinusoidal that I guess is from the motor cogging on 80% power.... Is the pid not smoothing though ? or is my I too low?
High speed pass.
Is the pid overreacting for some reason ?
Still getting a non-smooth motion in two dimensions - tiny reactions to encoder inputs and some kind of long sinusoidal that I guess is from the motor cogging on 80% power.... Is the pid not smoothing though ? or is my I too low?
High speed pass.
Is the pid overreacting for some reason ?
Attachments:
Last edit: 18 Mar 2022 18:01 by dkraft. Reason: added high speed pass
Please Log in or Create an account to join the conversation.
Time to create page: 0.234 seconds