Hi there
I have an atmega8L-pu and a L293D motor driver connected to it. Both avr and motor driver use same power source (a 9v batt with 5v 7805 regulator)
also I have a LED that glows for 1 sec to denote a power on and then flashes to show power is available
program logic similar to a predefined path runner (not a problem)
So the problem is the Circuit runs correct and pins get high and low according to program logic but, as soon as I connect motors to the L293D motor driver the avr hangs after running correctly few seconds and resets (As shown by LED).
Then it restarts runs motor correctly for few sec then again hangs and restarts.. the cycle goes on repeating, there is no definite time between resets
I call it a HANG because the PORTS freeze to their output for a while before restarting
If I don't connect the motors to the driver and leaves the driver still connected and powered without VC(pin 8)connected then its fine but as soon a motor is connect the problem ocurrs
what could be the problem? an EM disturbance ? or power surge?
I have an atmega8L-pu and a L293D motor driver connected to it. Both avr and motor driver use same power source (a 9v batt with 5v 7805 regulator)
also I have a LED that glows for 1 sec to denote a power on and then flashes to show power is available
program logic similar to a predefined path runner (not a problem)
So the problem is the Circuit runs correct and pins get high and low according to program logic but, as soon as I connect motors to the L293D motor driver the avr hangs after running correctly few seconds and resets (As shown by LED).
Then it restarts runs motor correctly for few sec then again hangs and restarts.. the cycle goes on repeating, there is no definite time between resets
I call it a HANG because the PORTS freeze to their output for a while before restarting
If I don't connect the motors to the driver and leaves the driver still connected and powered without VC(pin 8)connected then its fine but as soon a motor is connect the problem ocurrs
what could be the problem? an EM disturbance ? or power surge?