Arduino getting reset while connected to motor

my arduino is getting Reset while i am using it to move the steering through POT and its getting reset when it move left to right or centered

the schematic
and the code is (1.18 KB)

Not a capacitor in sight. Try some decoupling.