8i20

More
15 Mar 2022 13:18 #237325 by andypugh
Replied by andypugh on topic 8i20
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 following user(s) said Thank You: dkraft

Please Log in or Create an account to join the conversation.

More
18 Mar 2022 12:49 #237632 by dkraft
Replied by dkraft on topic 8i20
Why are my outputs all "spikey" ?

Attachments:

Please Log in or Create an account to join the conversation.

More
18 Mar 2022 14:12 #237640 by andypugh
Replied by andypugh on topic 8i20
What does your rotor position feedback look like? (probably encoder.0.position)
Also look at the encoder velocity.

Please Log in or Create an account to join the conversation.

More
18 Mar 2022 17:55 - 18 Mar 2022 18:01 #237659 by dkraft
Replied by dkraft on topic 8i20
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 ?
 
 
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.

More
22 Mar 2022 01:09 #237984 by andypugh
Replied by andypugh on topic 8i20
Hmm. Try zeroing out the D term?

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.234 seconds
Powered by Kunena Forum