Hi guys!
I want to control stepper motor by motion from rotary encode, that when encoder rotary in motion, arduino send steps to stepper motor, when encoder rotary stop, motor is stop too.
Encoder is optical rotary, from it I can read signal from phase A and B. For me, is not necessary to know, how many is steps from encoder, only monitor when is in motion and turn on stepper motor.
Encoder is driving in other device, my stepper is in another device.
I need same matemathic diagram with signal from phase A (or B) for driving stepper motor.
help, please!
Your first two tasks are to, independently, figure out how to read the encoder,
and how to command the stepper. Once you have example code for each task working,
then think about combining them.
Each task should be driven by independent calls from loop(), then when you combine the
functionality you add more code to loop to perform your "business logic".
Can you clarify the relationship between encoder readings and motor outputs - is there
for instance a fixed ratio between encoder steps and motor steps?