I am running 2 motors simultaneously using ATmega16 through a L-293D H-Bridge motor driver. The motors were working fine for some time, but after a while they have stopped. I am running the motors using a 12 volts battery pack. I had read somewhere that when the power is switched off the collapsing magnetic field induces a back emf that can cause problems in digital circuits. Is this what is happening in my case?
To offset this I have connected a 0.1 micro farad capacitor across the terminals of each motor to bypass any ripple voltage. Still the problem persists. Any thoughts or suggestions will be helpful.