I'm working on a project where Arduino Mega receives data from a TCP telnet session and switch on or off some leds.
Everything works fine if it's powered via USB (computer or Simple USB charger).
If powered Vin or Barrel input with 12V 2A power Supply, it resets itself, goes down then raise up. Doesn't work.
I tried three different Power Supply with no success.
The voltage regulator might get too hot.
Try 7.5V to the barrel jack.
Are you using the Ethernet 2 shield ? That needs some current.
Rule of thumb: if you can not keep your finger on the voltage regulator, then it is too hot.
Can you tell precisely what is connected to the Mega board ? Which shield, what kind of leds with which resistors, and so on.
You might power the Mega board plus the shield with 5V power to the 5V pin, but that has consequences. A current might flow into the computer. If you have a clone Mega without 500mA polyfuse, then you might damage the computer. Some have damaged the voltage regulator with a reverse current when powering the Arduino with 5V to the 5V pin.
Some on this forum will probably say that powering your project with 5V to the 5V pin is preferred (even when taken into account the disadvantages).
Smoking hot linear voltage regulators are just a waste of energy.
As Koeple explained.
Common problem if you power an ethernet shield or other high-current device through the Arduino, and use a voltage that's much higher than the 5volt the Mega runs on.
The 5volt regulator gets hot, shuts down, and restarts after a few seconds later after cooling down.
The easiest/safest way to power the Mega is to plug the USB cable into the USB socket of a 5volt cellphone charger.
Leo..
OK,
thank you to all for the answers.
Yes, I supposed that the problem is the Voltage regulator.
there is the Ethernet Shield 2. There are some Leds. Makes sense