5V POWER SOURCE shared by Motor & Arduino

You got confused.
Duplicate post I could not delete myself.

5V from bench powersupply goes to arduino Vin as well as dc motor.

IT DOES NOT GO FROM BENCH TO ARDUINO TO MOTOR NO!!!