Electronic – arduino – Decoupling issue with DC Motor

arduinoattinycapacitordc motor

I have the following circuit :

enter image description here

That's basically everything, excepted a button on DC1 to turn on/off the motor, but shouldn't impact.

The problem is, I was prototyping with the DC Motor on the LM7805 and the other parts powered by the +5V of the arduino I was using to program the ATTiny45. I assume the DC Motor resistance at "full speed" is \$50\Omega\$. (Around 0.1A at 5V).

Now I've moved everything on the LM7805 and when I turn on the motors the ATTiny shutdown after few seconds. The time he stays up depend on the value of RV1 who manage the speed of the motor, controlled by the attiny with the BC337 transistor controlled with PWM.

So, I started to use bigger caps but I can't stabalize the circuit. I've tried with 4700uF on C1/C2/C3 and the improvement is not soo great, a bit better but still shutdown pretty quickly. They are placed as close as possible to "their pins".

So, what can I do to leave the motor at that place ? Put it on a separated LM7805 ? Add a capacitor somewhere ? (I really need to put it on a voltage regulator)

Best Answer

Here's the solution given by @AnindoGosh

enter image description here

Adding capacitors C5 and C4 solve the issue.