How does a stepper motor turn into an encoder? Well, that’s the MacGyver part. We are not big fans of the physical circuit diagrams ... Of course, an Arduino reads the pulses.
The solution is named Ethersweep, and is a small PCB stack that sits on the rear of the common NEMA17-format stepper motor ... with the Arduino software stack deployed, making uploading firmware ...