The Stepper Motor Electronics
My stepper motor is an older high torque oone with 200 steps per revolution and maximum 2.8A per phase. RS StockNo: 535-0417. See Datasheet here.
The power supply should be strong enough to power the motor and all our circuits too. I selected a 75W, 24V variant from MeanWell. See Datasheet here.
The stepper driver is the IFX9201 KIT from infineon. It offers a very easy way to drive drive a motor, since the complete driver code is delivered. See Infineon’s site for details.
The home position detector consist of a hall sensor and a strong magnet on the rotating side. It’s not very reliable but does the job… Maybe an adequate optical soulution would be better. The sensor is attaced to the arduino’s interrupt pin.