https://deepbluembedded.com/how-to-control-stepper-motor/
How To Control Stepper Motor With PIC Microcontrollers?