Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't the resolution of Moteus using incremental encoders exceed 200000 #76

Open
away12356 opened this issue Nov 26, 2024 · 9 comments
Open

Comments

@away12356
Copy link

No description provided.

@jpieper
Copy link
Member

jpieper commented Nov 26, 2024

Are you observing an unexpected behavior? If so, please describe it.

@away12356
Copy link
Author

Manually rotate the motor quickly, with no change in CPR and a large amount of error data

@jpieper
Copy link
Member

jpieper commented Nov 26, 2024

What moteus controller are you using and is your encoder connected as a software or hardware quadrature?

@away12356
Copy link
Author

R11, I am using software orthogonal. How can I connect hardware orthogonal

@jpieper
Copy link
Member

jpieper commented Nov 26, 2024

With software quadrature, you are limited to roughly 100000 counts per second of motion, no matter what the resolution is.

Unfortunately, hardware quadrature is not supported on moteus-r4, only on moteus-c1 and moteus-n1. With those boards and hardware quadrature, the limit is higher at roughly 10000000 counts per second.

@away12356
Copy link
Author

What is the difference between hardware orthogonality and software orthogonality

@jpieper
Copy link
Member

jpieper commented Nov 26, 2024

Software quadrature is implemented as a software interrupt, hardware quadrature uses a dedicated hardware decoder in the microcontroller.

@away12356
Copy link
Author

Hardware quadrature wiring is the same as software quadrature?

@jpieper
Copy link
Member

jpieper commented Nov 26, 2024

I'm not entirely sure what your question is. The supported electrical input levels are identical between software and hardware quadrature. However, only the c1 and n1 expose pins that are capable of hardware.

You can see the pin capability table here: https://github.com/mjbots/moteus/blob/main/docs/reference.md#pin-options

The pins capable of hardware quadrature are labeled in the "HW Quad/PWM" column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants