I was stupid enough to power my UNO with a 60W laptop charger while running a servo+ping sensor program. Instantly everything stopped, and there was a weird smell. I thought I fried the LM7805 voltage regulator because it looked kinda weird. Luckily I had another UNO and I swapped the current atmega of the "fried" UNO with the good one and inserted it in the "fried board". This atmega had the blink program uploaded, and it ran fine in the "fried" board. However, I can't seem to upload any program to this "fried" board, the Arduino IDE says "Not connected. Select a board and port to connect automatically".
I put the atmega from the "fried" UNO in the working one, and it keep giving the error " avrdude: stk500_recv(): programmer is not responding". I tried the loop-back test and I am echoed back what I sent in the serial monitor, so that seems to work.
Is my atmega damaged or bricked? If not how do I fix it?
The wattage of the charger does not matter but its voltage does. What is the output voltage of the charger and how exactly did you connect it to the Uno ?
I would suggest getting another Arduino (the board is fried but not all the components) and a proper power supply or a buck converter to convert the voltage to somewhere about 8 volts before connecting to the Arduino. Measure the voltage before connecting.
Not necessary there are several parts on that board that could cause it to fail, it is not positively the processor. You probably fried the power supply section and or the serial section.
But whenever I put the atmega from the fried board to a good board, I keep getting the error "avrdude:programmer is not responding".
I know the board is good because it works fine with the other atmega.
I have a feeling the atmega from the "fried" board is toast.