In this video I show you how to directly control a stepper motor using a rotary encoder and the accelstepper library. The code is fairly simple, you do not need to go too deep when using it. What it does, that whenever the rotary encoder does an increment or a decrement, the motor immediately steps the same amount in the same direction as the encoder was rotated.
If you found this video useful, please subscribe to my channel!
Source code: https://curiousscientist.tech/blog/st...
Accelstepper: https://www.airspayce.com/mikem/ardui...
If you want, you can support me by buying the parts using my affiliate links:
https://curiousscientist.tech/tools