This video is all about how Permanent Magnet, Variable Reluctance and Hybrid Synchronous stepper motors work and an example of how to control them. Github Code: https://github.com/JustAnotherMakerChannel/StepperMotorExample
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.