Dear,
I am using the digital pins 2 to 13. Sorry for the short post but I have some problem to share all code as I need permission from my supervisor.
The source used here for the motor is 48 V battery which is used in electric vehicle. If you require more then I can send it via email. I have some doubt about using of pin 13.
Power of the motor 500 W and voltage 48 V.
If anybody can find the solution, please respond asap.