I want to tell you how to make incremental encoder from stepper motor. When we turning shaft of stepper motor it works like generator. It generates certain impulses on its coils. After some signal processing, we get same impulses as incremental encoder.
This encoder has one problem, it can drop steps if you turning very slowly. But for many applications, it doesn’t matter.”

Link