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

Car_sample.zip (1.18 KB)

Not a capacitor in sight. Try some decoupling.
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html