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

Encoder weirdness #3

Open
jennifervg opened this issue Jan 7, 2017 · 3 comments
Open

Encoder weirdness #3

jennifervg opened this issue Jan 7, 2017 · 3 comments

Comments

@jennifervg
Copy link

Switched to this encoder library due to its support of the Arduino due. The encoder seems to be recognized and generate data but when you slowly turn the encoder in either direction you will see that the demo code for this library shows that you occasionally get the motion being reported as opposite of the direction the encoder is being turned.

I believe my encoders are half cycle encoders, can you provide any advice?

@zacsketches
Copy link
Owner

Good morning, @jennifervg. Thank you for the bringing up this issue. When you do this do you also notice that the sign of the accumulated counts is opposite what it should be?

@jennifervg
Copy link
Author

jennifervg commented Jan 7, 2017

Yes, that also goes backwards

@Peiskos
Copy link

Peiskos commented Apr 21, 2017

I had a similar problem. Random enc1 counts and directions. And then... I realized that the encoder needs to be grounded to the Due rather than the motor driver. : )

Any examples of the library being used on a Due to calculate speed? I want to extract it for use in a PID sketch.

Thanks for all your hard work! It is very easy to use, once the ground is correctly connected!

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

3 participants