I have a very basic Arduino setup :
- Arduino Uno
- Rotary encoder
- Nema 17 stepper motor + A4988 driver
How can I control the rotation of the motor with the rotary encoder? How can I get it to make one full rotation (200 steps) if I make a full rotation of the encoder (20 pulses)?
UPDATE : I managed to get the driver + motor setup going using this diagram and the code on this page : https://howtomechatronics.com/tutorials/arduino/how-to-control-stepper-motor-with-a4988-driver-and-arduino/
Now all i need is to properly wire the rotary encoder and add the code for syncing the motor with the encoder.
Can someone help me out with a diagram and a piece of code ?