user66747: I am used atmega 328pu as stand alone.i used 7805 as regulator.
I regulated from 12 VOLT 2 amp smps.
When I connect my dc 12 VOLT pump in between 12 VOLT and ground dc motor working fine but Atmega stops working.
Please help me with this.
EDIT: Information added from the comments.
Q: Does the Arduino work with the motor disconnected?
A: Yes it's works fine


user42539: Add 0.1uF caps from pin 7 to 8, and from pin 20 to 22. Keep them close to the chip.
If you will be doing any analogRead()s, then add one from 21 to 22 as well.

66747: <p>I am used atmega 328pu as stand alone.i used 7805 as regulator.
I regulated from 12 VOLT 2 amp smps.</p>

<p>When I connect my dc 12 VOLT pump in between 12 VOLT and ground dc motor working fine but Atmega stops working.</p>

<p>Please help me with this.</p>

<p>EDIT: Information added from the comments.</p>

<p>Q: Does the Arduino work with the motor disconnected?</p>

<p>A: Yes it's works fine</p>

<p><img src="https://i.stack.imgur.com/W8e8P.jpg" alt="enter image description here"></p>
 42539: <p>Add 0.1uF caps from pin 7 to 8, and from pin 20 to 22. Keep them close to the chip.
If you will be doing any analogRead()s, then add one from 21 to 22 as well.</p>
