Connecting the encoder to Arduino Uno to measure the stepper motor position.

Hai guys, i am really newbie to electrical and electronic course.
Can i connect this encoder to arduino uno directly, or i need a high speed counter for the connection?
Encoder : Omron E6B2-CWZ6C (incremental type).

HELP ME PLS...Thank You!!!!

Omron_Rotary_Encoder_E6B2_Sept2012.pdf (109 KB)

Just use the circuit and code here:-
http://playground.arduino.cc/Main/RotaryEncoders

thanks Grumpy_Mike...
how about the connection...
:slight_smile:

What do you mean the connection?
The data sheet shows that depending on the type. You have power (brown ) and ground (blue ) and the three outputs. Use outputs A (black ) and B (white ).

http://www.fut-electronics.com/wp-content/uploads/2015/11/OMRON_Rotary_2000_pr_manual_and_arduino_code.pdf

Why do you need an encoder to check on the motor position? If the motor is missing steps that is the problem you should fix.

Reading a rotary encoder imposes a significant computational load on an Arduino and, if you are running the motor at high speed it may impact on performance.

...R
Stepper Motor Basics

What resolution is the encoder you are using/proposing? The one you mention is available in 10 to 2000 PPR
versions.