Modifying Arduino program for use of NEMA 23 Motor instead of NEMA 17

Job ID: 33750760

Budget: $10 – $30 USD

I have an Arduino program which is written for NEMA 17 motor. I am using Easy driver board for NEMA 17 motor to rotate 90 degrees when motion is detected by using infrared sensor. It turns out that NEMA 17 is not powerful enough and I may have to use NEMA 23 motor. This time, I will be using Stepper Motor Driver (1.0-4.2A 20-50VDC 1/128) instead of Easy driver. I would like someone to modify the existing program and give me a connection layout to work exactly as its working now for NEMA 23 motor.