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

undercounting steps only in one direction, only when going slowly, with a linear encoder #87

Open
kittles opened this issue Jan 4, 2023 · 0 comments

Comments

@kittles
Copy link

kittles commented Jan 4, 2023

Description

I have a linear encoder (x axis dro from a mill) which has 5000 steps per inch. I've confirmed it a quadrature encoder and i have the pinout correct. When using the encoder library with pins 2 and 3 on an elegoo uno r3, it reads correctly one direction, but in the other direction is vastly undercounts- but oddly, only if im moving it slowly. if i move the encoder head quickly in the problem direction, it counts the steps fairly accurately.

Steps To Reproduce Problem

probably cant since you dont have my specific encoder- unless you have a random chinese import sgc-6 500mm linear encoder

Hardware & Software

Board: Elegoo uno r3
Arduino IDE version: 2.0.3

Arduino Sketch

#include <Encoder.h>
Encoder my_enc(2, 3);

void setup() {
  Serial.begin(9600);
}
void loop() {
  Serial.println(my_enc.read());
}
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

1 participant