Reading high ppr Encoder

Hi guys, I'm using encoder 2000 ppr. it is stepping pack with driver and when i tested this encoder with arduino uno R3, it can counted accurately with my hand in low speed. but it can not receive the number of encoder when i used high speed and start to test with the motor. So, in this step, the problem is about the frequency from the output of encoder and the input of digital input in encoder are not same, isn't it?

https://products.sanyodenki.com/en/sanmotion/contents/hp0032/list.php?CNo=32&ProCon=64

This site is for the driver.

https://products.sanyodenki.com/en/sanmotion/contents/hp0091/list.php?CNo=91&ProCon=1251

this one is motor spec.

Thank you

You need to post the program you are using.

How many pulses per second do you want to detect?

...R

Well, basically, i want the encoder to get more than 2000 pulse per second. 2000 ppr is for one cycle. Furthermore, i use Nointerrupt of the encoder

#define ENCODER_DO_NOT_USE_INTERRUPTS
#include <Encoder.h>
Encoder myEnc(5,6);

void setup() {
  Serial.begin(9600);
  Serial.println("Basic NoInterrupts Test:");
}

long position  = -999;

void loop() {
  long newPos = myEnc.read();
  if (newPos != position) {
    position = newPos;
    Serial.println(position);
  }

suradeer:
Well, basically, i want the encoder to get more than 2000 pulse per second. 2000 ppr is for one cycle. Furthermore, i use Nointerrupt of the encoder

"more than 2000" is not much help. Do you mean 2005, or 25,000? Successful computer programming requires precision.

And if you want to detect a high pulse rate why (oh why) are you not using interrupts.

The link in your Original Post require a person to register to access the documents and the code. I presume you have done that. Can you attach the documents here?

...R

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Also specs/data for motor and encoder.

Thanks.. Tom... :slight_smile:

Robin2:
"more than 2000" is not much help. Do you mean 2005, or 25,000? Successful computer programming requires precision.

And if you want to detect a high pulse rate why (oh why) are you not using interrupts.

The link in your Original Post require a person to register to access the documents and the code. I presume you have done that. Can you attach the documents here?

...R

The document is here
https://www.semicon.com.pl/files/?id_plik=402 my model is PB3d003m200. I use around 18000 ppr. In my project, i do the goalkeeper and it translate in x-axis. So, could u have some guideline or suggestions?

TomGeorge:
Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Also specs/data for motor and encoder.

Thanks.. Tom... :slight_smile:

Thank you for ur advice. I do not write the citcuit but i hav only the block diagram.

suradeer:
I use around 18000 ppr. In my project,

For the performance of the Arduino program the important thing is the number of pulses per second. Not the number per revolution.

And you have not explained why you are not using interrupts.

The document in the link in your Reply #5 is a marketing document. It does not explain how to control the device. There must be another document.

...R