I am using an adapter (12 VDC, 2A) and I want to be able to power an LED strip with it plus the control circuit.
The problem is that the Atmega328 reboots, but when I only power up the LED strip with that adapter and power the control circuit with an independent 5 V adapter everything seems to be alright.
I can't do that in real world; I need to ude the same adapter.
I attached a picture of what I am doing right now. Please help me fix this.
I am using a 7805 regulator to reduce the 12 V to 5 V.