Encoder to Stepper, help/library reference.

Good morning,

As my username implies im very new to arduino and stepper motor control.

I could use some help/guidance in locating a sketch that will take a/b quadrature encoder signals on the interrupt pins of the arduino uno and relay them to output pins for controlling a bipolar stepper motor (following the encoder) (step and direction) Additionally my motor will have a pulley added, so im wondering how to set the correct pitch (steps to match the encoder? I have read I need to find the actual encoder count to make these adjustments? Is there also a program sketch that will read my encoder steps if I turn it manually per revolution?.. I have been doing a tremendous amount of reading but im currently stuck in limbo with little programming knowledge and my main objective is to just get my project working :slight_smile: I will be using a nema 17 motor, a big easy driver from spark fun and tying into the a/b on an existing encoder that im interfacing. I have heard the accel stepper motor library mentioned as well, however im not sure where to find the sketch to achieve the objective.

All help and direction would be greatly appreciated, thanks in advance

I'd advise first get each part working separately. The encoder updating a count variable
(which you can print out to show its working), then a step function to control the motor.

Coupling the two parts together ought to be more obvious once you have them in front
of you in working state! Hint there will be a ratio of encoder steps to motor steps.