Atmega328p weird rebooting upon load, even with ton of decoupling caps.
hi all, yet problem encountered "arduino" alarm circuit yesterday trying figure out going , need push in right direction.
my latest circuit simple this: 1 atmega328p microprocessor on breadboard powered via 3.3v switching regulator, , drives piezo speaker generate short , loud alarm beep every minute or switching npn transistor @ piezo's resonant frequency duration of beep, piezo powered same battery via 12v switching regulator. power source 3xaa batteries. can see basic illustration attached message.
both voltage regulators pololu there no questions assembled.
i have added decoupling capacitors (tantalum 33uf) in , out of both voltage regulators 10uf decoupling cap close atmega's voltage input.
in general works okay, beeper beeps reliably, beeps there little voltage drop 0.04v stable.
the problem whole thing draws 12ma of current when idle (i.e. microprocessor works not sending beeps piezo speaker), should draw 4ma because atmega uses , because 3.3v regulator efficient 3.3v regulator draws battery terminals.
it 12v regulator uses ma, apparently quiescent current or something..., when disconnect battery, overall circuit's current consumption drops 4ma. in effort minimize idle current loses caused 12v regulator's quiescent current needs planning physically disconnect circuit when not in use, worked, when plugged in causes atmega restart cannot figure out why, not see voltage plunge or spike on oscilloscope somehow restart. , restarts if keep 12v regulator disconnected more 30 seconds, when disconnect , connect in relatively fast okay.
i need advice of start looking solution, can cause such behavior? kind of transient current spike or can be? can voltage drop/spike not see oscilloscope (i using dso nano v3 think bandwidth 200khz)
my latest circuit simple this: 1 atmega328p microprocessor on breadboard powered via 3.3v switching regulator, , drives piezo speaker generate short , loud alarm beep every minute or switching npn transistor @ piezo's resonant frequency duration of beep, piezo powered same battery via 12v switching regulator. power source 3xaa batteries. can see basic illustration attached message.
both voltage regulators pololu there no questions assembled.
i have added decoupling capacitors (tantalum 33uf) in , out of both voltage regulators 10uf decoupling cap close atmega's voltage input.
in general works okay, beeper beeps reliably, beeps there little voltage drop 0.04v stable.
the problem whole thing draws 12ma of current when idle (i.e. microprocessor works not sending beeps piezo speaker), should draw 4ma because atmega uses , because 3.3v regulator efficient 3.3v regulator draws battery terminals.
it 12v regulator uses ma, apparently quiescent current or something..., when disconnect battery, overall circuit's current consumption drops 4ma. in effort minimize idle current loses caused 12v regulator's quiescent current needs planning physically disconnect circuit when not in use, worked, when plugged in causes atmega restart cannot figure out why, not see voltage plunge or spike on oscilloscope somehow restart. , restarts if keep 12v regulator disconnected more 30 seconds, when disconnect , connect in relatively fast okay.
i need advice of start looking solution, can cause such behavior? kind of transient current spike or can be? can voltage drop/spike not see oscilloscope (i using dso nano v3 think bandwidth 200khz)
i guess inrush current of boost converter quite high, power drop short time, enough reset. try add diode , big cap before arduino regulator, diode should prevent cap discharge inrush current, or try make sort soft-start using ptc.
ciao, ale.
ciao, ale.
Arduino Forum > Using Arduino > General Electronics > Atmega328p weird rebooting upon load, even with ton of decoupling caps.
arduino
Comments
Post a Comment