I'm using a generic MEGA. My project runs fine off the USB port but when I use a 12v 2A wall wart, the MEGA turns on and off.
The project uses a RC servo, a 20x4 LCD, 3 LEDs, 2 RGB LEDs, an Adafruit MP3 board, 5 pushbutton switches, 2 50mA sensors.
I could try running some of the devices on a separate 5V power supply and not off the MEGA.
So far, I've tried using a different MEGA, using a different wall wart. Checked the wall warts under load to another 12V device and was getting 12.1V.
My thought was that the USB port is limited to about 500mA and the project should work fine with a wall wart.
I guess I could try a third MEGA and see if the problem is the same.
Just wondered if the experts here have an idea?