In this video I give a brief demonstration of closed loop position control of stepper motors.
The hardware used for this demo include:
Nema 17 stepper motor
Magnetic encoder (as5048a-ts_ek_ab)
Dual H-bridge motor driver (L298N)
ESP32 microcontroller (esp32-wroom-32d)
The code in this demo is based on the open source SimpleFOC library (https://www.simplefoc.com/)
CAD for the magnetic encoder mount for the nema 17 stepper motor (https://cad.onshape.com/documents/41b12723c0c95274dc7abc07/w/e0d10fc802d6fa12298221c4/e/3fddafdec50d2cf90faeeaf6?renderMode=0&uiState=63fc0da7818fb216934902d9)