I created a project with the uno which drives 3 LEDs to inputs from low pass and high pass filters. These filters filter the audio signal from a headphone jack. Easy part on uno.
So I got my self a new Atmega328 and flashed the boot loader and removed the old one from uno. Put the new and project works fine. So I removed the new and put back the old one.
The project works fine on both chips connected to uno. So I used the old one. Took it out and hooked it to a breadboard and hooked all gnd, vcc, crystal, caps, reset button and it's resistance. Connected a led to pin 19 (LED) and it glows and reset works. I gave the power directly from the uno +5 and gnd.
So I hooked my project wires to it and it worked. The LEDs glow and respond to music. But the LEDs flicker sometimes and in about 30sec or in less time the LEDs just freeze at a certain brightness. I assume the atmega freezes because it works again after resetting it.
So I connected everything back to uno and again it works perfectly fine. No flicker perfect smooth and dose not freezes. But again connecting atmega to breadboard has the strange problem again.
I can't figure out where the problem is! So the awesome people of the internet please help me out! :P Thank you!