I am currently creating an arduino project which makes use of a number of inputs and outputs. When testing a piece of code I wrote for this project with the inputs and outputs connected, the board stopped working and the microcontroller in the middle of the board caught alight. I was using a 12V 8A power supply for this test, I was using such a high amperage supply as I was planning on powering a peltier chip off the same supply however in this test the peltier was not included.
Attached are images of my code and the circuit I was running. (the relay outputs were not connected during this test)
As shown, I had 3 LEDs connected to pins 3, 4, and 5. 2 Switches connected to pins 11 and 10. I had all of the these pins connected to the same ground pin.
Some help to identify my problem would be much appreciated, I have probably made a silly mistake. Or is the power supply just too high of an amperage?(I have had the Peltier chip and Arduino running off this powersupply at the same time before and experienced no issues.)